ScummVM API documentation
Draci::Drawable Class Referenceabstract
Inheritance diagram for Draci::Drawable:
Draci::Sprite Draci::Text

Public Member Functions

virtual void draw (Surface *surface, bool markDirty, int relX, int relY) const =0
 
virtual void drawReScaled (Surface *surface, bool markDirty, const Displacement &displacement) const =0
 
uint getWidth () const
 
uint getHeight () const
 
uint getScaledWidth () const
 
uint getScaledHeight () const
 
void setScaled (uint width, uint height)
 
int getX () const
 
int getY () const
 
void setX (int x)
 
void setY (int y)
 
void setDelay (int delay)
 
int getDelay () const
 
virtual Common::Rect getRect (const Displacement &displacement) const =0
 
virtual DrawableType getType () const =0
 

Protected Attributes

uint _width
 Width of the sprite.
 
uint _height
 Height of the sprite.
 
uint _scaledWidth
 Scaled width of the sprite.
 
uint _scaledHeight
 Scaled height of the sprite.
 
int _x
 
int _y
 Sprite coordinates.
 
int _delay
 

Member Data Documentation

◆ _delay

int Draci::Drawable::_delay
protected

The time a drawable should stay on the screen before being replaced by another or deleted


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