Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 2, 2010, 10:34:07 PM (14 years ago)
Author:
jo
Message:

Various successful changes. But the part I commented out in punishPlayer(PlayerInfo* player) causes crashes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/lastmanstanding/src/orxonox/gametypes/LastManStanding.h

    r7596 r7605  
    5858            std::map<PlayerInfo*, float> playerDelayTime_; //!< Stores each Player's delay time.
    5959            std::map<PlayerInfo*, bool> inGame_; //!< Indicates each Player's state.
    60             virtual void spawnDeadPlayersIfRequested(); //!< Prevents dead players to respawn
     60            bool noPunishment;
     61            bool hardPunishment;
     62            float punishDamageRate;
     63            virtual void spawnDeadPlayersIfRequested(); //!< Prevents dead players to respawn.
     64            virtual int getMinLives(); //!< Returns minimum of each player's lives; players with 0 lives are skipped;
    6165
    6266        public:
     
    7579
    7680            const int playerGetLives(PlayerInfo* player); //!< getFunction for the map "playerLives_".
    77             void killPlayer(PlayerInfo* player); //!< Function in order to kill a player. Punishment for hiding longer than "timeRemaining".
     81            void punishPlayer(PlayerInfo* player); //!< Function in order to kill a player. Punishment for hiding longer than "timeRemaining".
    7882            void tick (float dt); //!< used to end the game
    7983    };
Note: See TracChangeset for help on using the changeset viewer.