OpenXcom  1.0
Open-source clone of the original X-Com
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
OpenXcom::ExtraSprites Class Reference

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...
 

Detailed Description

For adding a set of extra sprite data to the game.

Constructor & Destructor Documentation

OpenXcom::ExtraSprites::ExtraSprites ( )

Creates a blank external sprite set.

Creates a blank set of extra sprite data.

OpenXcom::ExtraSprites::~ExtraSprites ( )
virtual

Cleans up the external sprite set.

Cleans up the extra sprite set.

Member Function Documentation

int OpenXcom::ExtraSprites::getHeight ( ) const

Gets the height of the surfaces (used for single images and new spritesets).

Returns
The height of the surfaces.
int OpenXcom::ExtraSprites::getModIndex ( ) const

Gets the mod index for this external sprite set.

Returns
The mod index.
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.

Returns
True if this is a single surface.
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.

Returns
The list of sprites.
int OpenXcom::ExtraSprites::getSubX ( ) const

Gets the x subdivision.

Returns
The x subdivision.
int OpenXcom::ExtraSprites::getSubY ( ) const

Gets the y subdivision.

Returns
The y subdivision.
int OpenXcom::ExtraSprites::getWidth ( ) const

Gets the width of the surfaces (used for single images and new spritesets).

Returns
The width of the surfaces.
void OpenXcom::ExtraSprites::load ( const YAML::Node &  node,
int  modIndex 
)

Loads the data from YAML.

Loads the extra sprite set from YAML.

Parameters
nodeYAML node.
modIndexthe internal index of the associated mod.

The documentation for this class was generated from the following files: