ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Stark::Resources::AnimImages Class Reference

Displays still images controlled by an AnimScript. More...

#include <anim.h>

Inheritance diagram for Stark::Resources::AnimImages:
Collaboration diagram for Stark::Resources::AnimImages:

List of all members.

Public Member Functions

 AnimImages (Object *parent, byte subType, uint16 index, const Common::String &name)
 ~AnimImages () override
void readData (Formats::XRCReadStream *stream) override
 Deserialize the resource static data and initial state.
void onAllLoaded () override
 Called when the resource sub-tree is entirely loaded.
void saveLoad (ResourceSerializer *serializer) override
 Persist / restore the resource state.
void selectFrame (uint32 frameIndex) override
 Sets the animation frame to be displayed.
VisualgetVisual () override
 Obtain the Visual to be used to render the animation.
int getPointHotspotIndex (const Common::Point &point) const override
 Return the hotspot index for a point given in relative coordinates.
Common::Point getHotspotPosition (uint index) const override
 Get the hotspot position for a given index of a pat-table.

Protected Member Functions

void printData () override

Protected Attributes

float _field_3C
uint32 _currentDirection
Common::Array< Direction * > _directions
Image_currentFrameImage

Detailed Description

Displays still images controlled by an AnimScript.

Definition at line 175 of file anim.h.


Constructor & Destructor Documentation

Stark::Resources::AnimImages::AnimImages ( Object parent,
byte  subType,
uint16  index,
const Common::String name 
)

Definition at line 149 of file anim.cpp.

Stark::Resources::AnimImages::~AnimImages (  )  [override]

Definition at line 146 of file anim.cpp.


Member Function Documentation

Common::Point Stark::Resources::AnimImages::getHotspotPosition ( uint  index  )  const [override, virtual]

Get the hotspot position for a given index of a pat-table.

Reimplemented from Stark::Resources::Anim.

Definition at line 197 of file anim.cpp.

int Stark::Resources::AnimImages::getPointHotspotIndex ( const Common::Point point  )  const [override, virtual]

Return the hotspot index for a point given in relative coordinates.

Reimplemented from Stark::Resources::Anim.

Definition at line 190 of file anim.cpp.

Visual * Stark::Resources::AnimImages::getVisual (  )  [override, virtual]

Obtain the Visual to be used to render the animation.

Implements Stark::Resources::Anim.

Definition at line 178 of file anim.cpp.

void Stark::Resources::AnimImages::onAllLoaded (  )  [override, virtual]

Called when the resource sub-tree is entirely loaded.

Allows to load data from other nodes.

Reimplemented from Stark::Resources::Object.

Definition at line 162 of file anim.cpp.

void Stark::Resources::AnimImages::printData (  )  [override, protected, virtual]

Reimplemented from Stark::Resources::Anim.

Definition at line 184 of file anim.cpp.

void Stark::Resources::AnimImages::readData ( Formats::XRCReadStream stream  )  [override, virtual]

Deserialize the resource static data and initial state.

Reimplemented from Stark::Resources::Anim.

Definition at line 156 of file anim.cpp.

void Stark::Resources::AnimImages::saveLoad ( ResourceSerializer serializer  )  [override, virtual]

Persist / restore the resource state.

Reimplemented from Stark::Resources::Object.

Definition at line 204 of file anim.cpp.

void Stark::Resources::AnimImages::selectFrame ( uint32  frameIndex  )  [override, virtual]

Sets the animation frame to be displayed.

Reimplemented from Stark::Resources::Anim.

Definition at line 168 of file anim.cpp.


Member Data Documentation

Definition at line 196 of file anim.h.

Definition at line 199 of file anim.h.

Definition at line 197 of file anim.h.

Definition at line 194 of file anim.h.


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


Generated on Sat Jul 13 2019 05:04:56 for ResidualVM by doxygen 1.7.1
curved edge   curved edge