5 #ifndef WAK_GAME_VARS_H
6 #define WAK_GAME_VARS_H
9 #include <walk_and_kick/wak_common.h>
12 namespace walk_and_kick
33 static bool ballTargetTypeValid(
int type) {
return (type > BTT_UNKNOWN && type < BTT_COUNT); }
34 static bool ballTargetTypeValid(BTType type) {
return ballTargetTypeValid((
int) type); }
35 static char ballTargetTypeChar(BTType type) {
if(ballTargetTypeValid(type))
return BallTargetTypeChar[type];
else return BallTargetTypeChar[BTT_UNKNOWN]; }
36 static const std::string& ballTargetTypeName(BTType type) {
if(ballTargetTypeValid(type))
return BallTargetTypeName[type];
else return BallTargetTypeName[BTT_UNKNOWN]; }
38 static const char BallTargetTypeChar[BTT_COUNT];
39 static const std::string BallTargetTypeName[BTT_COUNT];
49 static const std::string& footSelectionName(FootSelection foot) {
if(foot < 0)
return FootSelectionName[0];
else if(foot > 0)
return FootSelectionName[2];
else return FootSelectionName[1]; }
51 static const std::string FootSelectionName[3];
64 char ballTargetTypeChar()
const {
return ballTargetTypeChar(ballTargetType); }
65 const std::string& ballTargetTypeName()
const {
return ballTargetTypeName(ballTargetType); }
66 bool suggestLeftFoot()
const {
return (suggestFoot < 0); }
67 bool suggestRightFoot()
const {
return (suggestFoot > 0); }
68 bool noSuggestedFoot()
const {
return (suggestFoot == 0); }
71 int forceBehStateByID;
72 FootSelection suggestFoot;
73 bool dribbleIfPossible;
75 DiveDirection diveIfPossible;
78 float ballTargetWedge;
79 BTType ballTargetType;
An interface class for encapsulating all of the data that the walk and kick game states should comman...
Definition: wak_game_vars.h:21