- Timestamp:
- May 23, 2009, 7:04:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gametypes/src/orxonox/objects/gametypes/TeamBaseMatch.h
r3019 r3020 21 21 * 22 22 * Author: 23 * Fabian 'x3n' Landau23 * Val Mikos 24 24 * Co-authors: 25 * Val Mikos25 * ... 26 26 * 27 27 */ … … 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include <vector>35 34 #include <set> 36 37 35 #include "TeamDeathmatch.h" 38 36 #include "tools/Timer.h" 39 37 40 41 42 38 namespace orxonox 43 39 { 44 class TeamBaseMatchBase;45 46 47 40 class _OrxonoxExport TeamBaseMatch : public TeamDeathmatch 48 41 { 49 42 public: 50 43 TeamBaseMatch(BaseObject* creator); 51 52 // if class closes, close everything53 44 virtual ~TeamBaseMatch() {} 54 55 56 // set Base positions with XML 57 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 58 45 59 46 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = 0); 47 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator); 60 48 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); 70 50 virtual void showPoints(); 71 51 virtual void endGame(); 72 52 73 53 void addBase(TeamBaseMatchBase* base); 74 54 TeamBaseMatchBase* getBase(unsigned int index) const; 75 55 76 56 void addTeamPoints(int team, int points); 77 78 79 80 57 81 58 protected: 82 59 void winPoints(); 83 60 84 85 bool pawnsAreInTheSameTeam(Pawn* pawn1, TeamBaseMatchBase* base); 61 bool pawnsAreInTheSameTeam(Pawn* pawn1, TeamBaseMatchBase* base); 86 62 using TeamDeathmatch::pawnsAreInTheSameTeam; 87 63 … … 89 65 Timer<TeamBaseMatch> scoreTimer_; 90 66 Timer<TeamBaseMatch> outputTimer_; 91 67 92 68 //points for each team 93 69 int pointsTeam1_;
Note: See TracChangeset
for help on using the changeset viewer.