Emergency 20 Dokumentation  4.2.0
em5::CommandableComponent Class Reference

Commandable component class. More...

#include <CommandableComponent.h>

Inheritance diagram for em5::CommandableComponent:
qsf::game::CommandableComponent qsf::Component qsf::InheritedObject qsf::WeakPtrTarget qsf::Object

Public Member Functions

 CommandableComponent (qsf::Prototype *prototype)
 Constructor. More...
 
virtual ~CommandableComponent ()
 Destructor. More...
 
uint32 getPlayerId () const
 Get the ID of the player who owns this unit. More...
 
void setPlayerId (uint32 playerId)
 Set the ID of the player who owns this unit, can be uninitialized. More...
 
uint16 getTeamId () const
 Get the ID of the team to which this unit belongs. More...
 
void setTeamId (uint16 teamId)
 Set the ID of the team to which the unit belongs, can be uninitialized. More...
 
uint32 getSpeakerIndex () const
 Set the speaker index for command and selection feedback. More...
 
void setSpeakerIndex (uint32 speakerIndex)
 Set the speaker index for command and selection feedback. More...
 
const std::string & getUnitTagsAsString () const
 Get the tags of the player. More...
 
void setUnitTagsAsString (const std::string &unitTags)
 Set tags of an unit, eg "Group:Ambulance;Vehicle;RTW". More...
 
bool hasUnitTag (const qsf::StringHash &tag) const
 Check for a specific unit tag. More...
 
const std::string & getMiniMapIconType () const
 Get the icon type for the minimap. More...
 
void setMiniMapIconType (const std::string &miniMapIconType)
 Set the icon type for the minimap. More...
 
void delayedShineThrough ()
 Shine through will be delayed for new units. More...
 
bool isUnitType (const qsf::StringHash &unitTypeId) const
 
bool isAmbulanceNEF () const
 
bool isAmbulanceRTW () const
 
bool isAmbulanceIMT () const
 
bool isAmbulanceHeli () const
 
bool isAmbulanceDoctor () const
 
bool isAmbulanceParamedics () const
 
bool isAmbulanceRescueDogLeader () const
 
bool isAmbulanceRescueDog () const
 
bool isPoliceSTW () const
 
bool isPoliceMTW () const
 
bool isPoliceHeli () const
 
bool isPoliceSEKHeli () const
 
bool isPolicePerson () const
 
bool isPoliceSEKPerson () const
 
bool isPoliceTSEKR () const
 
bool isPoliceSEKR () const
 
bool isPoliceSEKDrone () const
 
bool isPoliceDogCar () const
 
bool isPoliceDogLeader () const
 
bool isPoliceDog () const
 
bool isPoliceGuardsmanHistoric () const
 
bool isFireFighterRW () const
 
bool isFireFighterDECONP () const
 
bool isFireFighterPerson () const
 
bool isFireFighterPersonHistoric () const
 
bool isFireFighterDLK () const
 
bool isFireFighterDiver () const
 
bool isFireFighterBoat () const
 
bool isFireFighterBoatTransport () const
 
bool isFireFighterFLB () const
 
bool isFireFighterDrone () const
 
bool isTechEngineer () const
 
bool isTechEngineerCar () const
 
bool isTechTowcar () const
 
bool isTechHeli () const
 
bool isTechCrane () const
 
bool canTransportGangster () const
 
bool canTransportInjured () const
 
bool canSwim () const
 
virtual void setUnitType (uint32 unitType) override
 Set the unit type. More...
 
virtual void serialize (qsf::BinarySerializer &serializer) override
 Serialize or deserialize the component using a binary serializer. More...
 
- Public Member Functions inherited from qsf::game::CommandableComponent
 CommandableComponent (Prototype *prototype)
 Constructor. More...
 
bool hasCommandId (uint32 commandId) const
 Check for a certain command ID. More...
 
const CommandIdentifierArraygetCommandIds () const
 Getter method for mCommandIdentifiers. More...
 
void setCommandIds (const CommandIdentifierArray &commandIds)
 Setter method for mCommandIdentifiers. More...
 
uint32 getUnitType () const
 Get the unit type. More...
 
- Public Member Functions inherited from qsf::Component
virtual ~Component ()
 Destructor. More...
 
PrototypegetPrototype () const
 Return the prototype this component is in. More...
 
EntitygetEntity () const
 Return a reference to the entity this component is in. More...
 
uint32 getId () const
 Return the unique component identifier. More...
 
ComponentManagergetComponentManager () const
 Return the component manager that's responsible for this component instance. More...
 
ComponentCollectiongetComponentCollection () const
 Return the component collection that's responsible for this component instance. More...
 
bool isSimulating () const
 Return whether or not the component is in simulating mode. More...
 
bool isActive () const
 Return whether or not the component is considered to be active. More...
 
void setActive (bool active)
 Set whether or not the component is considered to be active. More...
 
bool isDebug () const
 Return whether or not the component is considered to be in debug mode. More...
 
bool isHidden () const
 Return whether or not the component is hidden. More...
 
void setHidden (bool hidden)
 Set whether or not the component is hidden. More...
 
bool isGloballyHidden () const
 Return whether or not the component is globally hidden. More...
 
void setGloballyHidden (bool globallyHidden)
 Set whether or not the component is globally hidden. More...
 
bool isReallyHidden () const
 Return whether or not the component is really hidden. More...
 
bool startup (bool ownerIsRunning)
 Startup the component. More...
 
bool isRunning () const
 Return whether or not the component is up-and-running. More...
 
void shutdown ()
 Shutdown the component. More...
 
uint64 getPrototypeId () const
 Return the ID of the prototype this component is in. More...
 
uint64 getEntityId () const
 Return the ID of the entity this component is in. More...
 
virtual void onInvalidation ()
 Invalidate the component. More...
 
virtual void setDebug (bool debugMode)
 Set whether or not the component is considered to be in debug mode. More...
 
- Public Member Functions inherited from qsf::InheritedObject
void copyPropertyOverrideStateFrom (const InheritedObject &object, bool add=false)
 
void setAllPropertyOverrideFlags (bool value)
 
void autoCreatePropertyOverrideState ()
 
virtual camp::Value getPropertyDefaultValue (const StringHash &propertyId) const override
 
virtual PropertyOverrideState getPropertyOverrideState (const StringHash &propertyId) const override
 
virtual bool setPropertyOverrideState (const StringHash &propertyId, PropertyOverrideState overrideState) override
 
- Public Member Functions inherited from qsf::Object
virtual ~Object ()
 Destructor. More...
 
const camp::Class & getCampClass () const
 Return the CAMP class. More...
 
int getPropertyIndexById (const StringHash &propertyId) const
 Return the CAMP property index by using the unique class property ID. More...
 
uint32 getPropertyIdByIndex (int index) const
 Return the unique class property ID with the given index. More...
 
std::string getPropertyNameById (const StringHash &propertyId) const
 Return the CAMP property name by using the unique class property ID. More...
 
const camp::Property * getCampPropertyById (const StringHash &propertyId) const
 Return the CAMP property by using the unique class property ID. More...
 
void setPropertyValuesByString (const std::string &values)
 Set CAMP reflection property values by using a given string. More...
 
void setPropertiesToDefaultValues ()
 Set all CAMP reflection system properties to their default values. More...
 
void serializeToBoostPTree (boost::property_tree::ptree &pTree, SerializationMethod serializationMethod=SERIALIZE_DIFFERENTIAL) const
 
void serializeToBoostPTree (boost::property_tree::ptree &pTree, const camp::Class &campClass, SerializationMethod serializationMethod=SERIALIZE_DIFFERENTIAL) const
 
bool deserializeFromBoostPTree (const boost::property_tree::ptree &pTree, SerializationMethod serializationMethod=SERIALIZE_DIFFERENTIAL)
 
bool deserializeFromBoostPTree (const boost::property_tree::ptree &pTree, const camp::Class &campClass, SerializationMethod serializationMethod=SERIALIZE_DIFFERENTIAL)
 
void serializeToBinarySerializer (BinarySerializer &serializer, SerializationMode mode=MODE_MINIMAL, SerializationMethod serializationMethod=SERIALIZE_DIFFERENTIAL) const
 
