Changeset 6086 in orxonox.OLD for branches/network
- Timestamp:
- Dec 13, 2005, 1:23:55 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
r6084 r6086 16 16 17 17 #include "spawning_point.h" 18 18 #include "load_param.h" 19 19 20 20 … … 52 52 SpawningPoint::~SpawningPoint () 53 53 {} 54 55 56 /** 57 * loads the WorldEntity Specific Parameters. 58 * @param root: the XML-Element to load the Data From 59 */ 60 void SpawningPoint::loadParams(const TiXmlElement* root) 61 { 62 // Do the PNode loading stuff 63 static_cast<PNode*>(this)->loadParams(root); 64 65 // Model Loading 66 LoadParam(root, "model", this, WorldEntity, loadModel) 67 .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)") 68 .defaultValues(3, NULL, 1.0f, 0); 69 70 } 54 71 55 72 -
branches/network/src/world_entities/spawning_point.h
r6084 r6086 11 11 12 12 class World; 13 class TiXmlElement; 13 14 14 15 //! The spawning point for world entities … … 19 20 SpawningPoint (const Vector& position, float frequency, float seed, int classID, const World* world); 20 21 virtual ~SpawningPoint (); 22 23 void loadParams(const TiXmlElement* root); 21 24 22 25 void setSpawningEntity(int classID);
Note: See TracChangeset
for help on using the changeset viewer.