Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 14, 2010, 11:02:57 PM (14 years ago)
Author:
jo
Message:

Some cleanup. There's still a nasty bug.

File:
1 edited

Legend:

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

    r7485 r7542  
    6060            float timeRemaining; //!< Each player has a certain time where he or she has to hit an opponent or will be punished.
    6161            std::map<PlayerInfo*, float> timeToAct_; //!< Each player's time till she/he will be punished is stored here.
    62             virtual void spawnDeadPlayersIfRequested();
     62            virtual void spawnDeadPlayersIfRequested(); //!< Prevents dead players to respawn
    6363
    6464        public:
     
    6767            void setConfigValues(); //!< Makes values configurable.
    6868
    69             virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = 0); //!< If a player shoot's an opponet, his punishment countdown will be resetted.
    70             virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = 0); //!< Manages each lives.
     69            virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = 0); //!< If a player shoot's an opponent, his punishment countdown will be resetted.
     70            virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = 0); //!< Manages each players lives.
    7171
    7272            virtual void start(); //!< Sends a start message.
     
    7878            virtual void pawnKilled(Pawn* victim, Pawn* killer = 0);
    7979
    80             const int playerGetLives(PlayerInfo* player);
    81             void killPlayer(PlayerInfo* player);
    82             void tick (float dt);// used to end the game
     80            const int playerGetLives(PlayerInfo* player); //!< getFunction for the map "playerLives_"
     81            void killPlayer(PlayerInfo* player); //!< Function in order to kill a player. Punishment for hiding longer than "timeRemaining".
     82            void tick (float dt); //!< used to end the game
    8383    };
    8484}
Note: See TracChangeset for help on using the changeset viewer.