#include <ConfigMatrix.h>
Inheritance diagram for ConfigMatrix::ConfigCell:
Public Member Functions | |
ConfigCell (ConfigMatrix::SizeType xIndex, ConfigMatrix::SizeType yIndex, const Object::Config *objectConfig) | |
Constructor. | |
ConfigCell (TiXmlElement *node) | |
Constructs object using data from XML node. | |
virtual | ~ConfigCell () |
Destructor. | |
virtual TiXmlElement * | CreateXmlNode () const |
This class can not create XML node alone, exception will be thrown. | |
ConfigMatrix::SizeType | GetXIndex () const |
Returns x index. | |
ConfigMatrix::SizeType | GetYIndex () const |
Returns y index. | |
const Object::Config * | GetObjectConfig () const |
Returns object's config. | |
void | SetXIndex (ConfigMatrix::SizeType index) |
Sets x index. | |
void | SetYIndex (ConfigMatrix::SizeType index) |
Sets y index. | |
void | SetObjectConfig (const Object::Config *object) |
Sets object's config. | |
Private Member Functions | |
ConfigCell (const ConfigCell &) | |
ConfigCell & | operator= (const ConfigCell &) |
Private Attributes | |
ConfigMatrix::SizeType | x |
x index of the object's position | |
ConfigMatrix::SizeType | y |
y index of the object's position | |
const Object::Config * | objConfig |
Object's config. |
ConfigMatrix::ConfigCell::ConfigCell | ( | ConfigMatrix::SizeType | xIndex, | |
ConfigMatrix::SizeType | yIndex, | |||
const Object::Config * | objectConfig | |||
) | [inline] |
Constructor.
xIndex | x index of the object's position | |
yIndex | y index of the object's position | |
objectConfig | Object's config |
ConfigMatrix::ConfigCell::ConfigCell | ( | TiXmlElement * | node | ) | [explicit] |
Constructs object using data from XML node.
virtual ConfigMatrix::ConfigCell::~ConfigCell | ( | ) | [inline, virtual] |
Destructor.
ConfigMatrix::ConfigCell::ConfigCell | ( | const ConfigCell & | ) | [private] |
TiXmlElement * ConfigMatrix::ConfigCell::CreateXmlNode | ( | ) | const [virtual] |
const Object::Config* ConfigMatrix::ConfigCell::GetObjectConfig | ( | ) | const [inline] |
Returns object's config.
ConfigMatrix::SizeType ConfigMatrix::ConfigCell::GetXIndex | ( | ) | const [inline] |
Returns x index.
ConfigMatrix::SizeType ConfigMatrix::ConfigCell::GetYIndex | ( | ) | const [inline] |
Returns y index.
ConfigCell& ConfigMatrix::ConfigCell::operator= | ( | const ConfigCell & | ) | [private] |
void ConfigMatrix::ConfigCell::SetObjectConfig | ( | const Object::Config * | object | ) | [inline] |
Sets object's config.
object | Config of the object |
void ConfigMatrix::ConfigCell::SetXIndex | ( | ConfigMatrix::SizeType | index | ) | [inline] |
Sets x index.
index | x index to be set |
void ConfigMatrix::ConfigCell::SetYIndex | ( | ConfigMatrix::SizeType | index | ) | [inline] |
Sets y index.
index | y index to be set |
const Object::Config* ConfigMatrix::ConfigCell::objConfig [private] |
Object's config.
x index of the object's position
y index of the object's position