Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6086 in orxonox.OLD for branches/network


Ignore:
Timestamp:
Dec 13, 2005, 1:23:55 PM (19 years ago)
Author:
patrick
Message:

network: loadparams for the spawning point

Location:
branches/network/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/spawning_point.cc

    r6084 r6086  
    1616
    1717#include "spawning_point.h"
    18 
     18#include "load_param.h"
    1919
    2020
     
    5252SpawningPoint::~SpawningPoint ()
    5353{}
     54
     55
     56/**
     57 * loads the WorldEntity Specific Parameters.
     58 * @param root: the XML-Element to load the Data From
     59 */
     60void 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}
    5471
    5572
  • branches/network/src/world_entities/spawning_point.h

    r6084 r6086  
    1111
    1212class World;
     13class TiXmlElement;
    1314
    1415//! The spawning point for world entities
     
    1920    SpawningPoint (const Vector& position, float frequency, float seed, int classID, const World* world);
    2021    virtual ~SpawningPoint ();
     22
     23    void loadParams(const TiXmlElement* root);
    2124
    2225    void setSpawningEntity(int classID);
Note: See TracChangeset for help on using the changeset viewer.