src/PlayerActionCG.h

Go to the documentation of this file.
00001 #ifndef PLAYERACTIONCG_H_
00002 #define PLAYERACTIONCG_H_
00003 
00004 
00005 typedef enum { INTERCEPT=0, LEADING_PASS_TO, MOVE_TO, DRIBBLE, CLEAR_BALL, SCORE, MOVE_TO_STRAT_POS, NO_ACTION } PlayerActionTypeCG;
00006 
00007 typedef enum { CENTER=0, N, NW, W, SW, S, SE, E, NE, NO_DIRECTION } DirCG;
00008 
00009 typedef enum { ACTIVE_PASSER=0, ACTIVE_INTERCEPTOR, RECEIVER, PASSIVE, GOALIE, NO_ROLE } RoleCG;
00010 
00011 #define POSSIBLE_PLAYER_DIRECTIONS_CG_NO 9
00012 #define POSSIBLE_PLAYER_ACTION_TYPES_CG_NO 7
00013 
00014 class PlayerActionCG
00015 {
00016 public:
00017         PlayerActionCG();
00018         
00019         PlayerActionTypeCG getActionType();
00020         
00021         void setActionType(PlayerActionTypeCG actionType);
00022         
00023         DirCG getDirection();
00024         
00025         void setDirection(DirCG direction);
00026         
00027         int getTeammateIndex();
00028         
00029         void setTeammateIndex(int teammateIndex);
00030         
00031 private:
00032         // typ akcie
00033         PlayerActionTypeCG actionType;
00034         
00035         // v pripade ak je to PASS_TO je urceny smer nahravky
00036         DirCG direction;
00037         
00038         // index spoluhraca, ktoreho sa akcia tyka
00039         // mozne hodnoty: <1,10>
00040         int teammateIndex;
00041 };
00042 
00043 #endif

Generated on Thu Apr 26 22:45:27 2007 for GangOfSix(GOS)-RoboCupTeamProject by  doxygen 1.5.1-p1