#include <iostream.h>
#include "Geometry.h"
#include "ServerSettings.h"
Include dependency graph for SoccerTypes.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
File: SenseHandler.h Project: Robocup Soccer Simulation Team: UvA Trilearn 2001 Authors: Jelle Kok and Remco de Boer Created: 28/11/2000 Last Revision: 06/01/2002 Contents: This file contains the different enumerations and constants that are important in the Soccer Server. Furthermore it contains the class SoccerCommand which is used to denote the different possible soccer commands and the class SoccerTypes that contains all kind of static methods to translate text strings that are received from the server into the soccer types (=enumerations) that are defined here. Finally it contains the Time class which holds a two-tuple that represents the time in the soccer server.
Definition in file SoccerTypes.h.
|
default teamname for opponent Definition at line 74 of file SoccerTypes.h. Referenced by WorldModel::show(). |
|
default teamname for own team Definition at line 73 of file SoccerTypes.h. Referenced by AgentObject::show(), BallObject::show(), PlayerObject::show(), and FixedObject::show(). |
|
nr of commands that can be stored Definition at line 67 of file SoccerTypes.h. Referenced by ActHandler::emptyQueue(), WorldModel::isQueuedActionPerformed(), WorldModel::processQueuedCommands(), ActHandler::putCommandInQueue(), ActHandler::sendCommands(), WorldModel::showQueuedCommands(), and WorldModel::updateAgentAndBallAfterSense(). |
|
maximum number of flags on field Definition at line 71 of file SoccerTypes.h. Referenced by WorldModel::resetTimeObjects(), and WorldModel::WorldModel(). |
|
Maximum number of formations Definition at line 65 of file SoccerTypes.h. Referenced by Formations::show(). |
|
Maximum number of hetero players Definition at line 66 of file SoccerTypes.h. Referenced by SoccerCommand::makeChangePlayerCommand(). |
|
maximum number of lines on field Definition at line 72 of file SoccerTypes.h. Referenced by WorldModel::resetTimeObjects(), and WorldModel::WorldModel(). |
|
maximum message size from server Definition at line 68 of file SoccerTypes.h. Referenced by SenseHandler::handleMessagesFromServer(), Player::handleStdin(), main(), Player::Player(), ActHandler::sendCommand(), ActHandler::sendCommandDirect(), and ActHandler::sendCommands(). |
|
Maximum number of opponents Definition at line 62 of file SoccerTypes.h. Referenced by WorldModel::getDirectionOfWidestAngle(), WorldModel::getOffsideX(), WorldModel::getOppGoalieType(), WorldModel::isCollisionAfterDash(), WorldModel::mapUnknownPlayers(), WorldModel::resetTimeObjects(), Player::sayWorldStatus(), WorldModel::show(), WorldModel::showObjects(), and WorldModel::WorldModel(). |
|
Maximum number of player types (in formation!) Definition at line 63 of file SoccerTypes.h. Referenced by Formations::readFormations(), and FormationTypeInfo::show(). |
|
maximum size of say message Definition at line 69 of file SoccerTypes.h. Referenced by Player::sayWorldStatus(). |
|
maximum length of teamname Definition at line 70 of file SoccerTypes.h. Referenced by main(), AgentObject::show(), BallObject::show(), PlayerObject::show(), and FixedObject::show(). |
|
Maximum number of teammates Definition at line 61 of file SoccerTypes.h. Referenced by WorldModel::getOwnGoalieType(), WorldModel::isCollisionAfterDash(), SoccerCommand::makeChangePlayerCommand(), WorldModel::mapUnknownPlayers(), Formations::readFormations(), WorldModel::resetTimeObjects(), Player::sayWorldStatus(), WorldModel::show(), FormationTypeInfo::show(), WorldModel::showObjects(), and WorldModel::WorldModel(). |
|
length of the penalty area Definition at line 78 of file SoccerTypes.h. Referenced by Player::deMeer5_goalie(), and SoccerTypes::getGlobalPositionFlag(). |
|
width of the penalty area Definition at line 79 of file SoccerTypes.h. Referenced by Player::deMeer5_goalie(), SoccerTypes::getGlobalPositionFlag(), WorldModel::getOuterPositionInField(), WorldModel::isInOwnPenaltyArea(), and WorldModel::isInTheirPenaltyArea(). |
|
penalty line of the opponent team Definition at line 80 of file SoccerTypes.h. Referenced by BasicPlayer::clearBall(), WorldModel::getOppGoalieType(), WorldModel::getOuterPositionInField(), WorldModel::getOwnGoalieType(), Player::getStrategicPosition(), and WorldModel::isBallHeadingToGoal(). |
|
length of the pitch Definition at line 75 of file SoccerTypes.h. Referenced by Player::amIAgentToSaySomething(), BasicPlayer::clearBall(), BasicPlayer::defendGoalLine(), Player::deMeer5(), Player::deMeer5_goalie(), BasicPlayer::dribble(), SoccerTypes::getGlobalPositionFlag(), WorldModel::getOppGoalieType(), WorldModel::getOuterPositionInField(), WorldModel::getOwnGoalieType(), WorldModel::isBallHeadingToGoal(), SoccerCommand::makeMoveCommand(), and BasicPlayer::moveToPosAlongLine(). |
|
margin next to the pitch Definition at line 77 of file SoccerTypes.h. Referenced by SoccerTypes::getGlobalPositionFlag(), and SoccerCommand::makeMoveCommand(). |
|
width of the pitch Definition at line 76 of file SoccerTypes.h. Referenced by BasicPlayer::clearBall(), BasicPlayer::dribble(), SoccerTypes::getGlobalPositionFlag(), WorldModel::getOuterPositionInField(), Formations::getStrategicPosition(), and SoccerCommand::makeMoveCommand(). |
|
The ActionT enumeration contains different (high-level) actions.
Definition at line 349 of file SoccerTypes.h. |
|
The BallStatus enumeration contains the status of the ball. This is returned when the coach has issued the check_ball message.
Definition at line 340 of file SoccerTypes.h. Referenced by SoccerTypes::getBallStatusFromStr(), SoccerTypes::getBallStatusStr(), WorldModel::getCheckBallStatus(), and WorldModel::setCheckBallStatus(). |
|
The ClearBallT enumeration contains different clear ball possibilities.
Definition at line 390 of file SoccerTypes.h. Referenced by BasicPlayer::clearBall(). |
|
The CommandT enumeration contains the different types for the SoccerCommand that are possible.
Definition at line 295 of file SoccerTypes.h. Referenced by SoccerTypes::getCommandStr(), WorldModel::getNrOfCommands(), SoccerTypes::isPrimaryCommand(), SoccerCommand::makeCommand(), WorldModel::setNrOfCommands(), and SoccerCommand::SoccerCommand(). |
|
The DribbleT enumeration contains different dribble possibilities.
Definition at line 375 of file SoccerTypes.h. Referenced by BasicPlayer::dribble(). |
|
The FormationT enumeration contains the different formation types that are defined.
Definition at line 329 of file SoccerTypes.h. Referenced by Formations::Formations(), Formations::getFormation(), FormationTypeInfo::getFormationType(), Formations::setFormation(), and FormationTypeInfo::setFormationType(). |
|
The MarkT enumeration contains different marking techniques.
Definition at line 367 of file SoccerTypes.h. Referenced by BasicPlayer::getMarkingPosition(), and BasicPlayer::markOpponent(). |
|
The ObjectSetT enumerations holds the different object sets, which consists of one or multiple ObjectT types.
Definition at line 198 of file SoccerTypes.h. Referenced by WorldModel::getClosestInSetTo(), WorldModel::getClosestRelativeInSet(), WorldModel::getFastestInSetTo(), WorldModel::getFirstEmptySpotInSet(), WorldModel::getFurthestInSetTo(), WorldModel::getFurthestRelativeInSet(), WorldModel::getNrInSetInCircle(), WorldModel::getNrInSetInCone(), WorldModel::getNrInSetInRectangle(), WorldModel::getSecondClosestInSetTo(), WorldModel::getSecondClosestRelativeInSet(), SoccerTypes::isInSet(), WorldModel::iterateObjectNext(), and WorldModel::iterateObjectStart(). |
|
ObjectT is an enumeration of all possible objects that are part of the RoboCup soccer simulation. The class SoccerTypes contains different methods to easily work with these objects and convert them to text strings and text strings to ObjectT.
Definition at line 102 of file SoccerTypes.h. Referenced by SenseHandler::analyzePlayerMessage(), SenseHandler::analyzeSeeGlobalMessage(), SenseHandler::analyzeSeeMessage(), WorldModel::calculateAngleAgentWithPos(), WorldModel::calculatePosAgentWith2Flags(), WorldModel::calculateStateAgent(), WorldModel::calculateStateAgent2(), WorldModel::calculateStatePlayer(), WorldModel::calculateVelocityDynamicObject(), WorldModel::checkParticlesAgent(), BasicPlayer::directPass(), WorldModel::getAgentObjectType(), WorldModel::getClosestInSetTo(), WorldModel::getClosestRelativeInSet(), WorldModel::getConfidence(), WorldModel::getDirectionOfWidestAngle(), BasicPlayer::getEndSpeedForPass(), WorldModel::getFastestInSetTo(), WorldModel::getFirstEmptySpotInSet(), WorldModel::getFurthestInSetTo(), WorldModel::getFurthestRelativeInSet(), WorldModel::getGlobalAngle(), SoccerTypes::getGlobalAngleLine(), WorldModel::getGlobalBodyAngle(), WorldModel::getGlobalNeckAngle(), WorldModel::getGlobalPosition(), SoccerTypes::getGlobalPositionFlag(), WorldModel::getGlobalVelocity(), SoccerTypes::getGoalOpponent(), SoccerTypes::getIndex(), BasicPlayer::getMarkingPosition(), WorldModel::getNrInSetInCircle(), WorldModel::getNrInSetInCone(), WorldModel::getNrInSetInRectangle(), SoccerTypes::getObjectFromStr(), WorldModel::getObjectPtrFromType(), SoccerTypes::getObjectStr(), WorldModel::getOffsideX(), WorldModel::getOppGoalieType(), SoccerTypes::getOpponentObjectFromIndex(), SoccerTypes::getOwnGoal(), WorldModel::getOwnGoalieType(), WorldModel::getRelativeAngle(), WorldModel::getRelativeDistance(), WorldModel::getRelativePosition(), WorldModel::getSecondClosestInSetTo(), WorldModel::getSecondClosestRelativeInSet(), SoccerTypes::getTeammateObjectFromIndex(), WorldModel::getTimeGlobalAngles(), WorldModel::getTimeGlobalPosition(), WorldModel::getTimeGlobalVelocity(), WorldModel::getTimeLastSeen(), Object::getType(), WorldModel::initParticlesAgent(), SoccerTypes::isBall(), WorldModel::isBallInOurPossesion(), WorldModel::isConfidenceGood(), WorldModel::isConfidenceVeryGood(), SoccerTypes::isFlag(), SoccerTypes::isGoal(), SoccerTypes::isGoalie(), WorldModel::isInOwnPenaltyArea(), SoccerTypes::isInSet(), WorldModel::isInTheirPenaltyArea(), WorldModel::isKnownPlayer(), SoccerTypes::isKnownPlayer(), SoccerTypes::isLine(), WorldModel::isOnside(), SoccerTypes::isOpponent(), WorldModel::isOpponentAtAngle(), SoccerTypes::isPlayer(), SoccerTypes::isTeammate(), WorldModel::isVisible(), WorldModel::iterateObjectNext(), WorldModel::iterateObjectStart(), BasicPlayer::leadingPass(), WorldModel::logObjectInformation(), WorldModel::mapUnknownPlayers(), BasicPlayer::markOpponent(), BasicPlayer::outplayOpponent(), WorldModel::predictNrCyclesToObject(), WorldModel::predictNrCyclesToPoint(), WorldModel::predictPosAfterNrCycles(), WorldModel::processNewObjectInfo(), WorldModel::processPerfectHearInfo(), WorldModel::processSeeGlobalInfo(), WorldModel::processUnsureHearInfo(), Player::sayWorldStatus(), WorldModel::setAgentObjectType(), WorldModel::setIsKnownPlayer(), Object::setType(), WorldModel::show(), BasicPlayer::throughPass(), BasicPlayer::turnBodyToObject(), BasicPlayer::turnNeckToObject(), BasicPlayer::turnWithBallTo(), WorldModel::updateAfterSeeMessage(), WorldModel::updateAfterSenseMessage(), WorldModel::updateDynamicObjectAfterSee(), WorldModel::updateDynamicObjectForNextCycle(), WorldModel::updateObjectRelativeFromGlobal(), and WorldModel::updateRelativeFromGlobal(). |
|
The PassT enumeration contains different passing possibilities.
Definition at line 383 of file SoccerTypes.h. Referenced by BasicPlayer::directPass(). |
|
The PlayerT enumeration contains the different playertypes that are defined in a formation. This should not be confused with the later introducted player_types in soccerserver 7.xx that denotes the different possible heterogeneous players. A player type in the context PlayerT denotes the kind of player (midfielder, attacker) on the field. Its role on the pitch.
Definition at line 316 of file SoccerTypes.h. Referenced by Formations::getPlayerType(), FormationTypeInfo::getPlayerType(), PlayerTypeInfo::getPlayerType(), PlayerTypeInfo::PlayerTypeInfo(), Formations::readFormations(), FormationTypeInfo::setPlayerType(), PlayerTypeInfo::setPlayerType(), and PlayerTypeInfo::setValues(). |
|
The PlayModeT enumeration contains all playmodes of the soccer playmode. The associated string values can be returned using the methods in the SoccerTypes class
Definition at line 211 of file SoccerTypes.h. Referenced by SenseHandler::analyzeHearMessage(), WorldModel::getPlayMode(), SoccerTypes::getPlayModeFromRefereeMessage(), SoccerTypes::getPlayModeFromStr(), SoccerTypes::getPlayModeStr(), and WorldModel::setPlayMode(). |
|
The RefereeT enumeration contains all messages that the referee can sent. The SoccerTypes class contains different methods to convert these messages to the corresponding playmode.
Definition at line 237 of file SoccerTypes.h. Referenced by SenseHandler::analyzeHearMessage(), SoccerTypes::getPlayModeFromRefereeMessage(), SoccerTypes::getRefereeMessageFromStr(), SoccerTypes::getRefereeMessageStr(), and WorldModel::processCatchedBall(). |
|
The SideT enumeration contains the two sides Definition at line 287 of file SoccerTypes.h. Referenced by BasicPlayer::clearBall(), FixedObject::getGlobalAngle(), SoccerTypes::getGlobalAngleLine(), FixedObject::getGlobalPosition(), SoccerTypes::getGlobalPositionFlag(), SoccerTypes::getGoalOpponent(), SoccerTypes::getOwnGoal(), WorldModel::getSide(), SoccerTypes::getSideFromStr(), SoccerTypes::getSideStr(), and WorldModel::setSide(). |
|
The ViewAngleT enumeration contains the different view angles that are possible for a player
Definition at line 271 of file SoccerTypes.h. Referenced by SenseHandler::analyzeSenseMessage(), WorldModel::getAgentViewAngle(), SoccerTypes::getHalfViewAngleValue(), SoccerTypes::getViewAngleFromStr(), SoccerTypes::getViewAngleStr(), SoccerCommand::makeCommand(), WorldModel::processNewAgentInfo(), AgentObject::setPositionDifference(), AgentObject::show(), and SoccerCommand::SoccerCommand(). |
|
The ViewQualityT enumeration contains the different view qualities possible for a player.
Definition at line 280 of file SoccerTypes.h. Referenced by SenseHandler::analyzeSenseMessage(), WorldModel::getAgentViewQuality(), AgentObject::getViewQuality(), SoccerTypes::getViewQualityFromStr(), SoccerTypes::getViewQualityStr(), SoccerCommand::makeCommand(), WorldModel::processNewAgentInfo(), AgentObject::setViewAngle(), and SoccerCommand::SoccerCommand(). |
|
indicates unknown angle Definition at line 89 of file SoccerTypes.h. Referenced by AgentObject::AgentObject(), SenseHandler::analyzeSeeGlobalMessage(), WorldModel::calculateAngleAgentWithPos(), WorldModel::calculateStateAgent(), WorldModel::checkParticlesBall(), WorldModel::getDirectionOfWidestAngle(), WorldModel::getGlobalAngle(), SoccerTypes::getGlobalAngleLine(), WorldModel::getGlobalBodyAngle(), WorldModel::getGlobalNeckAngle(), WorldModel::initParticlesBall(), PlayerObject::PlayerObject(), and WorldModel::processNewObjectInfo(). |
|
|
indicates unknown int Definition at line 90 of file SoccerTypes.h. Referenced by SenseHandler::analyzeSeeMessage(). |
|
indicates unknown message nr Definition at line 92 of file SoccerTypes.h. |
|
indicates unknown time Definition at line 91 of file SoccerTypes.h. Referenced by SenseHandler::analyzeSeeMessage(), WorldModel::getTimeGlobalPosition(), and WorldModel::getTimeGlobalVelocity(). |