Emergency 20 Dokumentation  4.2.0
em5::SpawnInhabitants Class Reference

Spawn inhabitants into the world. More...

#include <SpawnInhabitants.h>

Inheritance diagram for em5::SpawnInhabitants:

Public Member Functions

 SpawnInhabitants ()
 Default constructor. More...
virtual ~SpawnInhabitants ()
 Destructor. More...
- Public Member Functions inherited from em5::SpawnEntities
 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 void updateSpawning () override
- Protected Member Functions inherited from em5::SpawnEntities
virtual uint32 getCurrentEntities ()
virtual uint32 getMaximumEntities ()
float getCurrentHourOfDay () const
const qsf::game::WeatherStategetCurrentWeatherState () const
void getStartupPopulationPoints (uint32 count, uint32 worldIndex, uint32 laneTypeId, std::vector< qsf::Transform > &outPoints)

Additional Inherited Members

- Protected Attributes inherited from em5::SpawnEntities
qsf::JobProxy mSpawnJobProxy
 Regular simulation job proxy. More...
qsf::DebugDrawProxy mDebugDrawProxy
 Debug draw proxy. More...
bool mDebugEnabled

Detailed Description

Spawn inhabitants into the world.

  • Spawning can be enabled/disabled with the GameSettingsGroup's "SpawnCivilActive" property
  • TODO(fw): Most probably this class should be replaced wth entries in the "em5::SpawnGroupManager"

Constructor & Destructor Documentation

em5::SpawnInhabitants::SpawnInhabitants ( )

Default constructor.

virtual em5::SpawnInhabitants::~SpawnInhabitants ( )


Member Function Documentation

virtual void em5::SpawnInhabitants::updateSpawning ( )

Reimplemented from em5::SpawnEntities.

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