OpenXcom
1.0
Open-source clone of the original X-Com
|
For adding a set of extra sprite data to the game. More...
#include <ExtraSprites.h>
Public Member Functions | |
ExtraSprites () | |
Creates a blank external sprite set. More... | |
virtual | ~ExtraSprites () |
Cleans up the external sprite set. More... | |
void | load (const YAML::Node &node, int modIndex) |
Loads the data from YAML. More... | |
std::map< int, std::string > * | getSprites () |
Gets the list of sprites defined by this mod. More... | |
int | getWidth () const |
Gets the width of the surfaces (used for single images and new spritesets). More... | |
int | getHeight () const |
Gets the height of the surfaces (used for single images and new spritesets). More... | |
bool | getSingleImage () const |
Checks if this is a single surface, or a set of surfaces. More... | |
int | getModIndex () const |
Gets the mod index for this external sprite set. More... | |
int | getSubX () const |
Gets the x subdivision. More... | |
int | getSubY () const |
Gets the y subdivision. More... | |
For adding a set of extra sprite data to the game.
OpenXcom::ExtraSprites::ExtraSprites | ( | ) |
Creates a blank external sprite set.
Creates a blank set of extra sprite data.
|
virtual |
Cleans up the external sprite set.
Cleans up the extra sprite set.
int OpenXcom::ExtraSprites::getHeight | ( | ) | const |
Gets the height of the surfaces (used for single images and new spritesets).
int OpenXcom::ExtraSprites::getModIndex | ( | ) | const |
Gets the mod index for this external sprite set.
bool OpenXcom::ExtraSprites::getSingleImage | ( | ) | const |
Checks if this is a single surface, or a set of surfaces.
Returns whether this is a single surface as opposed to a set of surfaces.
std::map< int, std::string > * OpenXcom::ExtraSprites::getSprites | ( | ) |
Gets the list of sprites defined by this mod.
Gets the list of sprites defined my this mod.
int OpenXcom::ExtraSprites::getSubX | ( | ) | const |
Gets the x subdivision.
int OpenXcom::ExtraSprites::getSubY | ( | ) | const |
Gets the y subdivision.
int OpenXcom::ExtraSprites::getWidth | ( | ) | const |
Gets the width of the surfaces (used for single images and new spritesets).
void OpenXcom::ExtraSprites::load | ( | const YAML::Node & | node, |
int | modIndex | ||
) |
Loads the data from YAML.
Loads the extra sprite set from YAML.
node | YAML node. |
modIndex | the internal index of the associated mod. |