ScummVM API documentation
MADS::SpriteSets Class Reference
Inheritance diagram for MADS::SpriteSets:
Common::Array< SpriteAsset *>

Public Member Functions

 SpriteSets (MADSEngine *vm)
 
 ~SpriteSets ()
 
void clear ()
 
int add (SpriteAsset *asset, int idx=0)
 
int addSprites (const Common::Path &resName, int flags=0)
 
void remove (int idx)
 
SpriteAsset *& operator[] (int idx)
 
- Public Member Functions inherited from Common::Array< SpriteAsset *>
 Array (size_type count)
 
 Array (size_type count, const SpriteAsset * &value)
 
 Array (const Array< SpriteAsset * > &array)
 
 Array (Array< SpriteAsset * > &&old)
 
 Array (std::initializer_list< SpriteAsset * > list)
 
 Array (const T2 *array, size_type n)
 
void emplace (const_iterator pos, TArgs &&... args)
 
void emplace_back (TArgs &&...args)
 
void push_back (const SpriteAsset * &element)
 
void push_back (SpriteAsset * &&element)
 
void push_back (const Array< SpriteAsset * > &array)
 
void pop_back ()
 
const SpriteAsset * * data () const
 
SpriteAsset * * data ()
 
SpriteAsset * & front ()
 
const SpriteAsset * & front () const
 
SpriteAsset * & back ()
 
const SpriteAsset * & back () const
 
void insert_at (size_type idx, const SpriteAsset * &element)
 
void insert_at (size_type idx, const Array< SpriteAsset * > &array)
 
void insert (iterator pos, const SpriteAsset * &element)
 
SpriteAsset * remove_at (size_type idx)
 
SpriteAsset * & operator[] (size_type idx)
 
const SpriteAsset * & operator[] (size_type idx) const
 
Array< SpriteAsset * > & operator= (const Array< SpriteAsset * > &array)
 
Arrayoperator= (Array< SpriteAsset * > &&old)
 
size_type size () const
 
void clear ()
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 
bool empty () const
 
bool operator== (const Array< SpriteAsset * > &other) const
 
bool operator!= (const Array< SpriteAsset * > &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 SpriteAsset * value)
 
void assign (const_iterator first, const_iterator last)
 
void swap (Array &arr)
 

Public Attributes

SpriteAsset_uiSprites
 

Additional Inherited Members

- Public Types inherited from Common::Array< SpriteAsset *>
typedef SpriteAsset * * iterator
 
typedef const SpriteAsset * * const_iterator
 
typedef SpriteAsset * value_type
 
typedef uint size_type
 
- Protected Member Functions inherited from Common::Array< SpriteAsset *>
void allocCapacity (size_type capacity)
 
void freeStorage (SpriteAsset * *storage, const size_type elements)
 
iterator insert_aux (iterator pos, const_iterator first, const_iterator last)
 
- Static Protected Member Functions inherited from Common::Array< SpriteAsset *>
static size_type roundUpCapacity (size_type capacity)
 
- Protected Attributes inherited from Common::Array< SpriteAsset *>
size_type _capacity
 
size_type _size
 
SpriteAsset * * _storage
 

Constructor & Destructor Documentation

◆ SpriteSets()

MADS::SpriteSets::SpriteSets ( MADSEngine vm)
inline

Constructor

◆ ~SpriteSets()

MADS::SpriteSets::~SpriteSets ( )

Destructor

Member Function Documentation

◆ clear()

void MADS::SpriteSets::clear ( )

Clears the current list, freeing any laoded assets

◆ add()

int MADS::SpriteSets::add ( SpriteAsset asset,
int  idx = 0 
)

Add a sprite asset to the list

◆ addSprites()

int MADS::SpriteSets::addSprites ( const Common::Path resName,
int  flags = 0 
)

Adds a sprite asset to the list by name

◆ remove()

void MADS::SpriteSets::remove ( int  idx)

Remove an asset from the list


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