Changeset 6088 in orxonox.OLD for branches/network/src/world_entities
- Timestamp:
- Dec 13, 2005, 1:44:40 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
r6087 r6088 28 28 this->frequency = 0.5f; 29 29 this->seed = 0.0f; 30 this->countDown = 0.0f; 30 31 this->init(); 31 32 } 32 33 … … 43 44 this->classID = classID; 44 45 this->world = world; 46 47 this->init(); 48 } 49 50 51 void SpawningPoint::init() 52 { 45 53 this->countDown = 0.0f; 46 54 } … … 76 84 /* now load the seed */ 77 85 LoadParam(root, "classid", this, SpawningPoint, setSpawningEntity) 78 .describe("sets the random position seed (variance in the spawning location around the position)")86 .describe("sets the class id of the entity to spawn") 79 87 .defaultValues(1, CL_WORLD_ENTITY); 80 88 } -
branches/network/src/world_entities/spawning_point.h
r6087 r6088 20 20 SpawningPoint (const Vector& position, float frequency, float seed, int classID, const World* world); 21 21 virtual ~SpawningPoint (); 22 void init(); 22 23 23 24 void loadParams(const TiXmlElement* root);
Note: See TracChangeset
for help on using the changeset viewer.