Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/components/ICmpVisual.h
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Set the variant selection of the actor for a certain key. | * Set the variant selection of the actor for a certain key. | ||||
* This overrides a previous selection on that key, so every component | * This overrides a previous selection on that key, so every component | ||||
* should use unique keys. | * should use unique keys. | ||||
*/ | */ | ||||
virtual void SetVariant(const CStr& key, const CStr& selection) = 0; | virtual void SetVariant(const CStr& key, const CStr& selection) = 0; | ||||
/** | /** | ||||
* Returns the name of the currently played animation. | |||||
*/ | |||||
virtual std::string GetAnimationName() = 0; | |||||
/** | |||||
* Start playing the given animation. If there are multiple possible animations then it will | * Start playing the given animation. If there are multiple possible animations then it will | ||||
* pick one at random (not network-synchronised). | * pick one at random (not network-synchronised). | ||||
* If @p soundgroup is specified, then the sound will be played at each 'event' point in the | * If @p soundgroup is specified, then the sound will be played at each 'event' point in the | ||||
* animation cycle. | * animation cycle. | ||||
* @param name animation name (e.g. "idle", "walk", "melee"; the names are determined by actor XML files) | * @param name animation name (e.g. "idle", "walk", "melee"; the names are determined by actor XML files) | ||||
* @param once if true then the animation will play once and freeze at the final frame, else it will loop | * @param once if true then the animation will play once and freeze at the final frame, else it will loop | ||||
* @param speed animation speed multiplier (typically 1.0 for the default speed) | * @param speed animation speed multiplier (typically 1.0 for the default speed) | ||||
* @param soundgroup VFS path of sound group .xml, relative to audio/, or empty string for none | * @param soundgroup VFS path of sound group .xml, relative to audio/, or empty string for none | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator