Emergency 20 Dokumentation  4.2.0
em5::PlayerHelper Class Reference

EMERGENCY 5 player helper class. More...

#include <PlayerHelper.h>

Inheritance diagram for em5::PlayerHelper:

Public Member Functions

 PlayerHelper (Player &player)
 Constructor. More...
 
 ~PlayerHelper ()
 Destructor. More...
 
bool isUnitAvailable (const qsf::Map &map, const qsf::StringHash &identifier) const
 
uint32 getUnitAvailableCount (const qsf::Map &map, const qsf::StringHash &identifier) const
 
uint32 getNumberOfUnit (const qsf::StringHash &identifier) const
 Returns the number of units which are available for the given unit type string (available = unit not blocked (dead/injured in HQ)) More...
 
uint32 getNumberAmbulanceMedics () const
 
uint32 getNumberAmbulanceParamedics () const
 
uint32 getNumberFireFightersFirefighter () const
 
uint32 getNumberPolicePolice () const
 
uint32 getNumberRescueDogLeader () const
 

Detailed Description

EMERGENCY 5 player helper class.

Constructor & Destructor Documentation

em5::PlayerHelper::PlayerHelper ( Player player)
inlineexplicit

Constructor.

em5::PlayerHelper::~PlayerHelper ( )
inline

Destructor.

Member Function Documentation

uint32 em5::PlayerHelper::getNumberAmbulanceMedics ( ) const
uint32 em5::PlayerHelper::getNumberAmbulanceParamedics ( ) const
uint32 em5::PlayerHelper::getNumberFireFightersFirefighter ( ) const
uint32 em5::PlayerHelper::getNumberOfUnit ( const qsf::StringHash identifier) const

Returns the number of units which are available for the given unit type string (available = unit not blocked (dead/injured in HQ))

uint32 em5::PlayerHelper::getNumberPolicePolice ( ) const
uint32 em5::PlayerHelper::getNumberRescueDogLeader ( ) const
uint32 em5::PlayerHelper::getUnitAvailableCount ( const qsf::Map map,
const qsf::StringHash identifier 
) const
bool em5::PlayerHelper::isUnitAvailable ( const qsf::Map map,
const qsf::StringHash identifier 
) const

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