18 #ifndef INCLUDED_ICMPVISUAL 19 #define INCLUDED_ICMPVISUAL 83 virtual void SetVariant(
const CStr&
key,
const CStr& selection) = 0;
137 virtual void SetVariable(
const std::string& name,
float value) = 0;
172 #endif // INCLUDED_ICMPVISUAL Definition: IComponent.h:32
A simple fixed-point number class.
Definition: Fixed.h:119
virtual bool HasConstructionPreview() const =0
Returns true if this entity should have a construction preview.
virtual void SetVariant(const CStr &key, const CStr &selection)=0
Set the variant selection of the actor for a certain key.
virtual CUnit * GetUnit()=0
Returns the underlying unit of this visual actor.
virtual CFixedVector3D GetProjectileLaunchPoint() const =0
Return the exact position where a projectile should be launched from (based on the actor's ammo prop ...
Definition: Vector3D.h:30
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 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 u32 GetActorSeed() const =0
Get actor seed used for random variations.
virtual void SelectAnimation(const std::string &name, bool once, fixed speed)=0
Start playing the given animation.
uint32_t u32
Definition: types.h:39
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.
Definition: FixedVector3D.h:24
pthread_key_t key
Definition: wpthread.cpp:140
virtual CBoundingBoxAligned GetBounds() const =0
Get the world-space bounding box of the object's visual representation.
#define DECLARE_INTERFACE_TYPE(iname)
Definition: Interface.h:23
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.g.
virtual std::string GetAnimationName() const =0
Returns the name of the currently played animation.
virtual void SetAnimationSyncRepeat(fixed repeattime)=0
Adjust the speed of the current animation, so it can match simulation events.
Definition: BoundingBoxAligned.h:33
virtual void RecomputeActorName()=0
Recalculate the actor name, applying modifiers.
virtual void SetAnimationSyncOffset(fixed actiontime)=0
Adjust the offset of the current animation, so it can match simulation events.
Definition: BoundingBoxOriented.h:30
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 Hotload(const VfsPath &name=L"")=0
Called when an actor file has been modified and reloaded dynamically.
virtual CVector3D GetPosition() const =0
Get the world-space position of the base point of the object's visual representation.
virtual void SetActorSeed(u32 seed)=0
Set actor seed for random variations and reload model.
The visual representation of an entity (typically an actor).
Definition: ICmpVisual.h:35