Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
ObjectGridLoader Class Reference

#include <ObjectGridLoader.h>

Collaboration diagram for ObjectGridLoader:

Public Member Functions

void LoadN (void)
 ObjectGridLoader (NGridType &grid, Map *map, const Cell &cell)
template<>
void SetObjectCell (Creature *obj, CellCoord const &cellCoord)
template<>
void SetObjectCell (GameObject *obj, CellCoord const &cellCoord)
void Visit (AreaTriggerMapType &) const
void Visit (CorpseMapType &) const
void Visit (CreatureMapType &m)
void Visit (DynamicObjectMapType &) const
void Visit (GameObjectMapType &m)

Static Public Member Functions

template<class T>
static void SetObjectCell (T *obj, CellCoord const &cellCoord)

Private Attributes

Cell i_cell
uint32 i_corpses
uint32 i_creatures
uint32 i_gameObjects
NGridTypei_grid
Mapi_map

Friends

class ObjectWorldLoader

Detailed Description

Definition at line 17 of file ObjectGridLoader.h.

Constructor & Destructor Documentation

◆ ObjectGridLoader()

ObjectGridLoader::ObjectGridLoader ( NGridType & grid,
Map * map,
const Cell & cell )
inline

Definition at line 22 of file ObjectGridLoader.h.

References i_cell, i_corpses, i_creatures, i_gameObjects, i_grid, and i_map.

Member Function Documentation

◆ LoadN()

void ObjectGridLoader::LoadN ( void )

◆ SetObjectCell() [1/3]

template<>
void ObjectGridLoader::SetObjectCell ( Creature * obj,
CellCoord const & cellCoord )

Definition at line 70 of file ObjectGridLoader.cpp.

References MapObject::SetCurrentCell().

◆ SetObjectCell() [2/3]

template<>
void ObjectGridLoader::SetObjectCell ( GameObject * obj,
CellCoord const & cellCoord )

Definition at line 76 of file ObjectGridLoader.cpp.

References MapObject::SetCurrentCell().

◆ SetObjectCell() [3/3]

template<class T>
void ObjectGridLoader::SetObjectCell ( T * obj,
CellCoord const & cellCoord )
static

Definition at line 68 of file ObjectGridLoader.cpp.

Referenced by AddObjectHelper(), and AddObjectHelper().

◆ Visit() [1/5]

void ObjectGridLoader::Visit ( AreaTriggerMapType & ) const
inline

Definition at line 30 of file ObjectGridLoader.h.

◆ Visit() [2/5]

void ObjectGridLoader::Visit ( CorpseMapType & ) const
inline

Definition at line 28 of file ObjectGridLoader.h.

◆ Visit() [3/5]

void ObjectGridLoader::Visit ( CreatureMapType & m)

◆ Visit() [4/5]

void ObjectGridLoader::Visit ( DynamicObjectMapType & ) const
inline

Definition at line 29 of file ObjectGridLoader.h.

◆ Visit() [5/5]

void ObjectGridLoader::Visit ( GameObjectMapType & m)

◆ ObjectWorldLoader

friend class ObjectWorldLoader
friend

Definition at line 19 of file ObjectGridLoader.h.

References ObjectWorldLoader.

Referenced by LoadN(), and ObjectWorldLoader.

Member Data Documentation

◆ i_cell

Cell ObjectGridLoader::i_cell
private

Definition at line 37 of file ObjectGridLoader.h.

Referenced by LoadN(), ObjectGridLoader(), Visit(), and Visit().

◆ i_corpses

uint32 ObjectGridLoader::i_corpses
private

Definition at line 42 of file ObjectGridLoader.h.

Referenced by LoadN(), and ObjectGridLoader().

◆ i_creatures

uint32 ObjectGridLoader::i_creatures
private

Definition at line 41 of file ObjectGridLoader.h.

Referenced by LoadN(), ObjectGridLoader(), and Visit().

◆ i_gameObjects

uint32 ObjectGridLoader::i_gameObjects
private

Definition at line 40 of file ObjectGridLoader.h.

Referenced by LoadN(), ObjectGridLoader(), and Visit().

◆ i_grid

NGridType& ObjectGridLoader::i_grid
private

Definition at line 38 of file ObjectGridLoader.h.

Referenced by LoadN(), and ObjectGridLoader().

◆ i_map

Map* ObjectGridLoader::i_map
private

Definition at line 39 of file ObjectGridLoader.h.

Referenced by LoadN(), ObjectGridLoader(), Visit(), and Visit().


The documentation for this class was generated from the following files: