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

Stark::Resources::ModelItem Class Reference

Model item. More...

#include <item.h>

Inheritance diagram for Stark::Resources::ModelItem:
Collaboration diagram for Stark::Resources::ModelItem:

List of all members.

Public Member Functions

 ModelItem (Object *parent, byte subType, uint16 index, const Common::String &name)
virtual ~ModelItem ()
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 onEnterLocation () override
 Called when entering a location.
void onExitLocation () override
 Called when exiting a location.
void saveLoadCurrent (ResourceSerializer *serializer) override
 Persist / restore the resource state.
Gfx::RenderEntrygetRenderEntry (const Common::Point &positionOffset) override
 Obtain the render entry to use to display the item.
void setTexture (int32 index, uint32 textureType)
 Set the mesh main or face texture.
void setBonesMesh (int32 index)
 Change the item's mesh.
BonesMeshfindBonesMesh ()
 Obtain the bone mesh to use to render the item.
TextureSetfindTextureSet (uint32 textureType)
 Obtain the texture to use to render the item.
ItemTemplategetItemTemplate () const
 Get the item's level or global template if any.
void updateAnim ()
 Update the item's animation after a texture / mesh change.
void resetAnimationBlending ()
 Reset animation blending.
AnimgetIdleActionAnim () const
 Randomize an idle action animation.
AnimHandlergetAnimHandler () const

Protected Member Functions

void printData () override

Protected Attributes

int32 _meshIndex
int32 _textureNormalIndex
int32 _textureFaceIndex
ResourceReference _reference
ItemTemplate_referencedItem
AnimHandler_animHandler

Detailed Description

Model item.

Used to draw characters

Definition at line 414 of file item.h.


Constructor & Destructor Documentation

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

Definition at line 925 of file item.cpp.

Stark::Resources::ModelItem::~ModelItem (  )  [virtual]

Definition at line 921 of file item.cpp.


Member Function Documentation

BonesMesh * Stark::Resources::ModelItem::findBonesMesh (  ) 

Obtain the bone mesh to use to render the item.

Definition at line 997 of file item.cpp.

TextureSet * Stark::Resources::ModelItem::findTextureSet ( uint32  textureType  ) 

Obtain the texture to use to render the item.

Definition at line 1029 of file item.cpp.

AnimHandler * Stark::Resources::ModelItem::getAnimHandler (  )  const

Definition at line 1114 of file item.cpp.

Anim * Stark::Resources::ModelItem::getIdleActionAnim (  )  const

Randomize an idle action animation.

Definition at line 1088 of file item.cpp.

ItemTemplate * Stark::Resources::ModelItem::getItemTemplate (  )  const

Get the item's level or global template if any.

Definition at line 1084 of file item.cpp.

Gfx::RenderEntry * Stark::Resources::ModelItem::getRenderEntry ( const Common::Point positionOffset  )  [override, virtual]

Obtain the render entry to use to display the item.

Reimplemented from Stark::Resources::Item.

Definition at line 1065 of file item.cpp.

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

Called when the resource sub-tree is entirely loaded.

Allows to load data from other nodes.

Reimplemented from Stark::Resources::ItemVisual.

Definition at line 940 of file item.cpp.

void Stark::Resources::ModelItem::onEnterLocation (  )  [override, virtual]

Called when entering a location.

Reimplemented from Stark::Resources::Object.

Definition at line 966 of file item.cpp.

void Stark::Resources::ModelItem::onExitLocation (  )  [override, virtual]

Called when exiting a location.

Reimplemented from Stark::Resources::Object.

Definition at line 980 of file item.cpp.

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

Reimplemented from Stark::Resources::ItemVisual.

Definition at line 1104 of file item.cpp.

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

Deserialize the resource static data and initial state.

Reimplemented from Stark::Resources::ItemVisual.

Definition at line 934 of file item.cpp.

void Stark::Resources::ModelItem::resetAnimationBlending (  ) 

Reset animation blending.

Definition at line 1110 of file item.cpp.

void Stark::Resources::ModelItem::saveLoadCurrent ( ResourceSerializer serializer  )  [override, virtual]

Persist / restore the resource state.

Called only for active locations

Reimplemented from Stark::Resources::ItemVisual.

Definition at line 1096 of file item.cpp.

void Stark::Resources::ModelItem::setBonesMesh ( int32  index  ) 

Change the item's mesh.

Definition at line 989 of file item.cpp.

void Stark::Resources::ModelItem::setTexture ( int32  index,
uint32  textureType 
)

Set the mesh main or face texture.

Definition at line 1019 of file item.cpp.

void Stark::Resources::ModelItem::updateAnim (  ) 

Update the item's animation after a texture / mesh change.

Definition at line 1057 of file item.cpp.


Member Data Documentation

Definition at line 465 of file item.h.

Definition at line 458 of file item.h.

Definition at line 462 of file item.h.

Definition at line 463 of file item.h.

Definition at line 460 of file item.h.

Definition at line 459 of file item.h.


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


Generated on Sat Sep 14 2019 05:05:04 for ResidualVM by doxygen 1.7.1
curved edge   curved edge