Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8772 in orxonox.OLD for branches/network


Ignore:
Timestamp:
Jun 25, 2006, 10:26:54 AM (18 years ago)
Author:
rennerc
Message:

removed old deathScreen from MultiplayerTeamDeathmatch

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

Legend:

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

    r8739 r8772  
    7272  this->table = NULL;
    7373  this->statsBox = NULL;
    74 
    75   this->deathScreen = new ImagePlane();
    76   this->deathScreen->setSize(State::getResX()/4.0, State::getResY()/4.0);
    77   this->deathScreen->setAbsCoor2D(State::getResX()/2.0f, State::getResY()/2.0f);
    78   this->deathScreen->setVisibility(false);
    7974
    8075  this->localPlayer = State::getPlayer();
     
    10398MultiplayerTeamDeathmatch::~MultiplayerTeamDeathmatch()
    10499{
    105   if( this->deathScreen)
    106     delete this->deathScreen;
    107  
    108100  unsubscribeEvent( ES_GAME, SDLK_o );
    109101  unsubscribeEvent( ES_GAME, SDLK_TAB );
     
    136128      .describe("sets the maximal kills for winning condition");
    137129
    138   LoadParam(root, "death-screen-image", this, MultiplayerTeamDeathmatch, setDeathScreen)
    139       .describe("sets the death screen image");
    140  
    141130  LoadParam(root, "num-teams", this, MultiplayerTeamDeathmatch, setNumTeams)
    142131      .describe("sets number of teams");
     
    145134
    146135
    147 
    148 void MultiplayerTeamDeathmatch::setDeathScreen(const std::string& imageName)
    149 {
    150   if( this->deathScreen)
    151     this->deathScreen->setTexture(imageName);
    152 }
    153 
    154 
    155 
    156136/**
    157137 * called when the player enters the game
     
    161141{
    162142  this->bLocalPlayerDead = false;
    163   this->deathScreen->setVisibility(false);
    164143}
    165144
     
    172151{
    173152  this->bLocalPlayerDead = true;
    174   this->deathScreen->setVisibility(true);
    175153}
    176154
  • branches/network/src/util/multiplayer_team_deathmatch.h

    r8739 r8772  
    5050    inline void setDeathPenaltyTimeout(float time) { this->deathTimeout = time; }
    5151    inline void setMaxKills(int kills) { this->maxKills = kills; }
    52     void setDeathScreen(const std::string& imageName);
    5352   
    5453    inline void setNumTeams( int numTeams ){ this->numTeams = numTeams; }
     
    7372
    7473    std::map<int,int>  teamScore;                  //!< team score
    75 
    76     ImagePlane*        deathScreen;                //!< the death screen
    7774
    7875    int                currentGameState;           //!< game state
Note: See TracChangeset for help on using the changeset viewer.