Emergency 2017 Dokumentation  v3.0.1
em5::SpawnEntities Class Reference

Base class for spawn controllers. More...

#include <SpawnEntities.h>

Public Member Functions

 SpawnEntities (uint32 jobManagerId)
 Constructor. More...
 
virtual ~SpawnEntities ()
 Destructor. More...
 
void setDebug (bool debug)
 Enable/disable debug output. More...
 
virtual void createStartupPopulation ()
 

Protected Member Functions

virtual uint32 getCurrentEntities ()
 
virtual uint32 getMaximumEntities ()
 
virtual void updateSpawning ()
 
float getCurrentHourOfDay () const
 
const qsf::game::WeatherStategetCurrentWeatherState () const
 
void getStartupPopulationPoints (uint32 count, uint32 worldIndex, uint32 laneTypeId, std::vector< qsf::Transform > &outPoints)
 

Protected Attributes

qsf::JobProxy mSpawnJobProxy
 Regular simulation job proxy. More...
 
qsf::DebugDrawProxy mDebugDrawProxy
 Debug draw proxy. More...
 
bool mDebugEnabled
 

Detailed Description

Base class for spawn controllers.

Todo:
  • TODO(fw): Get rid of this class, we actually only still need it because of "SpawnInhabitants"

Definition at line 48 of file SpawnEntities.h.

Constructor & Destructor Documentation

em5::SpawnEntities::SpawnEntities ( uint32  jobManagerId)

Constructor.

virtual em5::SpawnEntities::~SpawnEntities ( )
virtual

Destructor.

Member Function Documentation

virtual void em5::SpawnEntities::createStartupPopulation ( )
virtual
virtual uint32 em5::SpawnEntities::getCurrentEntities ( )
inlineprotectedvirtual

Definition at line 86 of file SpawnEntities.h.

float em5::SpawnEntities::getCurrentHourOfDay ( ) const
protected
const qsf::game::WeatherState* em5::SpawnEntities::getCurrentWeatherState ( ) const
protected
virtual uint32 em5::SpawnEntities::getMaximumEntities ( )
inlineprotectedvirtual

Definition at line 87 of file SpawnEntities.h.

void em5::SpawnEntities::getStartupPopulationPoints ( uint32  count,
uint32  worldIndex,
uint32  laneTypeId,
std::vector< qsf::Transform > &  outPoints 
)
protected
void em5::SpawnEntities::setDebug ( bool  debug)

Enable/disable debug output.

virtual void em5::SpawnEntities::updateSpawning ( )
inlineprotectedvirtual

Reimplemented in em5::SpawnInhabitants.

Definition at line 88 of file SpawnEntities.h.

Member Data Documentation

qsf::DebugDrawProxy em5::SpawnEntities::mDebugDrawProxy
protected

Debug draw proxy.

Definition at line 113 of file SpawnEntities.h.

bool em5::SpawnEntities::mDebugEnabled
protected

Definition at line 114 of file SpawnEntities.h.

qsf::JobProxy em5::SpawnEntities::mSpawnJobProxy
protected

Regular simulation job proxy.

Definition at line 112 of file SpawnEntities.h.


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