ScummVM API documentation
Ultima::Shared::Gfx::Sprites Class Reference
Inheritance diagram for Ultima::Shared::Gfx::Sprites:
Ultima::Ultima1::U1Gfx::Sprites

Public Member Functions

virtual ~Sprites ()
 
Point getSpriteSize () const
 
size_t size () const
 
bool empty () const
 
virtual Spriteoperator[] (uint idx)
 

Protected Member Functions

void load (const Common::Path &name, uint bpp, uint16 w=16, uint16 h=16)
 

Protected Attributes

Common::Array< Sprite_data
 
Point _spriteSize
 

Constructor & Destructor Documentation

◆ ~Sprites()

virtual Ultima::Shared::Gfx::Sprites::~Sprites ( )
inlinevirtual

Destructor

Reimplemented in Ultima::Ultima1::U1Gfx::Sprites.

Member Function Documentation

◆ load()

void Ultima::Shared::Gfx::Sprites::load ( const Common::Path name,
uint  bpp,
uint16  w = 16,
uint16  h = 16 
)
protected

Load a raw data file containing sprite pixels

Parameters
nameFilename
bppThe bits per pixel for tiles in the file
wWidth of tiles
hHeight of files

◆ getSpriteSize()

Point Ultima::Shared::Gfx::Sprites::getSpriteSize ( ) const
inline

Return the default dimensions for tiles

◆ size()

size_t Ultima::Shared::Gfx::Sprites::size ( ) const
inline

Return the size of the sprites list

◆ empty()

bool Ultima::Shared::Gfx::Sprites::empty ( ) const
inline

Returns true if the sprites list is empty

◆ operator[]()

virtual Sprite& Ultima::Shared::Gfx::Sprites::operator[] ( uint  idx)
inlinevirtual

Return a specific sprite

Reimplemented in Ultima::Ultima1::U1Gfx::Sprites.


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