Public Member Functions | Protected Attributes

SpawnPoint Class Reference

#include <SpawnPoint.h>

Inheritance diagram for SpawnPoint:
Portal GModel GGraphicsObject GObject

List of all members.

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

Constructor & Destructor Documentation

SpawnPoint::SpawnPoint ( GVec4f  _position,
int  _noMonstersToSpawn,
double  _SpawnInterval 
)

index of next monster to spawn

SpawnPoint::~SpawnPoint ( void   ) 

generic constructor


Member Function Documentation

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.


Member Data Documentation

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

number of already spawned monsters

double SpawnPoint::SpawnInterval [protected]

total number of monsters to spawn


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends Defines