Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9455 in orxonox.OLD for branches


Ignore:
Timestamp:
Jul 25, 2006, 2:16:40 PM (18 years ago)
Author:
bensch
Message:

high dynamic loading of network entities improoved

Location:
branches/proxy/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/util/multiplayer_team_deathmatch.cc

    r9416 r9455  
    306306
    307307  if ( team == 0 || team == 1 )
    308     return CL_FPS_PLAYER;
     308    return CL_TURBINE_HOVER;
    309309
    310310  assert( false );
     
    313313std::string MultiplayerTeamDeathmatch::getPlayableModelFileName( int userId, int team, ClassID classId )
    314314{
     315  if (classId == CL_TURBINE_HOVER)
     316   return "models/ships/hoverglider_mainbody.obj";
    315317  if ( team == 0 )
    316318    return "models/creatures/doom_guy.md2";
  • branches/proxy/src/world_entities/spawning_point.cc

    r9452 r9455  
    201201 * Just override this function with whatever you want to be drawn.
    202202 */
    203 void SpawningPoint::draw()
     203void SpawningPoint::draw() const
    204204{
    205205}
  • branches/proxy/src/world_entities/spawning_point.h

    r9008 r9455  
    5050    virtual void loadParams(const TiXmlElement* root);
    5151
    52     inline int getTeamId(){ return this->teamId; }
    53     inline void setTeamId( int teamId ){ this->teamId = teamId; }
     52    inline int getTeamId() const { return this->teamId; }
     53    inline void setTeamId( int teamId ) { this->teamId = teamId; }
    5454
    5555    void pushEntity(Playable* entity, float delay = 0);
     
    6363
    6464    virtual void tick(float dt);
    65     virtual void draw();
     65    virtual void draw() const;
    6666
    6767
    6868  private:
    6969    void spawn(Playable* entity);
    70    
     70
    7171    void sendRespawnMessage( int uniqueId );
    7272    static bool respawnMessageHandler( MessageId messageId, byte * data, int dataLength, void * someData, int userId );
Note: See TracChangeset for help on using the changeset viewer.