void deserializeFromBinarySerializer (BinarySerializer &serializer, SerializationMode mode=MODE_MINIMAL, SerializationMethod serializationMethod=SERIALIZE_DIFFERENTIAL, bool setOverrideState=true)
 
virtual void onPreDeserialize ()
 Called right before the object is deserialized using any of the above methods. Default implementation is empty. More...
 
virtual void onPostDeserialize ()
 Called right after the object was deserialized using any of the above methods. Default implementation is empty. More...
 
virtual ScriptgetAssociatedScript () const
 Return the script instance associated with this object instance. More...
 

Static Public Attributes

static const uint32 COMPONENT_ID
 "em5::CommandableComponent" unique component ID More...
 
static const qsf::NamedIdentifier UNITTAG_DEPARTMENT_FIREFIGHTERS
 
static const qsf::NamedIdentifier UNITTAG_DEPARTMENT_POLICE
 
static const qsf::NamedIdentifier UNITTAG_DEPARTMENT_TECH
 
static const qsf::NamedIdentifier UNITTAG_DEPARTMENT_AMBULANCE
 
static const qsf::NamedIdentifier UNITTAG_CATEGORY_PERSON
 
static const qsf::NamedIdentifier UNITTAG_CATEGORY_VEHICLE
 
static const qsf::NamedIdentifier UNITTAG_CATEGORY_ROAD
 
static const qsf::NamedIdentifier UNITTAG_CATEGORY_BOAT
 
static const qsf::NamedIdentifier UNITTAG_CATEGORY_HELI
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_RW
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_TLF
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_DEKONP
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_DLK
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_FLB
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_BOAT_TRANSPORT
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_BOAT
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_COMMANDOCAR
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_FIREPLANE
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_DRONE_TRANSPORT
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_DRONE
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_DIVER_TRANSPORT
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_RW_HISTORIC
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_FIREFIGHTER
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_FIREFIGHTER_ABC
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_DIVER
 
static const qsf::NamedIdentifier UNITTAG_FIREFIGHTERS_FIREFIGHTER_HISTORIC
 
static const qsf::NamedIdentifier UNITTAG_POLICE_MTW
 
static const qsf::NamedIdentifier UNITTAG_POLICE_HELI
 
static const qsf::NamedIdentifier UNITTAG_POLICE_SEK_HELI
 
static const qsf::NamedIdentifier UNITTAG_POLICE_STW
 
static const qsf::NamedIdentifier UNITTAG_POLICE_DRONE_TRANSPORT
 
static const qsf::NamedIdentifier UNITTAG_POLICE_DRONE
 
static const qsf::NamedIdentifier UNITTAG_POLICE_ROBOT_TRANSPORT
 
static const qsf::NamedIdentifier UNITTAG_POLICE_ROBOT
 
static const qsf::NamedIdentifier UNITTAG_POLICE_DOGCAR
 
static const qsf::NamedIdentifier UNITTAG_POLICE_POLICE
 
static const qsf::NamedIdentifier UNITTAG_POLICE_SEK
 
static const qsf::NamedIdentifier UNITTAG_POLICE_POLICEDOG_LEADER
 
static const qsf::NamedIdentifier UNITTAG_POLICE_POLICEDOG
 
static const qsf::NamedIdentifier UNITTAG_POLICE_GUARDSMAN_HISTORIC
 
static const qsf::NamedIdentifier UNITTAG_TECH_TOWCAR
 
static const qsf::NamedIdentifier UNITTAG_TECH_ENGINEERCAR
 
static const qsf::NamedIdentifier UNITTAG_TECH_CRANE
 
static const qsf::NamedIdentifier UNITTAG_TECH_HELI
 
static const qsf::NamedIdentifier UNITTAG_TECH_ENGINEER
 
static const qsf::NamedIdentifier UNITTAG_AMBULANCE_NEF
 
static const qsf::NamedIdentifier UNITTAG_AMBULANCE_RTW
 
static const qsf::NamedIdentifier UNITTAG_AMBULANCE_HELI
 
static const qsf::NamedIdentifier UNITTAG_AMBULANCE_RESCUEDOGCAR
 
static const qsf::NamedIdentifier UNITTAG_AMBULANCE_IMT
 
