mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 01:37:04 +00:00
[7114] Code cleanups.
Remove redundant `inline` for in-class function definitions. Fixed float -> int implicit casts.
This commit is contained in:
parent
9fba64aeae
commit
9e590f7ceb
22 changed files with 82 additions and 83 deletions
|
|
@ -74,12 +74,12 @@ class MANGOS_DLL_DECL NGrid
|
|||
const GridType& operator()(unsigned short x, unsigned short y) const { return i_cells[x][y]; }
|
||||
GridType& operator()(unsigned short x, unsigned short y) { return i_cells[x][y]; }
|
||||
|
||||
inline const uint32& GetGridId(void) const { return i_gridId; }
|
||||
inline void SetGridId(const uint32 id) const { i_gridId = id; }
|
||||
inline grid_state_t GetGridState(void) const { return i_cellstate; }
|
||||
inline void SetGridState(grid_state_t s) { i_cellstate = s; }
|
||||
inline int32 getX() const { return i_x; }
|
||||
inline int32 getY() const { return i_y; }
|
||||
const uint32& GetGridId(void) const { return i_gridId; }
|
||||
void SetGridId(const uint32 id) const { i_gridId = id; }
|
||||
grid_state_t GetGridState(void) const { return i_cellstate; }
|
||||
void SetGridState(grid_state_t s) { i_cellstate = s; }
|
||||
int32 getX() const { return i_x; }
|
||||
int32 getY() const { return i_y; }
|
||||
|
||||
void link(GridRefManager<NGrid<N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES, ThreadModel> >* pTo)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue