18 #ifndef INCLUDED_ICMPVISUAL
19 #define INCLUDED_ICMPVISUAL
92 virtual void SelectAnimation(std::string name,
bool once,
fixed speed, std::wstring soundgroup) = 0;
147 virtual void SetVariable(std::string name,
float value) = 0;
182 #endif // INCLUDED_ICMPVISUAL
A simple fixed-point number class.
virtual CVector3D GetProjectileLaunchPoint()=0
Return the exact position where a projectile should be launched from (based on the actor's ammo prop ...
virtual CUnit * GetUnit()=0
Returns the underlying unit of this visual actor.
virtual void SetVariable(std::string name, float value)=0
Set an arbitrarily-named variable that the model may use to alter its appearance (e.g.
virtual CVector3D GetPosition()=0
Get the world-space position of the base point of the object's visual representation.
virtual void SelectAnimation(std::string name, bool once, fixed speed, std::wstring soundgroup)=0
Start playing the given animation.
virtual void SetShadingColour(fixed r, fixed g, fixed b, fixed a)=0
Set the shading colour that will be modulated with the model's textures.
virtual std::wstring GetProjectileActor()=0
Return the filename of the actor to be used for projectiles from this unit, or the empty string if no...
virtual CBoundingBoxOriented GetSelectionBox()=0
Get the oriented world-space bounding box of the object's visual representation, clipped at the Y=0 p...
virtual void ReplaceMoveAnimation(std::string name, std::string replace)=0
Replaces a specified animation with another.
virtual void Hotload(const VfsPath &name)=0
Called when an actor file has been modified and reloaded dynamically.
virtual u32 GetActorSeed()=0
Get actor seed used for random variations.
#define DECLARE_INTERFACE_TYPE(iname)
virtual void SetAnimationSyncRepeat(fixed repeattime)=0
Adjust the speed of the current animation, so it can match simulation events.
virtual bool HasConstructionPreview()=0
Returns true if this entity should have a construction preview.
virtual void SetUnitEntitySelection(const CStr &selection)=0
Sets the specified entity selection on the underlying unit.
virtual CBoundingBoxAligned GetBounds()=0
Get the world-space bounding box of the object's visual representation.
virtual void ResetMoveAnimation(std::string name)=0
Ensures that the given animation will be used when it normally would be, removing reference to any an...
virtual void SetAnimationSyncOffset(fixed actiontime)=0
Adjust the offset of the current animation, so it can match simulation events.
virtual void SelectMovementAnimation(fixed runThreshold)=0
Start playing the walk/run animations, scaled to the unit's movement speed.
virtual void SetConstructionProgress(fixed progress)=0
Set construction progress of the model, this affects the rendered position of the model...
virtual void SetActorSeed(u32 seed)=0
Set actor seed for random variations and reload model.
virtual std::wstring GetActorShortName()=0
Return the short name of the actor that's being displayed, or the empty string on error...
The visual representation of an entity (typically an actor).