Changeset 8802 in orxonox.OLD for trunk/src/world_entities/spawning_point.h
- Timestamp:
- Jun 26, 2006, 4:46:25 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/spawning_point.h
r8068 r8802 8 8 #define _SPAWNING_POINT 9 9 10 #include " world_entity.h"10 #include "playable.h" 11 11 12 #include < map>12 #include <list> 13 13 14 14 class World; 15 15 class TiXmlElement; 16 16 17 struct QueueEntry 18 { 19 float respawnTime; 20 WorldEntity * entity; 21 OM_LIST list; 22 }; 17 23 18 24 //!< used to indicate what type of objects are spawned by this spawning point … … 50 56 /** sets the spawning point mode @param mode: the mode */ 51 57 void SpawningPoint::setSpawningMode(int mode) { this->mode = (SpawningPointMode)mode; } 58 59 inline int getTeamId(){ return this->teamId; } 60 inline void setTeamId( int teamId ){ this->teamId = teamId; } 52 61 53 62 void pushEntity(WorldEntity* entity, float delay = 0); … … 72 81 float localTimer; //!< the local timer 73 82 float seed; //!< the random seed of the position 83 int teamId; //!< only spawn players of this team 74 84 ClassID classid; //!< the classid of the entity to spawn 75 85 SpawningPointMode mode; //!< the mode of the spawning point 76 std:: map<WorldEntity*, float>queue; //!< queue of waiting WorldEntities to be spawned86 std::list<QueueEntry> queue; //!< queue of waiting WorldEntities to be spawned 77 87 bool bSpawning; //!< flag to indicate if this spawning point is active or not 78 88 };
Note: See TracChangeset
for help on using the changeset viewer.