Changeset 6081 in orxonox.OLD for branches/network/src/world_entities/spawning_point.h
- Timestamp:
- Dec 13, 2005, 11:12:45 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/spawning_point.h
r6080 r6081 15 15 public: 16 16 SpawningPoint (const Vector& absCoordinate = Vector(0.0, 0.0, 0.0)); 17 SpawningPoint (const Vector& position, float frequency, float seed, int classID); 17 18 virtual ~SpawningPoint (); 18 19 20 void setSpawningEntity(int classID); 21 void setSpawningFrequency(float frequency); 22 void setPositionSeed(float seed); 23 24 /** sets the entity that is going to be spawned by this point @param classID: the id from the class_id.h file */ 25 void SpawningPoint::setSpawningEntity(int classID) { this->classID = classID; } 26 /** sets the frequency with which the point is going to spawn entities (1/sec) @param frequency: the frequency */ 27 void SpawningPoint::setSpawningFrequency(float frequency) { this->frequency = frequency; } 28 /** sets the seed of the position vector @param seed: the random seed around the given vector */ 29 void SpawningPoint::setPositionSeed(float seed) { this->seed = seed; } 19 30 20 31 void spawn(); 21 void setSpawningEntity();22 23 32 24 33 virtual void tick(float dt); … … 26 35 27 36 private: 37 float frequency; //!< the frequency for entity spawning 38 float seed; //!< the random seed of the position 39 int classID; //!< the classid of the entity to spawn 28 40 29 41 };
Note: See TracChangeset
for help on using the changeset viewer.