Emergency 20 Dokumentation  4.2.0
qsf::game::Command Class Referenceabstract

Abstract command base class. More...

#include <Command.h>

Inheritance diagram for qsf::game::Command:
qsf::Pluginable< CommandManager > qsf::PluginableBase qsf::Object em5::Command qsf::game::ScriptCommand em5::AreaExtinguishCommand em5::ArrestGangsterCommand em5::AttackBuildingCommand em5::BreakBuildingDoorOpenCommand em5::CallBackDroneCommand em5::CancelDogSearchCommand em5::CleanHomeCommand em5::CutRoadVehicleCommand em5::CutTreeCommand em5::DecontaminatePersonCommand em5::DefuseBombCommand em5::DeployRescueBusCommand em5::DisableMegaphoneCommand em5::DLKSafePersonCommand em5::EnableMegaphoneCommand em5::EnterBuildingCommand em5::EnterVehicleCommand em5::EvacuateBuildingCommand em5::ExitBuildingCommand em5::ExitRescueHeliCommand em5::ExitVehicleCommand em5::ExtinguishCoolBaseCommand em5::ExtinguishTargetAreaCommand em5::GetEquipmentCommand em5::GuardsmanArrestGangsterCommand em5::GuidePlagueVictimsCommand em5::HelicopterFollowCommand em5::LandHelicopterCommand em5::LiftUpByCraneCommand em5::LoadBoatToTransporterCommand em5::LoadBoatToTransporterFromBoatCommand em5::LoadRobotToTransporterCommand em5::MoveCommand em5::PerformPlacePersonByFlyingHeliCommand em5::PerformRopeDownFromHelicopterCommand em5::PickupContaminatedPersonCommand em5::PickupDiverByBoatCommand em5::PickupDrowningPersonByBoatCommand em5::PickupDrowningPersonWithDiverCommand em5::PickupPersonByFlyingHeliCommand em5::PickupPersonByParamedicCommand em5::PickupVehicleByTowcarCommand em5::PlaceBarrierTapePole1Command em5::PlaceBarrierTapePole2Command em5::PlaceGuidedPersonCommand em5::PlacePersonByFlyingHeliCommand em5::PlacePersonCommand em5::PlacePersonFromBoatCommand em5::PlacePersonInEvacBusCommand em5::PlacePersonWithDiverCommand em5::PlagueQuickTestCommand em5::PutPersonInBoatCommand em5::RedirectTrafficCommand em5::RemoveBarrierTapeCommand em5::RepairVehicleCommand em5::RescuePersonFromBuildingCommand em5::RescueWitchCommand em5::ReturnToBaseCommand em5::RobotScanCommand em5::RopingFromHelicopterCommand em5::SearchBombInBuildingCommand em5::SEKDroneSearchCommand em5::SendDogForSearchCommand em5::SendPlagueVictimHomeCommand em5::SpeakToHostageTakerCommand em5::SpeakToPersonCommand em5::StartDroneCommand em5::StartPullObjectCommand em5::StartPullPersonCommand em5::StopGuidePersonCommand em5::StopPullObjectCommand em5::StopPullPersonCommand em5::TreatPersonCommand em5::UnloadBoatFromTransporterCommand em5::UnloadBusCommand em5::UnloadRobotFromTransporterCommand em5::UseDivingSpotCommand em5::UsePepperSprayCommand em5::UsePistolCommand em5::UseSniperRifleCommand em5::UseStunGrenadeCommand em5::UseWithEngineerCommand

Public Member Functions

 Command (CommandManager *commandManager, uint32 commandId)
 Constructor. More...
 
uint32 getId () const
 Get command ID, which is the command class's PLUGINABLE_ID. More...
 
uint32 getPriority () const
 Get command priority. More...
 
bool getIsScriptCommand () const
 Returns true if command is created via script. More...
 
virtual bool checkAvailable ()=0
 Check whether the command is currently available at all. More...
 
virtual bool checkCaller (Entity &caller)=0
 Check whether the command can be executed by the given caller entity. More...
 
virtual bool checkContext (const CommandContext &context)=0
 Check whether the command can be executed with the given context. More...
 
virtual void execute (const CommandContext &context)=0
 Execute command for given context. More...
 
virtual std::string getName () const
 Returns the name of the command. More...
 
- Public Member Functions inherited from qsf::Pluginable< CommandManager >
virtual ~Pluginable ()
 Destructor. More...
 
CommandManager & getManager () const
 Return the pluginable manager this pluginable is in. More...
 
- Public Member Functions inherited from qsf::PluginableBase
virtual ~PluginableBase ()
 Destructor. More...
 
template<typename T >
T & getPluginableManager () const
 Return the pluginable manager this pluginable is in. More...
 
- 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 camp::Value getPropertyDefaultValue (const StringHash &propertyId) const
 
virtual PropertyOverrideState getPropertyOverrideState (const StringHash &propertyId) const
 
virtual bool setPropertyOverrideState (const StringHash &propertyId, PropertyOverrideState overrideState)
 
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...
 

Protected Member Functions

bool checkCallerActionPriority (Entity &caller, uint32 maximumPriority) const
 
ActionComponentgetActionComponent (Entity &caller) const
 
- Protected Member Functions inherited from qsf::Pluginable< CommandManager >
 Pluginable (CommandManager *pluginableManager)
 Constructor. More...
 
- Protected Member Functions inherited from qsf::PluginableBase
 PluginableBase (PluginableManager *pluginableManager)
 Constructor. More...
 
- Protected Member Functions inherited from qsf::Object
 Object ()
 Default constructor. More...
 

Protected Attributes

uint32 mPriority
 Commands with higher priority get evaluated first; default value is 100. More...
 
bool mIsScriptCommand
 True if command is loaded via script. More...
 

Additional Inherited Members

- 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 }
 

Detailed Description

Abstract command base class.

Constructor & Destructor Documentation

qsf::game::Command::Command ( CommandManager commandManager,
uint32  commandId 
)

Constructor.

Member Function Documentation

virtual bool qsf::game::Command::checkAvailable ( )
pure virtual

Check whether the command is currently available at all.

Returns
"true" if command can be executed, "false" if it is blocked or makes no sense in the current game state

