ScummVM API documentation
Asylum::Object Class Reference
Inheritance diagram for Asylum::Object:
Common::Serializable

Public Member Functions

 Object (AsylumEngine *engine)
 
void setFrameIndex (int32 index)
 
void setPriority (int32 priority)
 
void setSoundResourceId (ResourceId id)
 
void setTransparency (int32 val)
 
void setField6A4 (ActorDirection val)
 
Common::RectgetBoundingRect ()
 
uint32 getFrameIndex ()
 
uint32 getFrameCount ()
 
FrameSoundItemgetFrameSoundItem (uint32 index)
 
ObjectId getId ()
 
uint32 getPolygonIndex ()
 
int32 getPriority ()
 
ResourceId getResourceId ()
 
ResourceId getSoundResourceId ()
 
Common::RectgetRect ()
 
int32 getScriptIndex ()
 
int32 getSoundY ()
 
int32 getTransparency ()
 
int32 getField688 ()
 
ActorDirection getField6A4 ()
 
void load (Common::SeekableReadStream *stream)
 
void disable ()
 
void disableAndRemoveFromQueue ()
 
bool isOnScreen ()
 
void adjustCoordinates (Common::Point *point)
 
void draw ()
 
void update ()
 
void setNextFrame (uint32 flags)
 
void stopSound ()
 
void stopAllSounds ()
 
bool checkFlags () const
 
char * getName ()
 
Common::String toString (bool shortString=true)
 
void saveLoadWithSerializer (Common::Serializer &s)
 

Public Attributes

int16 x
 
int16 y
 
uint32 flags
 
int32 actionType
 

Member Function Documentation

◆ load()

void Asylum::Object::load ( Common::SeekableReadStream stream)

Loads the object data

Parameters
streamIf non-null, the Common::SeekableReadStream to load from

◆ disable()

void Asylum::Object::disable ( )

Sets the object disabled flag

◆ disableAndRemoveFromQueue()

void Asylum::Object::disableAndRemoveFromQueue ( )

Sets the object destroyed flag and remove this object from the graphics queue

◆ isOnScreen()

bool Asylum::Object::isOnScreen ( )

Query if this object is on screen.

Returns
true if on screen, false if not.

◆ adjustCoordinates()

void Asylum::Object::adjustCoordinates ( Common::Point point)

Adjust coordinates.

Parameters
pointThe point.

◆ draw()

void Asylum::Object::draw ( )

Draws the object

◆ update()

void Asylum::Object::update ( )

Updates the object.

◆ setNextFrame()

void Asylum::Object::setNextFrame ( uint32  flags)

Sets the next frame.

Parameters
flagsThe flags.

◆ stopSound()

void Asylum::Object::stopSound ( )

Stop the object related sounds

◆ stopAllSounds()

void Asylum::Object::stopAllSounds ( )

Stop all object sounds (called from scripts)

◆ checkFlags()

bool Asylum::Object::checkFlags ( ) const

Checks the object flags

Returns
true if it succeeds, false if it fails.

◆ toString()

Common::String Asylum::Object::toString ( bool  shortString = true)

Convert this object into a string representation.

Parameters
shortStringtoggle for displaying the full dump or just a short summary string
Returns
A string representation of this object.

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