#include <SpriteManager.h>
Inheritance diagram for CSprite:
Protected Types | |
enum | _spt_type { tBackground, tEntity, tMask } |
Enumaration of all sprite types. More... | |
Protected Methods | |
bool | Load (CString &sFile) |
Reads the object from the disk. | |
bool | Save (CString &sFile) |
Reads the object from the disk. | |
Protected Attributes | |
enum CSprite::_spt_type | m_SptType |
Enumaration of all sprite types. Current sprite type. | |
CSpriteSheet * | m_pSpriteSheet |
Pointer to the sprites sheet that contains this sprite. | |
CString | m_sSpriteName |
Contains the current name of the sprite. | |
CRect | m_rcBoundaries |
Boundaries box of the sprite. |
Definition at line 135 of file SpriteManager.h.
|
Enumaration of all sprite types.
Background, Entity and Mask are be mutually exclusive, and all sprites(except for the entities) are tiles.
Definition at line 156 of file SpriteManager.h. |
|
Reads the object from the disk. Loads or reads the object from the disk. This method fills all necesary information and attributes from the object in a file
Implements IIOObject. Definition at line 140 of file SpriteManager.h. |
|
Reads the object from the disk. Saves or writes the object to the disk. This method takes all necesary information and attributes from the object and put them in the file for latter load and use of the object.
Implements IIOObject. Definition at line 141 of file SpriteManager.h. |
|
Pointer to the sprites sheet that contains this sprite. This can never be a NULL, since every animation belongs to a sprite sheet (and to only one). Definition at line 172 of file SpriteManager.h. |
|
Boundaries box of the sprite. This represents the possition and size of the sprite in the sprite sheet. All values must be valid and within the sprite sheet image file boundaries. Definition at line 184 of file SpriteManager.h. |
|
Enumaration of all sprite types. Current sprite type.
Sprites marked as background or entities are supposed to be visible in the map editor whilst masked sprites (or maps) are just noticable during the game, but not visibles. |
|
Contains the current name of the sprite. Every sprite must have a name, and the names can never be the same, they are unique and represent a sole sprite in the full game. Definition at line 178 of file SpriteManager.h. |