Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2010, 5:01:54 PM (14 years ago)
Author:
jo
Message:

With additional tutorial messages in order to explain how the gametype works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/dynamicmatch/src/orxonox/gametypes/Dynamicmatch.h

    r6848 r6921  
    4747            bool notEnoughKillers;
    4848            bool notEnoughChasers;
     49
     50            //three different parties   
     51            int chaser;
     52            int piggy;
     53            int killer;
     54
    4955            virtual void evaluatePlayerParties();
    5056            int getParty(PlayerInfo* player);
    5157            void setPlayerColour(PlayerInfo* player);//own function
    5258            void setConfigValues();//done
     59           
     60            bool friendlyfire; //goal: player can switch it on/off
     61            bool tutorial; //goal: new players recieve messages how the new gametype works - later it can be switched off.
     62           
    5363            virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = 0); //ok - score function and management of parties
    5464            virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = 0); //ok - simple
     
    5969            virtual bool playerLeft(PlayerInfo* player);
    6070            virtual bool playerChangedName(PlayerInfo* player);//unchanged
    61             virtual void instructions();
    62             virtual void furtherInstructions();
     71           
     72            /*virtual void instructions();
     73            virtual void furtherInstructions();*/
    6374            virtual void rewardPig();
    6475            void resetSpeedFactor(WeakPtr<Engine>* ptr); 
    6576            void tick (float dt);// used to end the game
    6677            SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const;
    67             //three different parties   
    68             int chaser;
    69             int piggy;
    70             int killer;
    71                
    72             bool friendlyfire; //goal: player can switch it on/off
    73             bool tutorial; //goal: new players recieve messages how the new gametype works - later it can be switched off.
     78           
    7479        protected:
    75                  
    76                  
     80
    7781            std::map< PlayerInfo*, int > playerParty_; //player's parties are recorded here
    7882            std::vector<ColourValue> partyColours_; //aus TeamDeathmatch
     
    8286            bool gameEnded_; // true if game is over
    8387            int timesequence_; //used for countdown
    84             Timer callInstructions_;
     88            //Timer callInstructions_;
    8589    };
    8690}
Note: See TracChangeset for help on using the changeset viewer.