Changeset 2860 for code/trunk/src/orxonox/objects/controllers/PongAI.h
- Timestamp:
- Mar 27, 2009, 7:11:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/controllers/PongAI.h
r2857 r2860 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include <list> 35 34 36 #include "Controller.h" 35 37 #include "objects/Tickable.h" 38 #include "util/Math.h" 36 39 37 40 namespace orxonox … … 41 44 public: 42 45 PongAI(BaseObject* creator); 43 virtual ~PongAI() {}46 virtual ~PongAI(); 44 47 45 48 void setConfigValues(); … … 52 55 protected: 53 56 void calculateRandomOffset(); 57 void calculateBallEndPosition(); 58 void move(char direction); 59 void delayedMove(); 54 60 55 61 PongBall* ball_; 62 Vector2 ballDirection_; 63 float ballEndPosition_; 56 64 float randomOffset_; 57 65 float relHysteresisOffset_; 58 66 float strength_; 67 68 // Timer<PongAI> randomOffsetTimer_; 69 // Timer<PongAI> ballEndPositionTimer_; 70 std::list<std::pair<Timer<PongAI>*, char> > reactionTimers_; 71 char movement_; 59 72 }; 60 73 }
Note: See TracChangeset
for help on using the changeset viewer.