Changeset 8798 in orxonox.OLD for branches/network/src/world_entities
- Timestamp:
- Jun 26, 2006, 3:48:47 PM (19 years ago)
- Location:
- branches/network/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/spawning_point.cc
r8068 r8798 59 59 { 60 60 this->setClassID(CL_SPAWNING_POINT, "SpawningPoint"); 61 62 this->teamId = -1; 61 63 } 62 64 … … 81 83 LoadParam(root, "delay", this, SpawningPoint, setSpawningDelay) 82 84 .describe("sets the delay of the spawning point"); 85 86 /* load teamId */ 87 LoadParam(root, "teamId", this, SpawningPoint, setTeamId) 88 .describe("sets teamId"); 83 89 84 90 -
branches/network/src/world_entities/spawning_point.h
r8068 r8798 50 50 /** sets the spawning point mode @param mode: the mode */ 51 51 void SpawningPoint::setSpawningMode(int mode) { this->mode = (SpawningPointMode)mode; } 52 53 inline int getTeamId(){ return this->teamId; } 54 inline void setTeamId( int teamId ){ this->teamId = teamId; } 52 55 53 56 void pushEntity(WorldEntity* entity, float delay = 0); … … 72 75 float localTimer; //!< the local timer 73 76 float seed; //!< the random seed of the position 77 int teamId; //!< only spawn players of this team 74 78 ClassID classid; //!< the classid of the entity to spawn 75 79 SpawningPointMode mode; //!< the mode of the spawning point
Note: See TracChangeset
for help on using the changeset viewer.