![]() |
ManaPlus
|
#include <objectslayer.h>
Public Member Functions | |
| ObjectsLayer (const unsigned width, const unsigned height) | |
| ~ObjectsLayer () | |
| void | addObject (const std::string &name, const int type, const unsigned x, const unsigned y, unsigned dx, unsigned dy) |
| MapObjectList * | getAt (const unsigned x, const unsigned 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 | |
| MapObjectList ** | mTiles |
| unsigned | mWidth |
| unsigned | mHeight |
Definition at line 31 of file objectslayer.h.
| ObjectsLayer::ObjectsLayer | ( | const unsigned | width, |
| const unsigned | height | ||
| ) |
| ObjectsLayer::~ObjectsLayer | ( | ) |
Definition at line 40 of file objectslayer.cpp.
References mHeight, mTiles, mWidth, and EmoteDB::size().
| void ObjectsLayer::addObject | ( | const std::string & | name, |
| const int | type, | ||
| const unsigned | x, | ||
| const unsigned | y, | ||
| unsigned | dx, | ||
| unsigned | dy | ||
| ) |
Definition at line 50 of file objectslayer.cpp.
References mHeight, mTiles, mWidth, MapObjectList::objects, x, and y.
|
virtual |
Reimplemented from MemoryCounter.
Definition at line 83 of file objectslayer.cpp.
| MapObjectList * ObjectsLayer::getAt | ( | const unsigned | x, |
| const unsigned | y | ||
| ) | const |
|
inlinevirtual |
Reimplemented from MemoryCounter.
Definition at line 49 of file objectslayer.h.
|
private |
Definition at line 55 of file objectslayer.h.
Referenced by addObject(), calcMemoryLocal(), getAt(), and ~ObjectsLayer().
|
private |
Definition at line 53 of file objectslayer.h.
Referenced by addObject(), getAt(), ObjectsLayer(), and ~ObjectsLayer().
|
private |
Definition at line 54 of file objectslayer.h.
Referenced by addObject(), calcMemoryLocal(), getAt(), and ~ObjectsLayer().