#include <SpawnPoint.h>
Public Member Functions | |
SpawnPoint (GVec4f _position, int _noMonstersToSpawn, double _SpawnInterval) | |
index of next monster to spawn | |
~SpawnPoint (void) | |
generic constructor | |
int | SetMonster (Monster *_monster, string AnimationFile, string KeyframeFile, string SkeletonFile) |
standard destructor | |
virtual int | Update (double time, double dtime) |
assign spawnpoint a monstertype | |
virtual void | setActive (bool) |
draw portal | |
Protected Attributes | |
int | NoSpawnedMonsters |
int | NoMonstersToSpawn |
number of already spawned monsters | |
double | SpawnInterval |
total number of monsters to spawn | |
vector< Monster * > | Monsters |
time to elapse between two spawns | |
double | lastCheck |
vector of monsters. this is created at startup to reduce in-game loading time | |
int | nextSpawn |
timestamp of last invokation of update |
SpawnPoint::SpawnPoint | ( | GVec4f | _position, | |
int | _noMonstersToSpawn, | |||
double | _SpawnInterval | |||
) |
index of next monster to spawn
SpawnPoint::~SpawnPoint | ( | void | ) |
generic constructor
void SpawnPoint::setActive | ( | bool | b | ) | [virtual] |
draw portal
Reimplemented from Portal.
int SpawnPoint::SetMonster | ( | Monster * | _monster, | |
string | AnimationFile, | |||
string | KeyframeFile, | |||
string | SkeletonFile | |||
) |
standard destructor
int SpawnPoint::Update | ( | double | time, | |
double | dtime | |||
) | [virtual] |
assign spawnpoint a monstertype
Reimplemented from GModel.
double SpawnPoint::lastCheck [protected] |
vector of monsters. this is created at startup to reduce in-game loading time
vector<Monster*> SpawnPoint::Monsters [protected] |
time to elapse between two spawns
int SpawnPoint::nextSpawn [protected] |
timestamp of last invokation of update
int SpawnPoint::NoMonstersToSpawn [protected] |
number of already spawned monsters
int SpawnPoint::NoSpawnedMonsters [protected] |
double SpawnPoint::SpawnInterval [protected] |
total number of monsters to spawn