Public Member Functions | |
SpriteSlots (MADSEngine *vm) | |
void | reset (bool flag=true) |
void | deleteEntry (int index) |
void | setDirtyAreas () |
void | fullRefresh (bool clearAll=false) |
int | deleteTimer (int seqIndex) |
int | add () |
void | drawBackground () |
void | drawSprites (MSurface *s) |
void | cleanUp () |
Public Member Functions inherited from Common::Array< SpriteSlot > | |
Array (size_type count) | |
Array (size_type count, const SpriteSlot &value) | |
Array (const Array< SpriteSlot > &array) | |
Array (Array< SpriteSlot > &&old) | |
Array (std::initializer_list< SpriteSlot > list) | |
Array (const T2 *array, size_type n) | |
void | emplace (const_iterator pos, TArgs &&... args) |
void | emplace_back (TArgs &&...args) |
void | push_back (const SpriteSlot &element) |
void | push_back (SpriteSlot &&element) |
void | push_back (const Array< SpriteSlot > &array) |
void | pop_back () |
const SpriteSlot * | data () const |
SpriteSlot * | data () |
SpriteSlot & | front () |
const SpriteSlot & | front () const |
SpriteSlot & | back () |
const SpriteSlot & | back () const |
void | insert_at (size_type idx, const SpriteSlot &element) |
void | insert_at (size_type idx, const Array< SpriteSlot > &array) |
void | insert (iterator pos, const SpriteSlot &element) |
SpriteSlot | remove_at (size_type idx) |
SpriteSlot & | operator[] (size_type idx) |
const SpriteSlot & | operator[] (size_type idx) const |
Array< SpriteSlot > & | operator= (const Array< SpriteSlot > &array) |
Array & | operator= (Array< SpriteSlot > &&old) |
size_type | size () const |
void | clear () |
iterator | erase (iterator pos) |
iterator | erase (iterator first, iterator last) |
bool | empty () const |
bool | operator== (const Array< SpriteSlot > &other) const |
bool | operator!= (const Array< SpriteSlot > &other) const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
void | reserve (size_type newCapacity) |
void | resize (size_type newSize) |
void | resize (size_type newSize, const SpriteSlot value) |
void | assign (const_iterator first, const_iterator last) |
void | swap (Array &arr) |
Additional Inherited Members | |
Public Types inherited from Common::Array< SpriteSlot > | |
typedef SpriteSlot * | iterator |
typedef const SpriteSlot * | const_iterator |
typedef SpriteSlot | value_type |
typedef uint | size_type |
Protected Member Functions inherited from Common::Array< SpriteSlot > | |
void | allocCapacity (size_type capacity) |
void | freeStorage (SpriteSlot *storage, const size_type elements) |
iterator | insert_aux (iterator pos, const_iterator first, const_iterator last) |
Static Protected Member Functions inherited from Common::Array< SpriteSlot > | |
static size_type | roundUpCapacity (size_type capacity) |
Protected Attributes inherited from Common::Array< SpriteSlot > | |
size_type | _capacity |
size_type | _size |
SpriteSlot * | _storage |
void MADS::SpriteSlots::reset | ( | bool | flag = true | ) |
Clears any pending slot data and schedules a full screen refresh.
flag | Also reset sprite list |
void MADS::SpriteSlots::deleteEntry | ( | int | index | ) |
Delete a sprite entry
index | Specifies the index in the array |
void MADS::SpriteSlots::setDirtyAreas | ( | ) |
Setup dirty areas for the sprite slots
void MADS::SpriteSlots::fullRefresh | ( | bool | clearAll = false | ) |
Adds a full screen refresh to the sprite slots
int MADS::SpriteSlots::deleteTimer | ( | int | seqIndex | ) |
Delete a timer entry with the given Id
int MADS::SpriteSlots::add | ( | ) |
Add a new slot entry and return it's index
void MADS::SpriteSlots::drawBackground | ( | ) |
Draw any sprites into the background of the scene
void MADS::SpriteSlots::drawSprites | ( | MSurface * | s | ) |
Draw any sprites into the foreground of the scene