Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 1, 2006, 8:06:39 PM (19 years ago)
Author:
bensch
Message:

renamed newclassid to classid and newobjectlist to objectlist

File:
1 edited

Legend:

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

    r9709 r9715  
    5050#include "class_id.h"
    5151
    52 NewObjectListDefinitionID(MultiplayerTeamDeathmatch, CL_MULTIPLAYER_TEAM_DEATHMATCH);
     52ObjectListDefinitionID(MultiplayerTeamDeathmatch, CL_MULTIPLAYER_TEAM_DEATHMATCH);
    5353CREATE_FACTORY(MultiplayerTeamDeathmatch);
    5454/**
     
    301301}
    302302
    303 NewClassID MultiplayerTeamDeathmatch::getPlayableClassId( int userId, int team )
     303ClassID MultiplayerTeamDeathmatch::getPlayableClassId( int userId, int team )
    304304{
    305305  if ( team == TEAM_NOTEAM || team == TEAM_SPECTATOR )
    306     return NewObjectListBase::retrieveIdentity("Spectator");
     306    return ObjectListBase::retrieveIdentity("Spectator");
    307307
    308308  if ( team == 0 || team == 1 )
    309     return NewObjectListBase::retrieveIdentity("TurbineHover");
     309    return ObjectListBase::retrieveIdentity("TurbineHover");
    310310
    311311  assert( false );
     
    313313
    314314
    315 std::string MultiplayerTeamDeathmatch::getPlayableModelFileName( int userId, int team, const NewClassID& classId )
     315std::string MultiplayerTeamDeathmatch::getPlayableModelFileName( int userId, int team, const ClassID& classId )
    316316{
    317317  if (classId == CL_TURBINE_HOVER)
     
    325325}
    326326
    327 std::string MultiplayerTeamDeathmatch::getPlayableModelTextureFileName( int userId, int team, const NewClassID& classId )
     327std::string MultiplayerTeamDeathmatch::getPlayableModelTextureFileName( int userId, int team, const ClassID& classId )
    328328{
    329329  if ( classId == CL_FPS_PLAYER )
     
    338338}
    339339
    340 float MultiplayerTeamDeathmatch::getPlayableScale( int userId, int team, const NewClassID& classId )
    341 {
    342   if ( classId == NewObjectListBase::retrieveIdentity(CL_FPS_PLAYER))
     340float MultiplayerTeamDeathmatch::getPlayableScale( int userId, int team, const ClassID& classId )
     341{
     342  if ( classId == ObjectListBase::retrieveIdentity(CL_FPS_PLAYER))
    343343  {
    344344    return 10.0f;
     
    358358    teamScore[i] = 0;
    359359
    360   for (NewObjectList<PlayerStats>::const_iterator it = PlayerStats::objectList().begin();
     360  for (ObjectList<PlayerStats>::const_iterator it = PlayerStats::objectList().begin();
    361361       it != PlayerStats::objectList().end();
    362362       ++it)
     
    382382    playersInTeam[i] = 0;
    383383
    384   for (NewObjectList<PlayerStats>::const_iterator it = PlayerStats::objectList().begin();
     384  for (ObjectList<PlayerStats>::const_iterator it = PlayerStats::objectList().begin();
    385385       it != PlayerStats::objectList().end();
    386386       ++it)
     
    442442void MultiplayerTeamDeathmatch::handleTeamChanges( )
    443443{
    444   for (NewObjectList<PlayerStats>::const_iterator it = PlayerStats::objectList().begin();
     444  for (ObjectList<PlayerStats>::const_iterator it = PlayerStats::objectList().begin();
    445445       it != PlayerStats::objectList().end();
    446446       ++it)
     
    458458
    459459  //now serve player who want join a random team
    460   for (NewObjectList<PlayerStats>::const_iterator it = PlayerStats::objectList().begin();
     460  for (ObjectList<PlayerStats>::const_iterator it = PlayerStats::objectList().begin();
    461461       it != PlayerStats::objectList().end();
    462462       ++it)
     
    491491
    492492
    493   NewClassID       playableClassId  = getPlayableClassId( userId, stats.getPreferedTeamId() );
     493  ClassID       playableClassId  = getPlayableClassId( userId, stats.getPreferedTeamId() );
    494494  std::string   playableModel    = getPlayableModelFileName( userId, stats.getPreferedTeamId(), playableClassId );
    495495  std::string   playableTexture  = getPlayableModelTextureFileName( userId, stats.getPreferedTeamId(), playableClassId );
     
    813813  std::vector<SpawningPoint*> spList;
    814814
    815   for (NewObjectList<SpawningPoint>::const_iterator it = SpawningPoint::objectList().begin();
     815  for (ObjectList<SpawningPoint>::const_iterator it = SpawningPoint::objectList().begin();
    816816       it != SpawningPoint::objectList().end();
    817817       ++it)
     
    825825  if ( spList.size() == 0 )
    826826  {
    827     for (NewObjectList<SpawningPoint>::const_iterator it = SpawningPoint::objectList().begin();
     827    for (ObjectList<SpawningPoint>::const_iterator it = SpawningPoint::objectList().begin();
    828828         it != SpawningPoint::objectList().end();
    829829         ++it)
Note: See TracChangeset for help on using the changeset viewer.