#include <SoccerTypes.h>
Definition at line 528 of file SoccerTypes.h.
|
This method returns the BallStatus from the string that is passed as the first argument.
Definition at line 1801 of file SoccerTypes.C. References BallStatusT, BS_GOAL_LEFT, BS_GOAL_RIGHT, BS_ILLEGAL, BS_IN_FIELD, and BS_OUT_OF_FIELD. Referenced by SenseHandler::analyzeCheckBall(). |
|
This method returns the string representation of the BallStatus as is used in the Robocup Soccer Simulation (in_field, goal_left, goal_right or out_of_field).
Definition at line 1785 of file SoccerTypes.C. References BallStatusT, BS_GOAL_LEFT, BS_GOAL_RIGHT, BS_IN_FIELD, and BS_OUT_OF_FIELD. |
|
This method returns the string representation of a CommandT as is used in the Robocup Soccer Simulation
Definition at line 1722 of file SoccerTypes.C. References CMD_CATCH, CMD_CHANGEVIEW, CMD_DASH, CMD_ILLEGAL, CMD_KICK, CMD_MOVE, CMD_SAY, CMD_SENSEBODY, CMD_TURN, CMD_TURNNECK, and CommandT. |
|
This method returns the global angle of a lines on the field. The global angle differs for the left and right side. For both teams the line behind the opponent goal is seen with global angle 0. Only for the left team this is the right line and for the right team this is the left line.
Definition at line 1448 of file SoccerTypes.C. References AngDeg, VecPosition::normalizeAngle(), OBJECT_LINE_B, OBJECT_LINE_L, OBJECT_LINE_R, OBJECT_LINE_T, ObjectT, SIDE_RIGHT, SideT, and UnknownAngleValue. Referenced by WorldModel::getGlobalAngle(), and FixedObject::getGlobalAngle(). |
|
|
This method returns the object representing the opponent goal
Definition at line 1288 of file SoccerTypes.C. References OBJECT_GOAL_L, OBJECT_GOAL_R, OBJECT_ILLEGAL, ObjectT, SIDE_LEFT, SIDE_RIGHT, and SideT. Referenced by WorldModel::getPosOpponentGoal(). |
|
This method returns the half angle value that belongs to the ViewAngle that is given as the first argument (VA_NARROW, VA_NORMAL or VA_WIDE). The half view angle is returned since this makes it easier to check whether an object lies in the view cone (the global relative angle must be smaller than the half view angle.
Definition at line 1679 of file SoccerTypes.C. References AngDeg, VA_ILLEGAL, VA_NARROW, VA_NORMAL, VA_WIDE, and ViewAngleT. Referenced by WorldModel::removeGhosts(), and BasicPlayer::searchBall(). |
|
This method returns the index of an object relative to the first object in that set. The index is always 1 smaller than its number, so OBJECT_OPPONENT_1 will become 0. This can be used for indexing an array of objects.
Definition at line 1139 of file SoccerTypes.C. References OBJECT_FLAG_C, OBJECT_FLAG_L_T, OBJECT_GOAL_L, OBJECT_GOAL_R, OBJECT_LINE_L, OBJECT_LINE_T, OBJECT_OPPONENT_1, OBJECT_OPPONENT_11, OBJECT_TEAMMATE_1, OBJECT_TEAMMATE_11, and ObjectT. Referenced by WorldModel::getObjectPtrFromType(), getObjectStr(), WorldModel::logObjectInformation(), WorldModel::mapUnknownPlayers(), BasicPlayer::outplayOpponent(), and WorldModel::processNewObjectInfo(). |
|
This method returns an ObjectT that corresponds to the string passed as the first argument. The string representation equals the representation used in the Soccer Server. Format is with parenthesis, so possible arguments for str are (ball), (p Team_L 1), etc.
Definition at line 885 of file SoccerTypes.C. References getObjectStr(), Parse::gotoFirstOccurenceOf(), Parse::gotoFirstSpaceOrClosingBracket(), isGoalie(), OBJECT_BALL, OBJECT_FLAG_B_0, OBJECT_FLAG_B_L_10, OBJECT_FLAG_B_L_20, OBJECT_FLAG_B_L_30, OBJECT_FLAG_B_L_40, OBJECT_FLAG_B_L_50, OBJECT_FLAG_B_R_10, OBJECT_FLAG_B_R_20, OBJECT_FLAG_B_R_30, OBJECT_FLAG_B_R_40, OBJECT_FLAG_B_R_50, OBJECT_FLAG_C, OBJECT_FLAG_C_B, OBJECT_FLAG_C_T, OBJECT_FLAG_G_L_B, OBJECT_FLAG_G_L_T, OBJECT_FLAG_G_R_B, OBJECT_FLAG_G_R_T, OBJECT_FLAG_L_0, OBJECT_FLAG_L_B, OBJECT_FLAG_L_B_10, OBJECT_FLAG_L_B_20, OBJECT_FLAG_L_B_30, OBJECT_FLAG_L_T, OBJECT_FLAG_L_T_10, OBJECT_FLAG_L_T_20, OBJECT_FLAG_L_T_30, OBJECT_FLAG_P_L_B, OBJECT_FLAG_P_L_C, OBJECT_FLAG_P_L_T, OBJECT_FLAG_P_R_B, OBJECT_FLAG_P_R_C, OBJECT_FLAG_P_R_T, OBJECT_FLAG_R_0, OBJECT_FLAG_R_B, OBJECT_FLAG_R_B_10, OBJECT_FLAG_R_B_20, OBJECT_FLAG_R_B_30, OBJECT_FLAG_R_T, OBJECT_FLAG_R_T_10, OBJECT_FLAG_R_T_20, OBJECT_FLAG_R_T_30, OBJECT_FLAG_T_0, OBJECT_FLAG_T_L_10, OBJECT_FLAG_T_L_20, OBJECT_FLAG_T_L_30, OBJECT_FLAG_T_L_40, OBJECT_FLAG_T_L_50, OBJECT_FLAG_T_R_10, OBJECT_FLAG_T_R_20, OBJECT_FLAG_T_R_30, OBJECT_FLAG_T_R_40, OBJECT_FLAG_T_R_50, OBJECT_GOAL_L, OBJECT_GOAL_R, OBJECT_GOAL_UNKNOWN, OBJECT_ILLEGAL, OBJECT_LINE_B, OBJECT_LINE_L, OBJECT_LINE_R, OBJECT_LINE_T, OBJECT_OPPONENT_1, OBJECT_OPPONENT_10, OBJECT_OPPONENT_11, OBJECT_OPPONENT_2, OBJECT_OPPONENT_3, OBJECT_OPPONENT_4, OBJECT_OPPONENT_5, OBJECT_OPPONENT_6, OBJECT_OPPONENT_7, OBJECT_OPPONENT_8, OBJECT_OPPONENT_9, OBJECT_OPPONENT_UNKNOWN, OBJECT_PLAYER_UNKNOWN, OBJECT_TEAMMATE_1, OBJECT_TEAMMATE_10, OBJECT_TEAMMATE_11, OBJECT_TEAMMATE_2, OBJECT_TEAMMATE_3, OBJECT_TEAMMATE_4, OBJECT_TEAMMATE_5, OBJECT_TEAMMATE_6, OBJECT_TEAMMATE_7, OBJECT_TEAMMATE_8, OBJECT_TEAMMATE_9, OBJECT_TEAMMATE_UNKNOWN, OBJECT_UNKNOWN, ObjectT, and Parse::parseFirstInt(). Referenced by SenseHandler::analyzeSeeGlobalMessage(), and SenseHandler::analyzeSeeMessage(). |
|
This method returns the string that corresponds to a specific object. This string name is exactly the same as the (short) name of the RoboCup Simulation.
Definition at line 859 of file SoccerTypes.C. References getIndex(), isKnownPlayer(), OBJECT_BALL, OBJECT_FLAG_C, OBJECT_OPPONENT_UNKNOWN, OBJECT_PLAYER_UNKNOWN, OBJECT_TEAMMATE_UNKNOWN, OBJECT_UNKNOWN, ObjectNames, and ObjectT. Referenced by getObjectFromStr(), AgentObject::show(), BallObject::show(), PlayerObject::show(), and FixedObject::show(). |
|
This method returns the object type of an opponent with index iIndex. When iIndex equals 9 for example OBJECT_OPPONENT_10 is returned.
Definition at line 1168 of file SoccerTypes.C. References OBJECT_OPPONENT_1, and ObjectT. Referenced by SenseHandler::analyzePlayerMessage(), and WorldModel::WorldModel(). |
|
This method returns the object representing the own goal
Definition at line 1274 of file SoccerTypes.C. References OBJECT_GOAL_L, OBJECT_GOAL_R, OBJECT_ILLEGAL, ObjectT, SIDE_LEFT, SIDE_RIGHT, and SideT. Referenced by WorldModel::getPosOwnGoal(). |
|
This method returns the play mode from the referee message.
Definition at line 1511 of file SoccerTypes.C. References PlayModeT, PM_BEFORE_KICK_OFF, PM_CORNER_KICK_LEFT, PM_CORNER_KICK_RIGHT, PM_FREE_KICK_LEFT, PM_FREE_KICK_RIGHT, PM_FROZEN, PM_GOAL_KICK_LEFT, PM_GOAL_KICK_RIGHT, PM_GOAL_LEFT, PM_GOAL_RIGHT, PM_ILLEGAL, PM_KICK_IN_LEFT, PM_KICK_IN_RIGHT, PM_KICK_OFF_LEFT, PM_KICK_OFF_RIGHT, PM_OFFSIDE_LEFT, PM_OFFSIDE_RIGHT, PM_PLAY_ON, PM_QUIT, PM_TIME_OVER, REFC_BEFORE_KICK_OFF, REFC_CORNER_KICK_LEFT, REFC_CORNER_KICK_RIGHT, REFC_FOUL_LEFT, REFC_FOUL_RIGHT, REFC_FREE_KICK_LEFT, REFC_FREE_KICK_RIGHT, REFC_FROZEN, REFC_GOAL_KICK_LEFT, REFC_GOAL_KICK_RIGHT, REFC_GOAL_LEFT, REFC_GOAL_RIGHT, REFC_KICK_IN_LEFT, REFC_KICK_IN_RIGHT, REFC_KICK_OFF_LEFT, REFC_KICK_OFF_RIGHT, REFC_OFFSIDE_LEFT, REFC_OFFSIDE_RIGHT, REFC_PLAY_ON, REFC_QUIT, REFC_TIME_OVER, and RefereeMessageT. Referenced by SenseHandler::analyzeHearMessage(), and getPlayModeFromStr(). |
|
This method returns the play mode associated with a string.
Definition at line 1501 of file SoccerTypes.C. References getPlayModeFromRefereeMessage(), getRefereeMessageFromStr(), and PlayModeT. Referenced by SenseHandler::analyzeInitMessage(). |
|
This method returns the string representation of a PlayModeT as is used in the Robocup Soccer Simulation and also said by the referee.
Definition at line 1473 of file SoccerTypes.C. References PlayModeT, PM_BEFORE_KICK_OFF, PM_CORNER_KICK_LEFT, PM_CORNER_KICK_RIGHT, PM_FREE_KICK_LEFT, PM_FREE_KICK_RIGHT, PM_FROZEN, PM_GOAL_KICK_LEFT, PM_GOAL_KICK_RIGHT, PM_GOAL_LEFT, PM_GOAL_RIGHT, PM_ILLEGAL, PM_KICK_IN_LEFT, PM_KICK_IN_RIGHT, PM_KICK_OFF_LEFT, PM_KICK_OFF_RIGHT, PM_PLAY_ON, and PM_QUIT. Referenced by WorldModel::show(). |
|
This method returns the referee message from the string that is passed.
Definition at line 1585 of file SoccerTypes.C. References REFC_BEFORE_KICK_OFF, REFC_CORNER_KICK_LEFT, REFC_CORNER_KICK_RIGHT, REFC_DROP_BALL, REFC_FOUL_LEFT, REFC_FOUL_RIGHT, REFC_FREE_KICK_LEFT, REFC_FREE_KICK_RIGHT, REFC_GOAL_KICK_LEFT, REFC_GOAL_KICK_RIGHT, REFC_GOAL_LEFT, REFC_GOAL_RIGHT, REFC_GOALIE_CATCH_BALL_LEFT, REFC_GOALIE_CATCH_BALL_RIGHT, REFC_HALF_TIME, REFC_ILLEGAL, REFC_KICK_IN_LEFT, REFC_KICK_IN_RIGHT, REFC_KICK_OFF_LEFT, REFC_KICK_OFF_RIGHT, REFC_OFFSIDE_LEFT, REFC_OFFSIDE_RIGHT, REFC_PLAY_ON, REFC_TIME_EXTENDED, REFC_TIME_OVER, REFC_TIME_UP, REFC_TIME_UP_WITHOUT_A_TEAM, and RefereeMessageT. Referenced by SenseHandler::analyzeHearMessage(), and getPlayModeFromStr(). |
|
This method returns the string representation of a RefereeMessageT as is used in the Robocup Soccer Simulation and said by the referee.
Definition at line 1544 of file SoccerTypes.C. References REFC_BEFORE_KICK_OFF, REFC_CORNER_KICK_LEFT, REFC_CORNER_KICK_RIGHT, REFC_DROP_BALL, REFC_FOUL_LEFT, REFC_FOUL_RIGHT, REFC_FREE_KICK_LEFT, REFC_FREE_KICK_RIGHT, REFC_FROZEN, REFC_GOAL_KICK_LEFT, REFC_GOAL_KICK_RIGHT, REFC_GOAL_LEFT, REFC_GOAL_RIGHT, REFC_GOALIE_CATCH_BALL_LEFT, REFC_GOALIE_CATCH_BALL_RIGHT, REFC_HALF_TIME, REFC_ILLEGAL, REFC_KICK_IN_LEFT, REFC_KICK_IN_RIGHT, REFC_KICK_OFF_LEFT, REFC_KICK_OFF_RIGHT, REFC_OFFSIDE_LEFT, REFC_OFFSIDE_RIGHT, REFC_PLAY_ON, REFC_QUIT, REFC_TIME_EXTENDED, REFC_TIME_OVER, REFC_TIME_UP, REFC_TIME_UP_WITHOUT_A_TEAM, and RefereeMessageT. Referenced by SenseHandler::analyzeHearMessage(). |
|
This method returns the SideT from the string that is passed as the first argument.
Definition at line 1772 of file SoccerTypes.C. References SIDE_ILLEGAL, SIDE_LEFT, SIDE_RIGHT, and SideT. Referenced by SenseHandler::analyzeInitMessage(). |
|
This method returns the string representation of a SideT as is used in the Robocup Soccer Simulation (r or l).
Definition at line 1757 of file SoccerTypes.C. References SIDE_ILLEGAL, SIDE_LEFT, SIDE_RIGHT, and SideT. Referenced by WorldModel::show(). |
|
This method returns the object type of a teammate with index iIndex. When iIndex equals 3 for example OBJECT_TEAMMATE_4 is returned.
Definition at line 1159 of file SoccerTypes.C. References OBJECT_TEAMMATE_1, and ObjectT. Referenced by SenseHandler::analyzeInitMessage(), SenseHandler::analyzePlayerMessage(), and WorldModel::WorldModel(). |
|
This method returns et the view angle from the specified string
Definition at line 1661 of file SoccerTypes.C. References VA_ILLEGAL, VA_NARROW, VA_NORMAL, VA_WIDE, and ViewAngleT. Referenced by SenseHandler::analyzeSenseMessage(), and Player::executeStringCommand(). |
|
This method returns the string representation of a ViewAngleT as is used in the Robocup Soccer Simulation
Definition at line 1646 of file SoccerTypes.C. References VA_ILLEGAL, VA_NARROW, VA_NORMAL, VA_WIDE, and ViewAngleT. Referenced by SoccerCommand::makeChangeViewCommand(), and SoccerCommand::show(). |
|
This method returns the view quality from the string that is passed as the first argument
Definition at line 1711 of file SoccerTypes.C. References ViewQualityT, VQ_HIGH, VQ_ILLEGAL, and VQ_LOW. Referenced by SenseHandler::analyzeSenseMessage(), and Player::executeStringCommand(). |
|
This method returns the string representation of a ViewQualityT as is used in the Robocup Soccer Simulation
Definition at line 1696 of file SoccerTypes.C. References ViewQualityT, VQ_HIGH, VQ_ILLEGAL, and VQ_LOW. Referenced by SoccerCommand::makeChangeViewCommand(), and SoccerCommand::show(). |
|
This method determines whether object o is the ball
Definition at line 1266 of file SoccerTypes.C. References OBJECT_BALL, and ObjectT. Referenced by WorldModel::getObjectPtrFromType(), WorldModel::processNewObjectInfo(), WorldModel::processPerfectHearInfo(), and WorldModel::processSeeGlobalInfo(). |
|
This method determines whether object o is a flag.
Definition at line 1196 of file SoccerTypes.C. References OBJECT_FLAG_C, OBJECT_FLAG_L_T, OBJECT_GOAL_L, OBJECT_GOAL_R, and ObjectT. Referenced by WorldModel::getGlobalPosition(), getGlobalPositionFlag(), WorldModel::getObjectPtrFromType(), isInSet(), and WorldModel::processNewObjectInfo(). |
|
This method determines whether object o is a goal
Definition at line 1213 of file SoccerTypes.C. References OBJECT_GOAL_L, OBJECT_GOAL_R, and ObjectT. Referenced by WorldModel::getGlobalPosition(), and getGlobalPositionFlag(). |
|
This method determines whether object o is a goalie = teammate number is 1 (for now)
Definition at line 1258 of file SoccerTypes.C. References OBJECT_OPPONENT_1, OBJECT_TEAMMATE_1, and ObjectT. Referenced by getObjectFromStr(). |
|
This method returns a boolean indicating whether the object o is part of the object set o_s. OBJECT_TEAMMATE_1 as o and OBJECT_SET_TEAMMATES will return for example the value true.
Definition at line 1179 of file SoccerTypes.C. References isFlag(), isKnownPlayer(), isLine(), isOpponent(), isPlayer(), isTeammate(), OBJECT_SET_FLAGS, OBJECT_SET_ILLEGAL, OBJECT_SET_LINES, OBJECT_SET_OPPONENTS, OBJECT_SET_PLAYERS, OBJECT_SET_TEAMMATES, ObjectSetT, and ObjectT. Referenced by WorldModel::iterateObjectNext(). |
|
This method determines whether object o is a known player, thus containing a number
Definition at line 1248 of file SoccerTypes.C. References OBJECT_OPPONENT_1, OBJECT_OPPONENT_11, OBJECT_TEAMMATE_1, OBJECT_TEAMMATE_11, and ObjectT. Referenced by WorldModel::getObjectPtrFromType(), getObjectStr(), isInSet(), isPlayer(), WorldModel::mapUnknownPlayers(), WorldModel::predictPosAfterNrCycles(), WorldModel::processNewObjectInfo(), WorldModel::processPerfectHearInfo(), WorldModel::processUnsureHearInfo(), and WorldModel::updateDynamicObjectAfterSee(). |
|
This method determines whether object o is a line.
Definition at line 1205 of file SoccerTypes.C. References OBJECT_LINE_L, OBJECT_LINE_T, and ObjectT. Referenced by WorldModel::getGlobalAngle(), WorldModel::getObjectPtrFromType(), isInSet(), and WorldModel::processNewObjectInfo(). |
|
This method determines whether object o is an opponent
Definition at line 1229 of file SoccerTypes.C. References OBJECT_OPPONENT_1, OBJECT_OPPONENT_UNKNOWN, and ObjectT. Referenced by isInSet(), WorldModel::mapUnknownPlayers(), and WorldModel::processUnsureHearInfo(). |
|
This method determines whether object o is a player without checking whether its number or side is available.
Definition at line 1238 of file SoccerTypes.C. References isKnownPlayer(), OBJECT_OPPONENT_UNKNOWN, OBJECT_PLAYER_UNKNOWN, OBJECT_TEAMMATE_UNKNOWN, and ObjectT. Referenced by isInSet(), WorldModel::processNewObjectInfo(), and WorldModel::processSeeGlobalInfo(). |
|
This method returns return true when argument is a primary action (action that can only be sent once a cycle). This is the case for kick, dash, move, turn and catch commands.
Definition at line 1746 of file SoccerTypes.C. References CMD_CATCH, CMD_DASH, CMD_KICK, CMD_MOVE, CMD_TURN, and CommandT. Referenced by ActHandler::putCommandInQueue(). |
|
This method determines whether object o is a teammate
Definition at line 1221 of file SoccerTypes.C. References OBJECT_TEAMMATE_1, OBJECT_TEAMMATE_UNKNOWN, and ObjectT. Referenced by WorldModel::getObjectPtrFromType(), WorldModel::isBallInOurPossesion(), isInSet(), WorldModel::logObjectInformation(), WorldModel::mapUnknownPlayers(), and WorldModel::processUnsureHearInfo(). |