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.

Protected Member Functions

void printData () override

Protected Attributes

int32 _meshIndex
int32 _textureNormalIndex
int32 _textureFaceIndex
ResourceReference _reference
ItemTemplate_referencedItem

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 909 of file item.cpp.

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

Definition at line 906 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 978 of file item.cpp.

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

Obtain the texture to use to render the item.

Definition at line 1010 of file item.cpp.

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

Randomize an idle action animation.

Definition at line 1069 of file item.cpp.

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

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

Definition at line 1065 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 1046 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 923 of file item.cpp.

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

Called when entering a location.

Reimplemented from Stark::Resources::Object.

Definition at line 947 of file item.cpp.

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

Called when exiting a location.

Reimplemented from Stark::Resources::Object.

Definition at line 961 of file item.cpp.

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

Reimplemented from Stark::Resources::ItemVisual.

Definition at line 1085 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 917 of file item.cpp.

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

Reset animation blending.

Definition at line 1091 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 1077 of file item.cpp.

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

Change the item's mesh.

Definition at line 970 of file item.cpp.

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

Set the mesh main or face texture.

Definition at line 1000 of file item.cpp.

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

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

Definition at line 1038 of file item.cpp.


Member Data Documentation

Definition at line 456 of file item.h.

Definition at line 460 of file item.h.

Definition at line 461 of file item.h.

Definition at line 458 of file item.h.

Definition at line 457 of file item.h.


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


Generated on Sat Jan 12 2019 05:05:21 for ResidualVM by doxygen 1.7.1
curved edge   curved edge