Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6088 in orxonox.OLD


Ignore:
Timestamp:
Dec 13, 2005, 1:44:40 PM (18 years ago)
Author:
patrick
Message:

network: more constructor work, loadparam completed

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

Legend:

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

    r6087 r6088  
    2828  this->frequency = 0.5f;
    2929  this->seed = 0.0f;
    30   this->countDown = 0.0f;
     30
     31  this->init();
    3132}
    3233
     
    4344  this->classID = classID;
    4445  this->world = world;
     46
     47  this->init();
     48}
     49
     50
     51void SpawningPoint::init()
     52{
    4553  this->countDown = 0.0f;
    4654}
     
    7684  /* now load the seed */
    7785  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")
    7987      .defaultValues(1, CL_WORLD_ENTITY);
    8088}
  • branches/network/src/world_entities/spawning_point.h

    r6087 r6088  
    2020    SpawningPoint (const Vector& position, float frequency, float seed, int classID, const World* world);
    2121    virtual ~SpawningPoint ();
     22    void init();
    2223
    2324    void loadParams(const TiXmlElement* root);
Note: See TracChangeset for help on using the changeset viewer.