Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2009, 7:04:10 PM (15 years ago)
Author:
landauf
Message:

some small adjustments in all the new gametype classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gametypes/src/orxonox/objects/gametypes/TeamBaseMatch.h

    r3019 r3020  
    2121 *
    2222 *   Author:
    23  *      Fabian 'x3n' Landau
     23 *      Val Mikos
    2424 *   Co-authors:
    25  *      Val Mikos
     25 *      ...
    2626 *
    2727 */
     
    3232#include "OrxonoxPrereqs.h"
    3333
    34 #include <vector>
    3534#include <set>
    36 
    3735#include "TeamDeathmatch.h"
    3836#include "tools/Timer.h"
    3937
    40 
    41 
    4238namespace orxonox
    4339{
    44     class TeamBaseMatchBase;
    45 
    46 
    4740    class _OrxonoxExport TeamBaseMatch : public TeamDeathmatch
    4841    {
    4942        public:
    5043            TeamBaseMatch(BaseObject* creator);
    51            
    52             // if class closes, close everything           
    5344            virtual ~TeamBaseMatch() {}
    54            
    55            
    56             // set Base positions with XML
    57             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    58                        
     45
    5946            virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = 0);
     47            virtual bool allowPawnDamage(Pawn* victim, Pawn* originator);
    6048
    61             virtual bool allowPawnDamage(Pawn* victim, Pawn* originator);
    62 
    63 
    64 
    65             // give information about the state of a base
    66             // (this should be pretty useless atm)
    67 //            virtual int baseState(Base);
    68            
    69             virtual void playerScored(PlayerInfo* player);
     49            virtual void playerScored(PlayerInfo* player);
    7050            virtual void showPoints();
    7151            virtual void endGame();
    72            
     52
    7353            void addBase(TeamBaseMatchBase* base);
    7454            TeamBaseMatchBase* getBase(unsigned int index) const;
    7555
    7656            void addTeamPoints(int team, int points);
    77            
    78            
    79            
    80            
     57
    8158        protected:
    8259            void winPoints();
    8360
    84 
    85             bool pawnsAreInTheSameTeam(Pawn* pawn1, TeamBaseMatchBase* base);
     61            bool pawnsAreInTheSameTeam(Pawn* pawn1, TeamBaseMatchBase* base);
    8662            using TeamDeathmatch::pawnsAreInTheSameTeam;
    8763
     
    8965            Timer<TeamBaseMatch> scoreTimer_;
    9066            Timer<TeamBaseMatch> outputTimer_;
    91            
     67
    9268            //points for each team
    9369            int pointsTeam1_;
Note: See TracChangeset for help on using the changeset viewer.