OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SpriteFrameTable Struct Reference

#include <Sprites.h>

Public Member Functions

void ResetLoadedFlags ()
 
void InitializeSprite (signed int uSpriteID)
 
int FastFindSprite (std::string_view pSpriteName)
 
SpriteFrameGetFrame (int uSpriteID, Duration uTime)
 
SpriteFrameGetFrameReversed (int uSpriteID, Duration time)
 
void ResetPaletteIndexes ()
 

Public Attributes

std::vector< SpriteFramepSpriteSFrames
 
std::vector< uint16_t > pSpriteEFrames
 

Member Function Documentation

◆ FastFindSprite()

int SpriteFrameTable::FastFindSprite ( std::string_view  pSpriteName)
Parameters
pSpriteNameName of the sprite to find. Names are case-insensitive.
Returns
Index in pSpriteSFrames for the sprite, or 0 if sprite wasn't found. Conveniently, sprite 0 is a dummy sprite that actually exists.

◆ GetFrame()

SpriteFrame * SpriteFrameTable::GetFrame ( int  uSpriteID,
Duration  uTime 
)

◆ GetFrameReversed()

SpriteFrame * SpriteFrameTable::GetFrameReversed ( int  uSpriteID,
Duration  time 
)

◆ InitializeSprite()

void SpriteFrameTable::InitializeSprite ( signed int  uSpriteID)

◆ ResetLoadedFlags()

void SpriteFrameTable::ResetLoadedFlags ( )

◆ ResetPaletteIndexes()

void SpriteFrameTable::ResetPaletteIndexes ( )

Resets the uPaletteIndex of all loaded pSpriteSFrames. Called by PaletteManager on reset.

Member Data Documentation

◆ pSpriteEFrames

std::vector<uint16_t> SpriteFrameTable::pSpriteEFrames

Indices into pSpriteSFrames, sorted by sprite name. Note that pSpriteSFrames itself is not sorted. Contains only indices for 'a' (frontal?) sprites, so smaller in size than pSpriteSFrames.

◆ pSpriteSFrames

std::vector<SpriteFrame> SpriteFrameTable::pSpriteSFrames

The documentation for this struct was generated from the following files: