Emergency 20 Dokumentation  4.2.0
em5::ReserveGuidePersonLogic Class Reference

Reserve guide person logic. More...

#include <ReserveLogic.h>

Inheritance diagram for em5::ReserveGuidePersonLogic:
em5::ReserveLogic qsf::GameLogic qsf::WeakPtrTarget

Public Member Functions

 ReserveGuidePersonLogic ()
 
- Public Member Functions inherited from em5::ReserveLogic
 ReserveLogic (uint32 gamelogicTypeId)
 
uint64 getReservationId ()
 
void setReservationId (uint64 reservationId)
 
void deleteLogic ()
 
- Public Member Functions inherited from qsf::GameLogic
virtual ~GameLogic ()
 Destructor. More...
 
uint32 getId () const
 Get the game logic's unique ID. More...
 
uint32 getTypeId () const
 Get the game logic's type ID. More...
 
uint64 getEntityId () const
 Get the owning entity's ID or zero if there is none. More...
 
EntitygetEntity () const
 Get the owning entity or a null pointer if there is none. More...
 
EntitygetEntitySafe () const
 Get the owning entity or a null pointer if there is none. More...
 
MapgetMap () const
 Get the associated map of the game logic. More...
 
bool startup ()
 Startup the game logic. More...
 
bool isRunning () const
 Return whether or not the game logic is up-and-running. More...
 
void shutdown ()
 Shutdown the game logic. More...
 
bool isDebug () const
 Return whether or not the logic is considered to be in debug mode. More...
 
void setDebug (bool debugMode)
 Set whether or not the logic is considered to be in debug mode. More...
 
virtual bool onStartup ()
 Startup the game logic. More...
 
virtual void onShutdown ()
 Shutdown the game logic. More...
 
virtual void serialize (BinarySerializer &serializer)
 Serialize or deserialize the game logic using a binary serializer. More...
 

Static Public Attributes

static const uint32 GAMELOGIC_TYPE_ID
 
- Static Public Attributes inherited from em5::ReserveLogic
static const uint32 GAMELOGIC_TYPE_ID
 

Additional Inherited Members

- Public Types inherited from em5::ReserveLogic
enum  ReservePriority { STANDARD = 100, LOW = 50, MOVETO = 10, NO_UNIT = 5 }
 
- Static Public Member Functions inherited from em5::ReserveLogic
template<typename T >
static void createReservation (qsf::Entity &targetEntity, uint64 reservationId)
 Create the given reservation type at the target and set the reservation ID. More...
 
static bool checkReservation (qsf::Entity &targetEntity, uint64 reservationId, ReservePriority priority=ReservePriority::STANDARD)
 Check if entity has an reservation and if it reserve the given id. More...
 
static void deleteOwnReservation (qsf::Entity &targetEntity, uint64 reservationId)
 Checks if the target reservation logic matches the given reservation id, in case "false" delete the reservation logic of the target entity. More...
 
static void deleteOwnReservation (const qsf::WeakPtr< qsf::Entity > &targetEntity, uint64 reservationId)
 Checks if the target reservation logic matches the given reservation id, in case "false" delete the reservation logic of the target entity. More...
 
static void deleteOwnReservation (qsf::Map &map, uint64 targetEntityId, uint64 reservationId)
 Checks if the target reservation logic matches the given reservation id, in case "false" delete the reservation logic of the target entity. More...
 
static void createReservationByTypeId (qsf::Entity &targetEntity, uint64 reservationId, uint32 typeId)
 
- Protected Member Functions inherited from qsf::GameLogic
virtual void onSetDebug (bool debug)
 Set whether or not the logic is considered to be in debug mode. More...
 
void removeThis ()
 
 GameLogic (uint32 typeId)
 Constructor. More...
 
void registrationAtManager (GameLogicManager &manager, uint32 id)
 Registering call from manager. 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 em5::ReserveLogic
uint64 mReservationId
 ID of the entity who reserved this. More...
 
ReservePriority mReservePriority
 

Detailed Description

Reserve guide person logic.

Constructor & Destructor Documentation

em5::ReserveGuidePersonLogic::ReserveGuidePersonLogic ( )

Member Data Documentation

const uint32 em5::ReserveGuidePersonLogic::GAMELOGIC_TYPE_ID
static

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