Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2005, 1:10:45 AM (18 years ago)
Author:
patrick
Message:

network: branche comiles again

File:
1 edited

Legend:

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

    r6088 r6093  
    1717
    1818  public:
    19     SpawningPoint (const Vector& absCoordinate = Vector(0.0, 0.0, 0.0), const World* world);
    20     SpawningPoint (const Vector& position, float frequency, float seed, int classID, const World* world);
     19    SpawningPoint (World* world, const Vector& absCoordinate = Vector(0.0, 0.0, 0.0));
     20    SpawningPoint (const Vector& position, float frequency, float seed, ClassID classID, World* world);
    2121    virtual ~SpawningPoint ();
    2222    void init();
     
    2525
    2626    /**  sets the entity that is going to be spawned by this point @param classID: the id from the class_id.h file */
    27     void SpawningPoint::setSpawningEntity(int classID) { this->classID = classID; }
     27    void SpawningPoint::setSpawningEntity(ClassID classID) { this->classID = classID; }
    2828    /** sets the frequency with which the point is going to spawn entities (1/sec) @param frequency: the frequency */
    2929    void SpawningPoint::setSpawningFrequency(float frequency) { this->frequency = frequency; }
     
    4040    float                countDown;                      //!< the timer that counts down until the next spawn
    4141    float                seed;                           //!< the random seed of the position
    42     int                  classID;                        //!< the classid of the entity to spawn
    43 
     42    ClassID              classID;                        //!< the classid of the entity to spawn
     43    World*               world;                          //!< reference to the world it belongs to (or in the future: the object manager)
    4444
    4545};
Note: See TracChangeset for help on using the changeset viewer.