18#ifndef INCLUDED_ICMPVISUAL
19#define INCLUDED_ICMPVISUAL
137 virtual void SetVariable(
const std::string& name,
float value) = 0;
#define DECLARE_INTERFACE_TYPE(iname)
Definition: Interface.h:23
Definition: BoundingBoxAligned.h:34
Definition: BoundingBoxOriented.h:31
Definition: FixedVector3D.h:25
A simple fixed-point number class.
Definition: Fixed.h:120
Definition: Vector3D.h:31
The visual representation of an entity (typically an actor).
Definition: ICmpVisual.h:36
virtual void SelectAnimation(const std::string &name, bool once, fixed speed)=0
Start playing the given animation.
virtual CVector3D GetPosition() const =0
Get the world-space position of the base point of the object's visual representation.
virtual void SetAnimationSyncOffset(fixed actiontime)=0
Adjust the offset of the current animation, so it can match simulation events.
virtual void SetAnimationSyncRepeat(fixed repeattime)=0
Adjust the speed of the current animation, so it can match simulation events.
virtual CBoundingBoxOriented GetSelectionBox() const =0
Get the oriented world-space bounding box of the object's visual representation, clipped at the Y=0 p...
virtual void SetVariant(const CStr &key, const CStr &selection)=0
Set the variant selection of the actor for a certain key.
virtual CBoundingBoxAligned GetBounds() const =0
Get the world-space bounding box of the object's visual representation.
virtual CUnit * GetUnit()=0
Returns the underlying unit of this visual actor.
virtual u32 GetActorSeed() const =0
Get actor seed used for random variations.
virtual std::wstring GetProjectileActor() const =0
Return the filename of the actor to be used for projectiles from this unit, or the empty string if no...
virtual void Hotload(const VfsPath &name=L"")=0
Called when an actor file has been modified and reloaded dynamically.
virtual void SetVariable(const std::string &name, float value)=0
Set an arbitrarily-named variable that the model may use to alter its appearance (e....
virtual void SetActorSeed(u32 seed)=0
Set actor seed for random variations and reload model.
virtual void SetShadingColor(fixed r, fixed g, fixed b, fixed a)=0
Set the shading color that will be modulated with the model's textures.
virtual void SelectMovementAnimation(const std::string &name, fixed speed)=0
Start playing the given movement animation unless we are currently playing a non-movement animation.
virtual void RecomputeActorName()=0
Recalculate the actor name, applying modifiers.
virtual std::string GetAnimationName() const =0
Returns the name of the currently played animation.
virtual CFixedVector3D GetProjectileLaunchPoint() const =0
Return the exact position where a projectile should be launched from (based on the actor's ammo prop ...
virtual bool HasConstructionPreview() const =0
Returns true if this entity should have a construction preview.
Definition: IComponent.h:33
uint32_t u32
Definition: types.h:39
pthread_key_t key
Definition: wpthread.cpp:140