Changeset 6081 in orxonox.OLD for branches/network
- Timestamp:
- Dec 13, 2005, 11:12:45 AM (19 years ago)
- Location:
- branches/network/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/spawning_point.cc
r6080 r6081 20 20 21 21 /** 22 * constructor22 * standard constructor 23 23 */ 24 24 SpawningPoint::SpawningPoint (const Vector& absCoordinate) 25 25 {} 26 27 28 /** 29 * constructor 30 */ 31 SpawningPoint::SpawningPoint (const Vector& position, float frequency, float seed, int classID) 32 { 33 } 26 34 27 35 … … 32 40 {} 33 41 42 43 /** 44 * spawn the entity 45 */ 46 void SpawningPoint::spawn() 47 {} 34 48 35 49 -
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.