static const qsf::NamedIdentifier UNITTAG_AMBULANCE_DOCTOR
 
static const qsf::NamedIdentifier UNITTAG_AMBULANCE_PARAMEDICS
 
static const qsf::NamedIdentifier UNITTAG_AMBULANCE_RESCUEDOG_LEADER
 
static const qsf::NamedIdentifier UNITTAG_AMBULANCE_RESCUEDOG
 
static const qsf::NamedIdentifier UNITTAG_AMBULANCE_DOCTOR_HISTORIC
 
static const qsf::NamedIdentifier UNITTAG_MISC_CONVOITRUCK
 
static const qsf::NamedIdentifier UNITTAG_MISC_AMBULANCEBUS
 
static const qsf::NamedIdentifier UNITTAG_MISC_EVACBUS
 
static const qsf::NamedIdentifier UNITTAG_CAN_TRANSPORT_INJUREDS
 
static const qsf::NamedIdentifier UNITTAG_CAN_TRANSPORT_GANGSTERS
 
static const qsf::NamedIdentifier MINIMAP_ICON_UNIT_AMBULANCE
 
static const qsf::NamedIdentifier MINIMAP_ICON_UNIT_FIREFIGHTER
 
static const qsf::NamedIdentifier MINIMAP_ICON_UNIT_POLICE
 
static const qsf::NamedIdentifier MINIMAP_ICON_UNIT_TECH
 
static const qsf::NamedIdentifier MINIMAP_ICON_UNIT_AMBULANCE_DOG
 
static const qsf::NamedIdentifier MINIMAP_ICON_UNIT_POLICE_DOG
 
static const qsf::NamedIdentifier MINIMAP_ICON_UNIT_MEDIEVAL
 
static const qsf::NamedIdentifier MINIMAP_ICON_UNIT_VEHICLE_AMBULANCE
 
static const qsf::NamedIdentifier MINIMAP_ICON_UNIT_VEHICLE_FIREFIGHTER
 
static const qsf::NamedIdentifier MINIMAP_ICON_UNIT_VEHICLE_POLICE
 
static const qsf::NamedIdentifier MINIMAP_ICON_UNIT_VEHICLE_TECH
 
- Static Public Attributes inherited from qsf::game::CommandableComponent
static const uint32 COMPONENT_ID
 "qsf::game::CommandableComponent" unique component ID More...
 
- Static Public Attributes inherited from qsf::Component
static const uint32 COMPONENT_ID
 "qsf::Component" unique component ID More...
 

Additional Inherited Members

- Public Types inherited from qsf::game::CommandableComponent
typedef std::vector< CommandIdentifierCommandIdentifierArray
 Shortcut typedef for an array of command identifiers. More...
 
- Public Types inherited from qsf::Component
enum  TransformChangeFlag {
  TRANSFORM_CHANGE_POSITION = 0x01, TRANSFORM_CHANGE_ROTATION = 0x02, TRANSFORM_CHANGE_SCALE = 0x04, TRANSFORM_CHANGE_TRANSFORM = 0x07,
  TRANSFORM_CHANGE_FOR_SIMULATION = 0x08, TRANSFORM_CHANGE_FOR_ANIMATION = 0x10
}
 
typedef BitFlagSet< uint8, TransformChangeFlagTransformChangeFlags
 
- Public Types inherited from qsf::Object
enum  PropertyOverrideState { PROPERTY_INVALID, PROPERTY_DEFAULT, PROPERTY_OVERRIDE, PROPERTY_REMOVED }
 
enum  SerializationMethod { SERIALIZE_FLAT, SERIALIZE_COMPLETE, SERIALIZE_DIFFERENTIAL, SERIALIZE_IGNORE_UNKNOWN }
 
enum  SerializationMode { MODE_MINIMAL, MODE_COMPATIBLE }
 
- Protected Member Functions inherited from qsf::game::CommandableComponent
virtual bool onStartup () override
 Startup the component. More...
 
