Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9494 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Jul 27, 2006, 10:44:28 AM (18 years ago)
Author:
bensch
Message:

merged the proxy back

Location:
trunk/src/util
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/Makefile.am

    r9406 r9494  
    2626                        animation/animation_player.cc \
    2727                        \
    28                         track/pilot_node.cc \
    29                         \
    30                         network_stats_widget.cc
     28                        track/pilot_node.cc
    3129
    3230#                       track/track_manager.cc \
     
    5452                        animation/t_animation.h \
    5553                        \
    56                         track/pilot_node.h \
    57                         \
    58                         network_stats_widget.h
    59 
     54                        track/pilot_node.h
    6055
    6156#                       track/track_manager.h \
  • trunk/src/util/game_rules.cc

    r9406 r9494  
    8787void GameRules::registerKill(const Kill& kill)
    8888{
    89   if ( SharedNetworkData::getInstance()->isClient() )
     89  if ( SharedNetworkData::getInstance()->isClient() || SharedNetworkData::getInstance()->isProxyServerActive())
    9090    return;
    9191
  • trunk/src/util/multiplayer_team_deathmatch.cc

    r9406 r9494  
    152152      box->setAbsCoor2D( 300, 100 );
    153153
    154       OrxGui::GLGuiPushButton * buttonSpectator = new OrxGui::GLGuiPushButton("Spectator");
    155       box->pack( buttonSpectator );
    156       buttonSpectator->released.connect(this, &MultiplayerTeamDeathmatch::onButtonSpectator);
    157 
    158       OrxGui::GLGuiPushButton * buttonRandom = new OrxGui::GLGuiPushButton("Random");
    159       box->pack( buttonRandom );
    160       buttonRandom->released.connect(this, &MultiplayerTeamDeathmatch::onButtonRandom);
    161 
    162       OrxGui::GLGuiPushButton * buttonTeam0 = new OrxGui::GLGuiPushButton("Blue Team");
    163       box->pack( buttonTeam0 );
    164       buttonTeam0->released.connect(this, &MultiplayerTeamDeathmatch::onButtonTeam0);
    165 
    166       OrxGui::GLGuiPushButton * buttonTeam1 = new OrxGui::GLGuiPushButton("Red Team");
    167       box->pack( buttonTeam1 );
    168       buttonTeam1->released.connect(this, &MultiplayerTeamDeathmatch::onButtonTeam1);
     154      if( SharedNetworkData::getInstance()->isClient() ||  SharedNetworkData::getInstance()->isProxyServerActive())
     155      {
     156        OrxGui::GLGuiPushButton * buttonSpectator = new OrxGui::GLGuiPushButton("Spectator");
     157        box->pack( buttonSpectator );
     158        buttonSpectator->released.connect(this, &MultiplayerTeamDeathmatch::onButtonSpectator);
     159
     160        OrxGui::GLGuiPushButton * buttonRandom = new OrxGui::GLGuiPushButton("Random");
     161        box->pack( buttonRandom );
     162        buttonRandom->released.connect(this, &MultiplayerTeamDeathmatch::onButtonRandom);
     163
     164        OrxGui::GLGuiPushButton * buttonTeam0 = new OrxGui::GLGuiPushButton("Blue Team");
     165        box->pack( buttonTeam0 );
     166        buttonTeam0->released.connect(this, &MultiplayerTeamDeathmatch::onButtonTeam0);
     167
     168        OrxGui::GLGuiPushButton * buttonTeam1 = new OrxGui::GLGuiPushButton("Red Team");
     169        box->pack( buttonTeam1 );
     170        buttonTeam1->released.connect(this, &MultiplayerTeamDeathmatch::onButtonTeam1);
     171      }
     172      else
     173      {
     174        OrxGui::GLGuiText* text = new OrxGui::GLGuiText();
     175        text->setText("Server Mode: not able to play at this node");
     176        box->pack( text);
     177      }
     178
    169179
    170180      if ( bShowTeamChange )
     
    204214  assignPlayable();
    205215
    206   if ( SharedNetworkData::getInstance()->isClient() )
     216  if ( SharedNetworkData::getInstance()->isClient() || SharedNetworkData::getInstance()->isProxyServerActive())
    207217    return;
    208218
     
    268278void MultiplayerTeamDeathmatch::checkGameRules()
    269279{
    270   if ( SharedNetworkData::getInstance()->isClient() )
     280  if ( SharedNetworkData::getInstance()->isClient() || SharedNetworkData::getInstance()->isProxyServerActive())
    271281    return;
    272282
     
    296306
    297307  if ( team == 0 || team == 1 )
    298     return CL_FPS_PLAYER;
     308    return CL_TURBINE_HOVER;
    299309
    300310  assert( false );
     
    303313std::string MultiplayerTeamDeathmatch::getPlayableModelFileName( int userId, int team, ClassID classId )
    304314{
     315  if (classId == CL_TURBINE_HOVER)
     316   return "models/ships/hoverglider_mainbody.obj";
    305317  if ( team == 0 )
    306318    return "models/creatures/doom_guy.md2";
Note: See TracChangeset for help on using the changeset viewer.