00001 #pragma once 00002 #include "ggraphicsobject.h" 00003 #include "GVec4f.h" 00004 #include <vector> 00005 #include "Monster.h" 00006 #include <string> 00007 #include "Portal.h" 00008 00009 class SpawnPoint :public Portal 00010 { 00011 protected: 00012 int NoSpawnedMonsters; 00013 int NoMonstersToSpawn; 00014 double SpawnInterval; 00015 vector<Monster*> Monsters; 00016 double lastCheck; 00017 int nextSpawn; 00018 public: 00019 SpawnPoint(GVec4f _position, int _noMonstersToSpawn, double _SpawnInterval); 00020 ~SpawnPoint(void); 00021 int SetMonster(Monster *_monster, string AnimationFile, string KeyframeFile, string SkeletonFile); 00022 virtual int Update(double time, double dtime); 00023 virtual void setActive(bool); 00024 };