virtual void onShutdown () override
 Shutdown the component. More...
 
 QSF_CAMP_RTTI () QSF_CAMP_ARRAY_PROPERTY(CommandArray
 
- Protected Member Functions inherited from qsf::Component
 Component (Prototype *prototype)
 Constructor. More...
 
void promotePropertyChange (uint32 propertyId)
 A component property value was changed. More...
 
template<typename T , typename S >
bool assignAndPromoteChange (T &variable, const S &newValue, uint32 propertyId)
 Comfort function for updating an exported member variable and promoting any change that happened. More...
 
void setRegisterForSimulationTransformChanges (bool enable)
 Register or unregister this component as simulation transform listener. More...
 
void setRegisterForAnimationTransformChanges (bool enable)
 Register or unregister this component as animation transform listener. More...
 
virtual const ObjectgetPropertyDefaultsProvider () const override
 
virtual bool ignoreOwnerRunningState () const
 Return whether or not the component will only startup if the owner is in running state. More...
 
virtual bool implementsOnComponentPropertyChange () const
 Signal whether this component needs the "onComponentPropertyChange" callback at all. More...
 
virtual void onComponentPropertyChange (const Component &component, uint32 propertyId)
 Called in case a component property value was changed. More...
 
virtual void onComponentTransformChange (const Transform &transform, TransformChangeFlags flags)
 Called in case a component transformation value was changed. More...
 
virtual void onSetSimulating (bool simulating)
 Set whether or not the component is in simulating mode. More...
 
virtual void onSetActive (bool active)
 Set whether or not the component is considered to be active. More...
 
virtual void onSetDebug (bool debug)
 Set whether or not the component is considered to be in debug mode. More...
 
virtual void onSetHidden (bool hidden)
 Set whether or not the component is considered to be hidden. More...
 
- Protected Member Functions inherited from qsf::InheritedObject
 InheritedObject ()
 Default constructor. More...
 
- Protected Member Functions inherited from qsf::Object
 Object ()
 Default constructor. More...
 
- Protected Member Functions inherited from qsf::WeakPtrTarget
 WeakPtrTarget ()
 Default constructor. More...
 
 WeakPtrTarget (const WeakPtrTarget &other)
 Copy constructor. More...
 
 WeakPtrTarget (WeakPtrTarget &&)=delete
 Delete the move constructor, as WeakPtrTarget would need a proper move constructor-implementation that ensures that its pointer gets updated in the WeakPtrBase as well. More...
 
 ~WeakPtrTarget ()
 Destructor. More...
 
void invalidateAllWeakPtr ()
 Invalidate all weak pointers to this object. More...
 
void operator= (const WeakPtrTarget &other)
 Copy operator. More...
 
- Protected Attributes inherited from qsf::game::CommandableComponent
CommandIdentifierArray mCommandIdentifiers
 
uint32 mUnitType
 String hash of the unit name, use this as identifier for specific units. More...
 
 CommandableComponent
 
- Protected Attributes inherited from qsf::InheritedObject
std::bitset< 128 > mPropertyOverrideFlags
 One bit for each property; if set, the property is overridden. More...
 

Detailed Description

Commandable component class.

Constructor & Destructor Documentation

em5::CommandableComponent::CommandableComponent ( qsf::Prototype prototype)
explicit

Constructor.

Parameters
[in]prototypeThe prototype this component is in, no null pointer allowed
virtual em5::CommandableComponent::~CommandableComponent ( )
virtual

Destructor.

Reimplemented from qsf::game::CommandableComponent.

Member Function Documentation

bool em5::CommandableComponent::canSwim ( ) const
bool em5::CommandableComponent::canTransportGangster ( ) const
bool em5::CommandableComponent::canTransportInjured ( ) const
void em5::CommandableComponent::delayedShineThrough ( )

Shine through will be delayed for new units.

const std::string& em5::CommandableComponent::getMiniMapIconType ( ) const

Get the icon type for the minimap.

Note
  • To get the actual value of enum type "MiniMapIconType", use "em5::MiniMapIconRegistrationLogic::translateCommandableMiniMapIconType"
uint32 em5::CommandableComponent::getPlayerId ( ) const

Get the ID of the player who owns this unit.

uint32 em5::CommandableComponent::getSpeakerIndex ( ) const

Set the speaker index for command and selection feedback.

uint16 em5::CommandableComponent::getTeamId ( ) const

Get the ID of the team to which this unit belongs.

const std::string& em5::CommandableComponent::getUnitTagsAsString ( ) const

Get the tags of the player.

bool em5::CommandableComponent::hasUnitTag ( const qsf::StringHash tag) const

Check for a specific unit tag.

bool em5::CommandableComponent::isAmbulanceDoctor ( ) const
bool em5::CommandableComponent::isAmbulanceHeli ( ) const
bool em5::CommandableComponent::isAmbulanceIMT ( ) const
bool em5::CommandableComponent::isAmbulanceNEF ( ) const
bool em5::CommandableComponent::isAmbulanceParamedics ( ) const
bool em5::CommandableComponent::isAmbulanceRescueDog ( ) const
bool em5::CommandableComponent::isAmbulanceRescueDogLeader ( ) const
bool em5::CommandableComponent::isAmbulanceRTW ( ) const
bool em5::CommandableComponent::isFireFighterBoat ( ) const
bool em5::CommandableComponent::isFireFighterBoatTransport ( ) const
bool em5::CommandableComponent::isFireFighterDECONP ( ) const
bool em5::CommandableComponent::isFireFighterDiver ( ) const
bool em5::CommandableComponent::isFireFighterDLK ( ) const
bool em5::CommandableComponent::isFireFighterDrone ( ) const
bool em5::CommandableComponent::isFireFighterFLB ( ) const
bool em5::CommandableComponent::isFireFighterPerson ( ) const
bool em5::CommandableComponent::isFireFighterPersonHistoric ( ) const
bool em5::CommandableComponent::isFireFighterRW ( ) const
bool em5::CommandableComponent::isPoliceDog ( ) const
bool em5::CommandableComponent::isPoliceDogCar ( ) const
bool em5::CommandableComponent::isPoliceDogLeader ( ) const
bool em5::CommandableComponent::isPoliceGuardsmanHistoric ( ) const
bool em5::CommandableComponent::isPoliceHeli ( ) const
bool em5::CommandableComponent::isPoliceMTW ( ) const
bool em5::CommandableComponent::isPolicePerson ( ) const
bool em5::CommandableComponent::isPoliceSEKDrone ( ) const
bool em5::CommandableComponent::isPoliceSEKHeli ( ) const
bool em5::CommandableComponent::isPoliceSEKPerson ( ) const
bool em5::CommandableComponent::isPoliceSEKR ( ) const
bool em5::CommandableComponent::isPoliceSTW ( ) const
bool em5::CommandableComponent::isPoliceTSEKR ( ) const
bool em5::CommandableComponent::isTechCrane ( ) const
bool em5::CommandableComponent::isTechEngineer ( ) const
bool em5::CommandableComponent::isTechEngineerCar ( ) const
bool em5::CommandableComponent::isTechHeli ( ) const
bool em5::CommandableComponent::isTechTowcar ( ) const
bool em5::CommandableComponent::isUnitType ( const qsf::StringHash unitTypeId) const
virtual void em5::CommandableComponent::serialize ( qsf::BinarySerializer serializer)
overridevirtual

Serialize or deserialize the component using a binary serializer.

Parameters
[in]serializerThe serializer, which can be either in read or write mode

Reimplemented from qsf::game::CommandableComponent.

void em5::CommandableComponent::setMiniMapIconType ( const std::string &  miniMapIconType)

Set the icon type for the minimap.

void em5::CommandableComponent::setPlayerId ( uint32  playerId)

Set the ID of the player who owns this unit, can be uninitialized.

Note
  • Changing player ID after ordering / creating the unit is not supported
void em5::CommandableComponent::setSpeakerIndex ( uint32  speakerIndex)

Set the speaker index for command and selection feedback.

void em5::CommandableComponent::setTeamId ( uint16  teamId)

Set the ID of the team to which the unit belongs, can be uninitialized.

Note
Changing team ID after ordering / creating the unit is not supported
void em5::CommandableComponent::setUnitTagsAsString ( const std::string &  unitTags)

Set tags of an unit, eg "Group:Ambulance;Vehicle;RTW".

virtual void em5::CommandableComponent::setUnitType ( uint32  unitType)
overridevirtual

Set the unit type.

Parameters
[in]unitTypeThe string hashed ID of the unique unit name. e.g. setUnitType(qsf::StringHash("ambulance"))

Reimplemented from qsf::game::CommandableComponent.

Member Data Documentation

const uint32 em5::CommandableComponent::COMPONENT_ID
static

"em5::CommandableComponent" unique component ID

const qsf::NamedIdentifier em5::CommandableComponent::MINIMAP_ICON_UNIT_AMBULANCE
static
const qsf::NamedIdentifier em5::CommandableComponent::MINIMAP_ICON_UNIT_AMBULANCE_DOG
static
const qsf::NamedIdentifier em5::CommandableComponent::MINIMAP_ICON_UNIT_FIREFIGHTER
static
const qsf::NamedIdentifier em5::CommandableComponent::MINIMAP_ICON_UNIT_MEDIEVAL
static
const qsf::NamedIdentifier em5::CommandableComponent::MINIMAP_ICON_UNIT_POLICE
static
const qsf::NamedIdentifier em5::CommandableComponent::MINIMAP_ICON_UNIT_POLICE_DOG
static
const qsf::NamedIdentifier em5::CommandableComponent::MINIMAP_ICON_UNIT_TECH
static
const qsf::NamedIdentifier em5::CommandableComponent::MINIMAP_ICON_UNIT_VEHICLE_AMBULANCE
static
const qsf::NamedIdentifier em5::CommandableComponent::MINIMAP_ICON_UNIT_VEHICLE_FIREFIGHTER
static
const qsf::NamedIdentifier em5::CommandableComponent::MINIMAP_ICON_UNIT_VEHICLE_POLICE
static
const qsf::NamedIdentifier em5::CommandableComponent::MINIMAP_ICON_UNIT_VEHICLE_TECH
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_AMBULANCE_DOCTOR
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_AMBULANCE_DOCTOR_HISTORIC
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_AMBULANCE_HELI
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_AMBULANCE_IMT
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_AMBULANCE_NEF
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_AMBULANCE_PARAMEDICS
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_AMBULANCE_RESCUEDOG
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_AMBULANCE_RESCUEDOG_LEADER
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_AMBULANCE_RESCUEDOGCAR
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_AMBULANCE_RTW
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_CAN_TRANSPORT_GANGSTERS
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_CAN_TRANSPORT_INJUREDS
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_CATEGORY_BOAT
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_CATEGORY_HELI
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_CATEGORY_PERSON
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_CATEGORY_ROAD
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_CATEGORY_VEHICLE
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_DEPARTMENT_AMBULANCE
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_DEPARTMENT_FIREFIGHTERS
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_DEPARTMENT_POLICE
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_DEPARTMENT_TECH
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_BOAT
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_BOAT_TRANSPORT
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_COMMANDOCAR
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_DEKONP
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_DIVER
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_DIVER_TRANSPORT
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_DLK
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_DRONE
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_DRONE_TRANSPORT
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_FIREFIGHTER
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_FIREFIGHTER_ABC
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_FIREFIGHTER_HISTORIC
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_FIREPLANE
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_FLB
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_RW
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_RW_HISTORIC
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_FIREFIGHTERS_TLF
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_MISC_AMBULANCEBUS
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_MISC_CONVOITRUCK
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_MISC_EVACBUS
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_POLICE_DOGCAR
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_POLICE_DRONE
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_POLICE_DRONE_TRANSPORT
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_POLICE_GUARDSMAN_HISTORIC
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_POLICE_HELI
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_POLICE_MTW
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_POLICE_POLICE
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_POLICE_POLICEDOG
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_POLICE_POLICEDOG_LEADER
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_POLICE_ROBOT
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_POLICE_ROBOT_TRANSPORT
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_POLICE_SEK
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_POLICE_SEK_HELI
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_POLICE_STW
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_TECH_CRANE
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_TECH_ENGINEER
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_TECH_ENGINEERCAR
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_TECH_HELI
static
const qsf::NamedIdentifier em5::CommandableComponent::UNITTAG_TECH_TOWCAR
static

The documentation for this class was generated from the following file: