ManaPlus
|
#include <walklayer.h>
Public Member Functions | |
WalkLayer (const int width, const int height) | |
~WalkLayer () | |
int * | getData () |
int | getDataAt (const int x, const int y) const |
int | calcMemoryLocal () const |
std::string | getCounterName () const |
Public Member Functions inherited from Resource | |
Resource () | |
~Resource () | |
virtual void | incRef () |
virtual void | decRef () |
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 |
int * | mTiles |
Additional Inherited Members | |
Data Fields inherited from Resource | |
time_t | mTimeStamp |
std::string | mIdPath |
std::string | mSource |
unsigned int | mRefCount |
bool | mProtected |
bool | mNotCount |
Definition at line 29 of file walklayer.h.
WalkLayer::WalkLayer | ( | const int | width, |
const int | height | ||
) |
WalkLayer::~WalkLayer | ( | ) |
|
virtual |
Reimplemented from MemoryCounter.
Definition at line 47 of file walklayer.cpp.
References Resource::calcMemoryLocal(), mHeight, mWidth, and WalkLayer().
|
inlinevirtual |
Reimplemented from MemoryCounter.
Definition at line 45 of file walklayer.h.
|
inline |
Definition at line 38 of file walklayer.h.
References mTiles.
Referenced by NavigationManager::loadWalkLayer().
int WalkLayer::getDataAt | ( | const int | x, |
const int | y | ||
) | const |
Definition at line 40 of file walklayer.cpp.
References mHeight, mTiles, mWidth, x, and y.
Referenced by LocalPlayer::isReachable().
|
private |
Definition at line 50 of file walklayer.h.
Referenced by calcMemoryLocal(), and getDataAt().
|
private |
Definition at line 51 of file walklayer.h.
Referenced by getData(), getDataAt(), WalkLayer(), and ~WalkLayer().
|
private |
Definition at line 49 of file walklayer.h.
Referenced by calcMemoryLocal(), and getDataAt().