Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8798 in orxonox.OLD for branches/network/src/world_entities


Ignore:
Timestamp:
Jun 26, 2006, 3:48:47 PM (19 years ago)
Author:
rennerc
Message:

network changes

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

Legend:

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

    r8068 r8798  
    5959{
    6060  this->setClassID(CL_SPAWNING_POINT, "SpawningPoint");
     61 
     62  this->teamId = -1;
    6163}
    6264
     
    8183  LoadParam(root, "delay", this, SpawningPoint, setSpawningDelay)
    8284      .describe("sets the delay of the spawning point");
     85     
     86  /* load teamId */
     87  LoadParam(root, "teamId", this, SpawningPoint, setTeamId)
     88      .describe("sets teamId");
    8389
    8490
  • branches/network/src/world_entities/spawning_point.h

    r8068 r8798  
    5050    /** sets the spawning point mode @param mode: the mode */
    5151    void SpawningPoint::setSpawningMode(int mode) { this->mode = (SpawningPointMode)mode; }
     52   
     53    inline int getTeamId(){ return this->teamId; }
     54    inline void setTeamId( int teamId ){ this->teamId = teamId; }
    5255
    5356    void pushEntity(WorldEntity* entity, float delay = 0);
     
    7275    float                           localTimer;                     //!< the local timer
    7376    float                           seed;                           //!< the random seed of the position
     77    int                             teamId;                         //!< only spawn players of this team
    7478    ClassID                         classid;                        //!< the classid of the entity to spawn
    7579    SpawningPointMode               mode;                           //!< the mode of the spawning point
Note: See TracChangeset for help on using the changeset viewer.