ManaPlus
|
#include <tileset.h>
Public Member Functions | |
Tileset (Image *const img, const int w, const int h, const int firstGid, const int margin, const int spacing) | |
int | getFirstGid () const |
void | setProperties (const std::map< std::string, std::string > &props) |
std::string | getProperty (const std::string &name) |
int | calcMemoryLocal () const |
void | setEmpty (const bool b) |
bool | isEmpty () const |
Public Member Functions inherited from ImageSet | |
ImageSet (Image *const img, const int w, const int h, const int margin, const int spacing) | |
~ImageSet () | |
int | getWidth () const |
int | getHeight () const |
Image * | get (const size_type i) const |
size_type | size () const |
int | getOffsetX () const |
void | setOffsetX (const int n) |
int | getOffsetY () const |
void | setOffsetY (const int n) |
const std::vector< Image * > & | getImages () 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 | |
std::map< std::string, std::string > | mProperties |
int | mFirstGid |
bool | mIsEmpty |
Additional Inherited Members | |
Public Types inherited from ImageSet | |
typedef std::vector< Image * >::size_type | size_type |
Data Fields inherited from Resource | |
time_t | mTimeStamp |
std::string | mIdPath |
std::string | mSource |
unsigned int | mRefCount |
bool | mProtected |
bool | mNotCount |
A tileset, which is basically just an image set but it stores a firstgid.
|
inline |
Constructor.
Definition at line 40 of file tileset.h.
Referenced by calcMemoryLocal().
|
inlinevirtual |
Reimplemented from ImageSet.
Definition at line 80 of file tileset.h.
References ImageSet::calcMemoryLocal(), mProperties, and Tileset().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 97 of file tileset.h.
References mIsEmpty.
Referenced by MapReader::readTileset().
|
inline |
Set tileset property.
Definition at line 64 of file tileset.h.
References mProperties.
Referenced by MapReader::readTileset().
|
private |
Definition at line 105 of file tileset.h.
Referenced by getFirstGid().
|
private |
Definition at line 106 of file tileset.h.
Referenced by isEmpty(), and setEmpty().
|
private |
Definition at line 104 of file tileset.h.
Referenced by calcMemoryLocal(), getProperty(), and setProperties().