Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7037 in orxonox.OLD for trunk/src/util/multiplayer_team_deathmatch.h


Ignore:
Timestamp:
Feb 6, 2006, 12:05:23 AM (18 years ago)
Author:
patrick
Message:

trunk: game rules definitions added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/multiplayer_team_deathmatch.h

    r7035 r7037  
    22/*!
    33 * @file multiplayer_team_deathmatch.h
    4  * Defines game rules for this game
     4 * Defines game rules for team deathmatch games
     5 *
     6 * currently there are only two teams supported
    57 */
    68
     
    3335    void draw();
    3436
     37    inline void setDeathPenaltyTimeout(float time) { this->deathTimeout = time; }
     38    inline void setMaxKills(int kills) { this->maxKills = kills; }
    3539
    3640  protected:
    3741    virtual void checkGameRules();
     42
     43  private:
     44    bool               bLocalPlayerDead;           //!< true if the local player is dead
     45    float              deathTimeout;               //!< timeout a player cannot play if he/she dies
     46    int                maxKills;                   //!< max kills for winning condition
     47
     48    int                teamAKills;                 //!< kills of team A
     49    int                teamBKills;                 //!< kills of team B
    3850};
    3951
Note: See TracChangeset for help on using the changeset viewer.