Implemented in qsf::game::ScriptCommand, em5::ExitVehicleCommand, em5::LandHelicopterCommand, em5::PlacePersonByFlyingHeliCommand, em5::MoveCommand, em5::ReturnToBaseCommand, em5::EnterVehicleCommand, em5::RedirectTrafficCommand, em5::PerformRopeDownFromHelicopterCommand, em5::RopingFromHelicopterCommand, em5::PerformPlacePersonByFlyingHeliCommand, em5::DeployRescueBusCommand, em5::GuidePlagueVictimsCommand, em5::PickupPersonByParamedicCommand, em5::PlagueQuickTestCommand, em5::BreakBuildingDoorOpenCommand, em5::CutRoadVehicleCommand, em5::SearchBombInBuildingCommand, em5::PickupPersonByFlyingHeliCommand, em5::PlacePersonInEvacBusCommand, em5::GetEquipmentCommand, em5::ExtinguishWithWellCommand, em5::HelicopterFollowCommand, em5::UnloadBusCommand, em5::PlaceGuidedPersonCommand, em5::PlacePersonCommand, em5::PickupDrowningPersonWithDiverCommand, em5::RescuePersonFromBuildingCommand, em5::UseDivingSpotCommand, em5::ArrestGangsterCommand, em5::PlaceBarrierTapeCommand, em5::RemoveBarrierTapeCommand, em5::EvacuateBuildingCommand, em5::PickupDiverByBoatCommand, em5::PickupDrowningPersonByBoatCommand, em5::PlacePersonFromBoatCommand, em5::CancelDogSearchCommand, em5::SendDogForSearchCommand, em5::ExtinguishWithCannonCommand, em5::ExtinguishWithExtinguisherCommand, em5::ExtinguishWithHoseCommand, em5::ExitRescueHeliCommand, em5::CleanHomeCommand, em5::SendPlagueVictimHomeCommand, em5::TreatPersonCommand, em5::EnterBuildingCommand, em5::ExitBuildingCommand, em5::StartPullObjectCommand, em5::StopGuidePersonCommand, em5::StopPullObjectCommand, em5::CallBackDroneCommand, em5::SEKDroneSearchCommand, em5::StartDroneCommand, em5::AreaExtinguishCommand, em5::DecontaminatePersonCommand, em5::DLKCoolCommand, em5::DLKExtinguishCommand, em5::DLKSafePersonCommand, em5::ExtinguishTargetAreaCommand, em5::PickupContaminatedPersonCommand, em5::PlacePersonWithDiverCommand, em5::PutPersonInBoatCommand, em5::StartPullPersonCommand, em5::StopPullPersonCommand, em5::AttackBuildingCommand, em5::PlaceBarrierTapePole1Command, em5::PlaceBarrierTapePole2Command, em5::DefuseBombCommand, em5::DisableMegaphoneCommand, em5::EnableMegaphoneCommand, em5::GuardsmanArrestGangsterCommand, em5::RescueWitchCommand, em5::RobotScanCommand, em5::LoadRobotToTransporterCommand, em5::UnloadRobotFromTransporterCommand, em5::SendPoliceDogAttackCommand, em5::SendPoliceDogForSearchCommand, em5::SpeakToHostageTakerCommand, em5::SpeakToPersonCommand, em5::UsePepperSprayCommand, em5::UsePistolCommand, em5::UseSniperRifleCommand, em5::UseStunGrenadeCommand, em5::LiftUpByCraneCommand, em5::LoadBoatToTransporterCommand, em5::LoadBoatToTransporterFromBoatCommand, em5::PickupVehicleByTowcarCommand, em5::RepairVehicleCommand, em5::UnloadBoatFromTransporterCommand, em5::UseWithEngineerCommand, and em5::CutTreeCommand.

virtual bool qsf::game::Command::checkCaller ( Entity caller)
pure virtual

Check whether the command can be executed by the given caller entity.

Parameters
[in]callerThe caller entity to check
Returns
"true" if command can be executed by this entity, "false" if the entity is not able to execute the command (at all or in the current situation)
Remarks
This only gets called in case checkAvailable() returned "true", so don't repeat checks from checkAvailable() in checkCaller().

Implemented in qsf::game::ScriptCommand, em5::ExitVehicleCommand, em5::LandHelicopterCommand, em5::PlacePersonByFlyingHeliCommand, em5::MoveCommand, em5::ReturnToBaseCommand, em5::EnterVehicleCommand, em5::RedirectTrafficCommand, em5::PerformRopeDownFromHelicopterCommand, em5::RopingFromHelicopterCommand, em5::PerformPlacePersonByFlyingHeliCommand, em5::DeployRescueBusCommand, em5::GuidePlagueVictimsCommand, em5::PickupPersonByParamedicCommand, em5::PlagueQuickTestCommand, em5::BreakBuildingDoorOpenCommand, em5::CutRoadVehicleCommand, em5::SearchBombInBuildingCommand, em5::PickupPersonByFlyingHeliCommand, em5::PlacePersonInEvacBusCommand, em5::GetEquipmentCommand, em5::ExtinguishWithWellCommand, em5::HelicopterFollowCommand, em5::UnloadBusCommand, em5::PlaceGuidedPersonCommand, em5::PlacePersonCommand, em5::PickupDrowningPersonWithDiverCommand, em5::RescuePersonFromBuildingCommand, em5::UseDivingSpotCommand, em5::ArrestGangsterCommand, em5::PlaceBarrierTapeCommand, em5::RemoveBarrierTapeCommand, em5::EvacuateBuildingCommand, em5::PickupDiverByBoatCommand, em5::PickupDrowningPersonByBoatCommand, em5::PlacePersonFromBoatCommand, em5::CancelDogSearchCommand, em5::SendDogForSearchCommand, em5::ExtinguishWithCannonCommand, em5::ExtinguishWithExtinguisherCommand, em5::ExtinguishWithHoseCommand, em5::ExitRescueHeliCommand, em5::CleanHomeCommand, em5::SendPlagueVictimHomeCommand, em5::TreatPersonCommand, em5::EnterBuildingCommand, em5::ExitBuildingCommand, em5::StartPullObjectCommand, em5::StopGuidePersonCommand, em5::StopPullObjectCommand, em5::CallBackDroneCommand, em5::SEKDroneSearchCommand, em5::StartDroneCommand, em5::AreaExtinguishCommand, em5::DecontaminatePersonCommand, em5::DLKCoolCommand, em5::DLKExtinguishCommand, em5::DLKSafePersonCommand, em5::ExtinguishTargetAreaCommand, em5::PickupContaminatedPersonCommand, em5::PlacePersonWithDiverCommand, em5::PutPersonInBoatCommand, em5::StartPullPersonCommand, em5::StopPullPersonCommand, em5::AttackBuildingCommand, em5::PlaceBarrierTapePole1Command, em5::PlaceBarrierTapePole2Command, em5::DefuseBombCommand, em5::DisableMegaphoneCommand, em5::EnableMegaphoneCommand, em5::GuardsmanArrestGangsterCommand, em5::RescueWitchCommand, em5::RobotScanCommand, em5::LoadRobotToTransporterCommand, em5::UnloadRobotFromTransporterCommand, em5::SendPoliceDogAttackCommand, em5::SendPoliceDogForSearchCommand, em5::SpeakToHostageTakerCommand, em5::SpeakToPersonCommand, em5::UsePepperSprayCommand, em5::UsePistolCommand, em5::UseSniperRifleCommand, em5::UseStunGrenadeCommand, em5::LiftUpByCraneCommand, em5::LoadBoatToTransporterCommand, em5::LoadBoatToTransporterFromBoatCommand, em5::PickupVehicleByTowcarCommand, em5::RepairVehicleCommand, em5::UnloadBoatFromTransporterCommand, em5::UseWithEngineerCommand, and em5::CutTreeCommand.

bool qsf::game::Command::checkCallerActionPriority ( Entity caller,
uint32  maximumPriority 
) const
protected
virtual bool qsf::game::Command::checkContext ( const CommandContext context)
pure virtual

Check whether the command can be executed with the given context.

Parameters
[in]contextThe command context, including caller and target information
Returns
"true" if command can be executed for this context, "false" if the target is not valid for the command
Remarks
This only gets called if both checkAvailable() and checkCaller() returned "true", so don't repeat their checks in checkContext().

Implemented in qsf::game::ScriptCommand, em5::ExitVehicleCommand, em5::LandHelicopterCommand, em5::PlacePersonByFlyingHeliCommand, em5::MoveCommand, em5::ReturnToBaseCommand, em5::EnterVehicleCommand, em5::RedirectTrafficCommand, em5::PerformRopeDownFromHelicopterCommand, em5::RopingFromHelicopterCommand, em5::PerformPlacePersonByFlyingHeliCommand, em5::DeployRescueBusCommand, em5::GuidePlagueVictimsCommand, em5::PickupPersonByParamedicCommand, em5::PlagueQuickTestCommand, em5::BreakBuildingDoorOpenCommand, em5::CutRoadVehicleCommand, em5::SearchBombInBuildingCommand, em5::PickupPersonByFlyingHeliCommand, em5::PlacePersonInEvacBusCommand, em5::ExtinguishWithWellCommand, em5::HelicopterFollowCommand, em5::UnloadBusCommand, em5::PlaceGuidedPersonCommand, em5::PlacePersonCommand, em5::PickupDrowningPersonWithDiverCommand, em5::RescuePersonFromBuildingCommand, em5::UseDivingSpotCommand, em5::ArrestGangsterCommand, em5::PlaceBarrierTapeCommand, em5::RemoveBarrierTapeCommand, em5::EvacuateBuildingCommand, em5::PickupDiverByBoatCommand, em5::PickupDrowningPersonByBoatCommand, em5::PlacePersonFromBoatCommand, em5::CancelDogSearchCommand, em5::SendDogForSearchCommand, em5::ExtinguishWithCannonCommand, em5::ExtinguishWithExtinguisherCommand, em5::ExtinguishWithHoseCommand, em5::UnequipAllCommand, em5::ExitRescueHeliCommand, em5::CleanHomeCommand, em5::SendPlagueVictimHomeCommand, em5::TreatPersonCommand, em5::EnterBuildingCommand, em5::ExitBuildingCommand, em5::StartPullObjectCommand, em5::StopGuidePersonCommand, em5::StopPullObjectCommand, em5::CallBackDroneCommand, em5::SEKDroneSearchCommand, em5::StartDroneCommand, em5::AreaExtinguishCommand, em5::DecontaminatePersonCommand, em5::DLKCoolCommand, em5::DLKExtinguishCommand, em5::DLKSafePersonCommand, em5::ExtinguishTargetAreaCommand, em5::GetHoseCommand, em5::GetHoseHistoricalCommand, em5::PickupContaminatedPersonCommand, em5::PlacePersonWithDiverCommand, em5::PutPersonInBoatCommand, em5::StartPullPersonCommand, em5::StopPullPersonCommand, em5::AttackBuildingCommand, em5::PlaceBarrierTapePole1Command, em5::PlaceBarrierTapePole2Command, em5::DefuseBombCommand, em5::DisableMegaphoneCommand, em5::EnableMegaphoneCommand, em5::GuardsmanArrestGangsterCommand, em5::RescueWitchCommand, em5::RobotScanCommand, em5::LoadRobotToTransporterCommand, em5::UnloadRobotFromTransporterCommand, em5::SendPoliceDogAttackCommand, em5::SendPoliceDogForSearchCommand, em5::SpeakToHostageTakerCommand, em5::SpeakToPersonCommand, em5::UsePepperSprayCommand, em5::UsePistolCommand, em5::UseSniperRifleCommand, em5::UseStunGrenadeCommand, em5::LiftUpByCraneCommand, em5::LoadBoatToTransporterCommand, em5::LoadBoatToTransporterFromBoatCommand, em5::PickupVehicleByTowcarCommand, em5::RepairVehicleCommand, em5::UnloadBoatFromTransporterCommand, em5::UseWithEngineerCommand, em5::CutTreeCommand, em5::GetSignallingDiscCommand, em5::CoolWithCannonCommand, em5::GetAxeCommand, em5::GetChainSawCommand, em5::GetChainSawHistoricalCommand, em5::GetFireExtinguisherCommand, em5::GetFireExtinguisherHistoricalCommand, em5::GetRescueCutterCommand, em5::GetHandcuffsCommand, em5::GetMegaphoneCommand, em5::GetPepperSprayCommand, em5::GetPistolCommand, em5::GetSniperRifleCommand, em5::GetStunGrenadeCommand, and em5::GetSwordCommand.

virtual void qsf::game::Command::execute ( const CommandContext context)
pure virtual

Execute command for given context.

Parameters
[in]contextThe command context, including caller and target information
Remarks
This only gets called if all three checks returned "true". Command execution usually consists of pushing new actions to the caller entity's action component.

Implemented in qsf::game::ScriptCommand, em5::ExitVehicleCommand, em5::LandHelicopterCommand, em5::PlacePersonByFlyingHeliCommand, em5::MoveCommand, em5::ReturnToBaseCommand, em5::EnterVehicleCommand, em5::RedirectTrafficCommand, em5::PerformRopeDownFromHelicopterCommand, em5::RopingFromHelicopterCommand, em5::PerformPlacePersonByFlyingHeliCommand, em5::DeployRescueBusCommand, em5::GuidePlagueVictimsCommand, em5::PickupPersonByParamedicCommand, em5::PlagueQuickTestCommand, em5::BreakBuildingDoorOpenCommand, em5::CutRoadVehicleCommand, em5::SearchBombInBuildingCommand, em5::PickupPersonByFlyingHeliCommand, em5::PlacePersonInEvacBusCommand, em5::ExtinguishWithWellCommand, em5::HelicopterFollowCommand, em5::UnloadBusCommand, em5::GetEquipmentCommand, em5::PlaceGuidedPersonCommand, em5::PlacePersonCommand, em5::PickupDrowningPersonWithDiverCommand, em5::RescuePersonFromBuildingCommand, em5::UseDivingSpotCommand, em5::ArrestGangsterCommand, em5::PlaceBarrierTapeCommand, em5::RemoveBarrierTapeCommand, em5::EvacuateBuildingCommand, em5::PickupDiverByBoatCommand, em5::PickupDrowningPersonByBoatCommand, em5::PlacePersonFromBoatCommand, em5::CancelDogSearchCommand, em5::SendDogForSearchCommand, em5::ExtinguishWithCannonCommand, em5::ExtinguishWithExtinguisherCommand, em5::ExtinguishWithHoseCommand, em5::UnequipAllCommand, em5::ExitRescueHeliCommand, em5::CleanHomeCommand, em5::SendPlagueVictimHomeCommand, em5::TreatPersonCommand, em5::EnterBuildingCommand, em5::ExitBuildingCommand, em5::StartPullObjectCommand, em5::StopGuidePersonCommand, em5::StopPullObjectCommand, em5::CallBackDroneCommand, em5::SEKDroneSearchCommand, em5::StartDroneCommand, em5::AreaExtinguishCommand, em5::DecontaminatePersonCommand, em5::DLKExtinguishCommand, em5::DLKSafePersonCommand, em5::ExtinguishTargetAreaCommand, em5::GetHoseCommand, em5::GetHoseHistoricalCommand, em5::PickupContaminatedPersonCommand, em5::PlacePersonWithDiverCommand, em5::PutPersonInBoatCommand, em5::StartPullPersonCommand, em5::StopPullPersonCommand, em5::AttackBuildingCommand, em5::PlaceBarrierTapePole1Command, em5::PlaceBarrierTapePole2Command, em5::DefuseBombCommand, em5::DisableMegaphoneCommand, em5::EnableMegaphoneCommand, em5::GuardsmanArrestGangsterCommand, em5::RescueWitchCommand, em5::RobotScanCommand, em5::LoadRobotToTransporterCommand, em5::UnloadRobotFromTransporterCommand, em5::SendPoliceDogAttackCommand, em5::SendPoliceDogForSearchCommand, em5::SpeakToHostageTakerCommand, em5::SpeakToPersonCommand, em5::UsePepperSprayCommand, em5::UsePistolCommand, em5::UseSniperRifleCommand, em5::UseStunGrenadeCommand, em5::LiftUpByCraneCommand, em5::LoadBoatToTransporterCommand, em5::LoadBoatToTransporterFromBoatCommand, em5::PickupVehicleByTowcarCommand, em5::RepairVehicleCommand, em5::UnloadBoatFromTransporterCommand, em5::UseWithEngineerCommand, em5::CutTreeCommand, em5::GetAxeCommand, em5::GetChainSawCommand, em5::GetChainSawHistoricalCommand, em5::GetFireExtinguisherCommand, em5::GetFireExtinguisherHistoricalCommand, em5::GetRescueCutterCommand, em5::GetPistolCommand, em5::GetSniperRifleCommand, and em5::GetSwordCommand.

ActionComponent& qsf::game::Command::getActionComponent ( Entity caller) const
protected
uint32 qsf::game::Command::getId ( ) const
inline

Get command ID, which is the command class's PLUGINABLE_ID.

bool qsf::game::Command::getIsScriptCommand ( ) const
inline

Returns true if command is created via script.

virtual std::string qsf::game::Command::getName ( ) const
virtual

Returns the name of the command.

Reimplemented in qsf::game::ScriptCommand.

uint32 qsf::game::Command::getPriority ( ) const
inline

Get command priority.

Member Data Documentation

bool qsf::game::Command::mIsScriptCommand
protected

True if command is loaded via script.

uint32 qsf::game::Command::mPriority
protected

Commands with higher priority get evaluated first; default value is 100.


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