1 #ifndef __ROBOPET_PLAYER_H__
2 #define __ROBOPET_PLAYER_H__
4 #include "movingObject.h"
6 using RP::MovingObject
;
9 class Player
: public MovingObject
18 inline double getCurrentAngle() const { return _current_angle
; }
19 inline double getFutureAngle() const { return _future_angle
; }
20 inline double getDeltaAngle() const { return _delta_angle
; }
22 inline Role
getRole() const { return _role
; }
24 inline double getDisplacementWithBall() const { return _displacement_with_ball
; }
26 inline int getDriblerIntensity() { return _dribler
; }
27 inline int getKickerIntensity() { return _kicker
; }
29 inline int getId() { return _id
; }
32 void setCurrentAngle( double newCurrentAngle
);
33 void setFutureAngle( double newFutureAngle
);
34 void setDeltaAngle( double newDeltaAngle
);
36 void setRole( Role newRole
);
38 void setDisplacementWithBall( double newDisplacementWithBall
) ;
40 void setDriblerIntensity(int intensity
);
41 void setKickerIntensity(int intensity
);
46 double calcDeltaAngle();
48 inline bool isDribling() { return _dribler
> 0; }
49 inline bool isKicking() { return _kicker
> 0; }
51 Player
& operator=(const Player
& other
);
54 double _current_angle
, _future_angle
, _delta_angle
;
57 int _kicker
, _dribler
, _id
;
59 double _displacement_with_ball
;
62 #endif //__ROBOPET_PLAYER_H__