#include <Syndicate/Data/SpriteElement.h>
Inheritance diagram for Syndicate::Data::SpriteElement:
Public Member Functions | |
| SpriteElement (void) | |
| ~SpriteElement (void) | |
| void | get (unsigned id, unsigned &sprite, int &x_offset, int &y_offset, bool &flipped, unsigned &next) const |
| unsigned | size (void) const |
| virtual void | info (void) |
| bool | load (char const *filename) |
| unsigned | getLength (void) |
Protected Attributes | |
| unsigned | _data_length |
Private Attributes | |
| Element * | _elements |
Classes | |
| struct | Element |
| Syndicate::Data::SpriteElement::SpriteElement | ( | void | ) | [inline] |
| Syndicate::Data::SpriteElement::~SpriteElement | ( | void | ) | [inline] |
| void Syndicate::Data::SpriteElement::get | ( | unsigned | id, | |
| unsigned & | sprite, | |||
| int & | x_offset, | |||
| int & | y_offset, | |||
| bool & | flipped, | |||
| unsigned & | next | |||
| ) | const |
Given the index of the element, returns the index of the first sprite of the element and other informations.
| [in] | id | the *index* of the element |
| [out] | sprite | the *index* of the first sprite that make this element |
| [out] | x_offset | the horizontal offset of this sprite |
| [out] | y_offset | the vertical offset of this sprite |
| [out] | flipped | say if the sprite is flipped horizontaly |
| [out] | next | the *index* of the next element |
| unsigned Syndicate::Data::SpriteElement::size | ( | void | ) | const [inline] |
Return the number of elements
| virtual void Syndicate::Data::File::info | ( | void | ) | [virtual, inherited] |
In debug mode it display the informations.
| bool Syndicate::Data::File::load | ( | char const * | filename | ) | [inherited] |
This method load the content (unpacked) of the file at the adress pointed by _data.
| [in] | filename | the name of the file. |
| true | if success. | |
| false | if fails. If previous file is loaded, the data keep unaffected. |
| unsigned Syndicate::Data::File::getLength | ( | void | ) | [inline, inherited] |
Element* Syndicate::Data::SpriteElement::_elements [private] |
unsigned Syndicate::Data::File::_data_length [protected, inherited] |
1.5.2