Changeset 3086 for code/trunk/src/orxonox/objects/worldentities/pawns
- Timestamp:
- May 27, 2009, 1:44:48 AM (16 years ago)
- Location:
- code/trunk/src/orxonox/objects/worldentities/pawns
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/worldentities/pawns/Pawn.h
r3084 r3086 147 147 class _OrxonoxExport PawnListener : virtual public OrxonoxClass 148 148 { 149 friend class Pawn;150 151 149 public: 152 150 PawnListener(); 153 151 virtual ~PawnListener() {} 154 152 155 protected:156 153 virtual void destroyedPawn(Pawn* pawn) = 0; 157 154 }; -
code/trunk/src/orxonox/objects/worldentities/pawns/TeamBaseMatchBase.cc
r3033 r3086 48 48 gametype->addBase(this); 49 49 } 50 51 this->setRadarObjectShape(RadarViewable::Triangle); 50 52 } 51 53 … … 70 72 case BaseState::uncontrolled: 71 73 default: 72 colour = ColourValue(0.5, 0.5, 0. 7, 1.0);74 colour = ColourValue(0.5, 0.5, 0.5, 1.0); 73 75 break; 74 76 } … … 84 86 } 85 87 } 88 89 this->setRadarObjectColour(colour); 90 91 // Call this so bots stop shooting at the base after they converted it 92 for (ObjectList<PawnListener>::iterator it = ObjectList<PawnListener>::begin(); it != ObjectList<PawnListener>::end(); ++it) 93 it->destroyedPawn(this); 86 94 } 87 95 }
Note: See TracChangeset
for help on using the changeset viewer.