ManaPlus
|
#include <mapheights.h>
Public Member Functions | |
MapHeights (const int width, const int height) | |
~MapHeights () | |
void | setHeight (const int x, const int y, const uint8_t height) |
uint8_t | getHeight (const int x, const int y) const |
int | calcMemoryLocal () const |
std::string | getCounterName () const |
Public Member Functions inherited from MemoryCounter | |
MemoryCounter () | |
virtual | ~MemoryCounter () |
int | calcMemory (const int level) const |
virtual int | calcMemoryChilds (const int level) const |
Private Attributes | |
int | mWidth |
int | mHeight |
uint8_t * | mTiles |
Friends | |
class | Map |
Definition at line 31 of file mapheights.h.
MapHeights::MapHeights | ( | const int | width, |
const int | height | ||
) |
Definition at line 26 of file mapheights.cpp.
References mHeight, mTiles, and mWidth.
Referenced by calcMemoryLocal().
MapHeights::~MapHeights | ( | ) |
|
virtual |
Reimplemented from MemoryCounter.
Definition at line 46 of file mapheights.cpp.
References MapHeights(), mHeight, and mWidth.
|
inlinevirtual |
Reimplemented from MemoryCounter.
Definition at line 52 of file mapheights.h.
|
inline |
Definition at line 44 of file mapheights.h.
void MapHeights::setHeight | ( | const int | x, |
const int | y, | ||
const uint8_t | height | ||
) |
|
friend |
Definition at line 34 of file mapheights.h.
|
private |
Definition at line 57 of file mapheights.h.
Referenced by calcMemoryLocal(), getHeight(), and MapHeights().
|
private |
Definition at line 58 of file mapheights.h.
Referenced by getHeight(), MapHeights(), setHeight(), and ~MapHeights().
|
private |
Definition at line 56 of file mapheights.h.
Referenced by calcMemoryLocal(), getHeight(), MapHeights(), and setHeight().