18 #include "precompiled.h"
41 return "<a:component type='system'/><empty/>";
71 if ( !cmpRangeManager ||
76 if (cmpPosition && cmpPosition->
IsInWorld())
78 bool playerOwned =
false;
81 playerOwned = cmpOwnership->
GetOwner() == currentPlayer;
An entity initialisation parameter node.
#define REGISTER_COMPONENT_TYPE(cname)
#define UNUSED(param)
mark a function parameter as unused and avoid the corresponding compiler warning. ...
ISoundManager * g_SoundManager
Serialization interface; see serialization overview.
virtual void PlayAsGroup(const VfsPath &groupPath, CVector3D sourcePos, entity_id_t source, bool ownedSound)=0
virtual void Deserialize(const CParamNode ¶mNode, IDeserializer &deserialize)
virtual bool IsInWorld()=0
Returns true if the entity currently exists at a defined position in the world.
virtual ELosVisibility GetLosVisibility(CEntityHandle ent, player_id_t player, bool forceRetainInFog=false)=0
Returns the visibility status of the given entity, with respect to the given player.
virtual void Init(const CParamNode ¶mNode)
Interface to the engine's sound system.
virtual player_id_t GetOwner()=0
static void ClassInit(CComponentManager &componentManager)
#define DEFAULT_COMPONENT_ALLOCATOR(cname)
const CSimContext & GetSimContext() const
virtual void Serialize(ISerializer &serialize)
A simplified syntax for accessing entity components.
int GetCurrentDisplayedPlayer() const
Returns the player ID that the current display is being rendered for.
CEntityHandle GetSystemEntity() const
virtual CFixedVector3D GetPosition()=0
Returns the current x,y,z position (no interpolation).
static std::string GetSchema()
virtual void PlaySoundGroup(std::wstring name, entity_id_t source)
Start playing audio defined by a sound group file.
const entity_id_t INVALID_ENTITY
Invalid entity ID.
u32 entity_id_t
Entity ID type.
Deserialization interface; see serialization overview.