Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8802 in orxonox.OLD for trunk/src/world_entities/spawning_point.h


Ignore:
Timestamp:
Jun 26, 2006, 4:46:25 PM (18 years ago)
Author:
patrick
Message:

merged the network branche back to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/spawning_point.h

    r8068 r8802  
    88#define _SPAWNING_POINT
    99
    10 #include "world_entity.h"
     10#include "playable.h"
    1111
    12 #include <map>
     12#include <list>
    1313
    1414class World;
    1515class TiXmlElement;
    1616
     17struct QueueEntry
     18{
     19  float respawnTime;
     20  WorldEntity * entity;
     21  OM_LIST list;
     22};
    1723
    1824//!< used to indicate what type of objects are spawned by this spawning point
     
    5056    /** sets the spawning point mode @param mode: the mode */
    5157    void SpawningPoint::setSpawningMode(int mode) { this->mode = (SpawningPointMode)mode; }
     58   
     59    inline int getTeamId(){ return this->teamId; }
     60    inline void setTeamId( int teamId ){ this->teamId = teamId; }
    5261
    5362    void pushEntity(WorldEntity* entity, float delay = 0);
     
    7281    float                           localTimer;                     //!< the local timer
    7382    float                           seed;                           //!< the random seed of the position
     83    int                             teamId;                         //!< only spawn players of this team
    7484    ClassID                         classid;                        //!< the classid of the entity to spawn
    7585    SpawningPointMode               mode;                           //!< the mode of the spawning point
    76     std::map<WorldEntity*, float>   queue;                          //!< queue of waiting WorldEntities to be spawned
     86    std::list<QueueEntry>           queue;                          //!< queue of waiting WorldEntities to be spawned
    7787    bool                            bSpawning;                      //!< flag to indicate if this spawning point is active or not
    7888};
Note: See TracChangeset for help on using the changeset viewer.