#include <SoccerTypes.h>
Collaboration diagram for SoccerCommand:
Definition at line 493 of file SoccerTypes.h.
|
This is a constructor for the SoccerCommand class. It creates a command using the passed arguments (with all default illegal values). Depending on the specified CommandT the parameters are used in different ways. See the method makeCommand for an explanation of these values.
Definition at line 447 of file SoccerTypes.C. References CMD_CHANGEVIEW, CMD_SAY, CommandT, commandType, dAngle, dPower, iTimes, makeCommand(), str, UnknownDoubleValue, va, VA_ILLEGAL, ViewAngleT, ViewQualityT, vq, and VQ_ILLEGAL. |
|
This is a constructor for the SoccerCommand when the commandType is a say message.
Definition at line 467 of file SoccerTypes.C. References CommandT, and makeCommand(). |
|
This method returns a command string that is understood by the server from a SoccerCommand. The resulting string is put in the second argument and returned by the method. A reference to ServerSettings is passed as the second argument to check whether the values in the SoccerCommand are legal.
Definition at line 617 of file SoccerTypes.C. References CMD_ATTENTIONTO, CMD_CATCH, CMD_CHANGEPLAYER, CMD_CHANGEVIEW, CMD_DASH, CMD_ILLEGAL, CMD_KICK, CMD_MOVE, CMD_SAY, CMD_SENSEBODY, CMD_TURN, CMD_TURNNECK, commandType, makeAttentionToCommand(), makeCatchCommand(), makeChangePlayerCommand(), makeChangeViewCommand(), makeDashCommand(), makeKickCommand(), makeMoveCommand(), makeSayCommand(), makeSenseBodyCommand(), makeTurnCommand(), makeTurnNeckCommand(), SS, and str. Referenced by ActHandler::sendCommand(), ActHandler::sendCommandDirect(), and ActHandler::sendCommands(). |
|
This method returns whether this SoccerCommand is illegal, that is the SoccerCommand hasn't been filled yet. This means that no command would be performed when this command is sent to the server.
Definition at line 605 of file SoccerTypes.C. References CMD_ILLEGAL, and commandType. Referenced by BasicPlayer::interceptScoringAttempt(). |
|
This method makes a attentionto command from a SoccerCommand and puts the result in str. Resulting string looks like: (attentionto opp|our dY). Where 'opp' is used when dX < 0 and 'our' otherwise. dY stands for the player number of the team we want to pay attention to. When dY equals -1.0 the command (attentionto off) is created. Enough space should be allocated for str.
Definition at line 862 of file SoccerTypes.C. References dX, dY, MAX_TEAMMATES, and str. Referenced by getCommandString(). |
|
This method makes a catch command from a SoccerCommand and puts the result in str. Resulting string looks like: (catch dAngle). Enough space should be allocated for str.
Definition at line 653 of file SoccerTypes.C. References dAngle, ServerSettings::getMaxMoment(), ServerSettings::getMinMoment(), SS, and str. Referenced by getCommandString(). |
|
This method makes a change_player_type command from a SoccerCommand and puts the result in str. Resulting string looks like: (change_player_type dX dY). Where dX stands for the teammate that should be changed and dY for the heterogenous player that it should become. Enough space should be allocated for str.
Definition at line 837 of file SoccerTypes.C. References dX, dY, MAX_HETERO_PLAYERS, MAX_TEAMMATES, and str. Referenced by getCommandString(). |
|
This method makes a change view command from a SoccerCommand and puts the result in str. Resulting string looks like: (change_view va vq). Enough space should be allocated for str.
Definition at line 672 of file SoccerTypes.C. References SoccerTypes::getViewAngleStr(), SoccerTypes::getViewQualityStr(), str, va, VA_ILLEGAL, vq, and VQ_ILLEGAL. Referenced by getCommandString(). |
|
This method creates a command for the command type CMD_SAY that accepts a string as parameter.
Definition at line 543 of file SoccerTypes.C. References CMD_SAY, CommandT, commandType, and str. |
|
This method creates a SoccerCommand for the command type CMD_CHANGEVIEW.
Definition at line 529 of file SoccerTypes.C. References CMD_CHANGEVIEW, CommandT, commandType, va, ViewAngleT, ViewQualityT, and vq. |
|
This method create a SoccerCommand from the specified command type and the parameters. The parameters have a different meaning depending on the given command type. Not all command types are listed, since the other command types need different parameters. So see the other overloaded methods for that.
Definition at line 489 of file SoccerTypes.C. References CMD_ATTENTIONTO, CMD_CATCH, CMD_CHANGEPLAYER, CMD_DASH, CMD_KICK, CMD_MOVE, CMD_TURN, CMD_TURNNECK, CommandT, commandType, dAngle, dPower, dX, dY, and UnknownDoubleValue. Referenced by Player::deMeer5_goalie(), Player::executeStringCommand(), and SoccerCommand(). |
|
This method makes a dash command from a SoccerCommand and puts the result in str. Resulting string looks like: (dash dPower). Enough space should be allocated for str.
Definition at line 694 of file SoccerTypes.C. References dPower, ServerSettings::getMaxPower(), ServerSettings::getMinPower(), SS, and str. Referenced by getCommandString(). |
|
This method makes a kick command from a SoccerCommand and puts the result in str. Resulting string looks like: (kick dPower dAngle). Enough space should be allocated for str.
Definition at line 716 of file SoccerTypes.C. References dAngle, dPower, ServerSettings::getMaxMoment(), ServerSettings::getMaxPower(), ServerSettings::getMinMoment(), ServerSettings::getMinPower(), SS, and str. Referenced by getCommandString(). |
|
This method makes a move command from a SoccerCommand and puts the result in str. Resulting string looks like: (move dX dY). Enough space should be allocated for str.
Definition at line 737 of file SoccerTypes.C. References dX, dY, PITCH_LENGTH, PITCH_MARGIN, PITCH_WIDTH, and str. Referenced by getCommandString(). |
|
This method makes a say command from a SoccerCommand and puts the result in str. Resulting string looks like: (say str). Enough space should be allocated for str.
Definition at line 760 of file SoccerTypes.C. References str. Referenced by getCommandString(). |
|
This method makes a sense_body command from a SoccerCommand and puts the result in str. Resulting string looks like: (sense_body). Enough space should be allocated for str.
Definition at line 777 of file SoccerTypes.C. References str. Referenced by getCommandString(). |
|
This method makes a turn command from a SoccerCommand and puts the result in str. Resulting string looks like: (turn dAngle). Enough space should be allocated for str.
Definition at line 789 of file SoccerTypes.C. References dAngle, ServerSettings::getMaxMoment(), ServerSettings::getMinMoment(), SS, and str. Referenced by getCommandString(). |
|
This method makes a turn_neck command from a SoccerCommand and puts the result in str. Resulting string looks like: (turn_neck dAngle). Enough space should be allocated for str.
Definition at line 811 of file SoccerTypes.C. References dAngle, ServerSettings::getMaxNeckMoment(), ServerSettings::getMinNeckMoment(), SS, and str. Referenced by getCommandString(). |
|
This method prints the current command to the specified output stream.
Definition at line 552 of file SoccerTypes.C. References CMD_ATTENTIONTO, CMD_CATCH, CMD_CHANGEPLAYER, CMD_CHANGEVIEW, CMD_DASH, CMD_ILLEGAL, CMD_KICK, CMD_MOVE, CMD_SAY, CMD_SENSEBODY, CMD_TURN, CMD_TURNNECK, commandType, dAngle, dPower, dX, dY, SoccerTypes::getViewAngleStr(), SoccerTypes::getViewQualityStr(), iTimes, str, time, va, and vq. Referenced by WorldModel::showQueuedCommands(). |
|
type of this command Definition at line 516 of file SoccerTypes.h. Referenced by Player::deMeer5(), ActHandler::emptyQueue(), Player::executeStringCommand(), getCommandString(), BasicPlayer::intercept(), WorldModel::isCollisionAfterDash(), isIllegal(), ActHandler::isQueueEmpty(), makeCommand(), WorldModel::predictStateAfterCommand(), WorldModel::processQueuedCommands(), ActHandler::putCommandInQueue(), ActHandler::sendCommandDirect(), ActHandler::sendCommands(), show(), WorldModel::showQueuedCommands(), SoccerCommand(), WorldModel::updateAgentAndBallAfterSense(), and WorldModel::WorldModel(). |
|
angle of this command (for turn,turn_neck) Definition at line 517 of file SoccerTypes.h. Referenced by Player::executeStringCommand(), makeCatchCommand(), makeCommand(), makeKickCommand(), makeTurnCommand(), makeTurnNeckCommand(), WorldModel::predictStateAfterCommand(), show(), and SoccerCommand(). |
|
power of this command (for kick,dash) Definition at line 518 of file SoccerTypes.h. Referenced by Player::deMeer5(), BasicPlayer::dribble(), Player::executeStringCommand(), makeCommand(), makeDashCommand(), makeKickCommand(), WorldModel::predictStateAfterCommand(), show(), and SoccerCommand(). |
|
x coordinate (for move) Definition at line 521 of file SoccerTypes.h. Referenced by Player::executeStringCommand(), makeAttentionToCommand(), makeChangePlayerCommand(), makeCommand(), makeMoveCommand(), WorldModel::predictStateAfterCommand(), and show(). |
|
y coordinate (for move) Definition at line 522 of file SoccerTypes.h. Referenced by Player::executeStringCommand(), makeAttentionToCommand(), makeChangePlayerCommand(), makeCommand(), makeMoveCommand(), WorldModel::predictStateAfterCommand(), and show(). |
|
how many cycles will command be sent in a row Definition at line 524 of file SoccerTypes.h. Referenced by Player::executeStringCommand(), ActHandler::sendCommands(), show(), and SoccerCommand(). |
|
ServerSettings are used to check ranges of command Definition at line 495 of file SoccerTypes.h. Referenced by getCommandString(), makeCatchCommand(), makeDashCommand(), makeKickCommand(), makeTurnCommand(), and makeTurnNeckCommand(). |
|
str (for say) Definition at line 523 of file SoccerTypes.h. Referenced by Player::executeStringCommand(), getCommandString(), makeAttentionToCommand(), makeCatchCommand(), makeChangePlayerCommand(), makeChangeViewCommand(), makeCommand(), makeDashCommand(), makeKickCommand(), makeMoveCommand(), makeSayCommand(), makeSenseBodyCommand(), makeTurnCommand(), makeTurnNeckCommand(), show(), and SoccerCommand(). |
|
command time, will be set by worldmodel Definition at line 515 of file SoccerTypes.h. Referenced by WorldModel::isQueuedActionPerformed(), WorldModel::processQueuedCommands(), show(), and WorldModel::updateAgentAndBallAfterSense(). |
|
view angle (for change_view) Definition at line 520 of file SoccerTypes.h. Referenced by Player::executeStringCommand(), makeChangeViewCommand(), makeCommand(), show(), and SoccerCommand(). |
|
view quality (for change_view) Definition at line 519 of file SoccerTypes.h. Referenced by Player::executeStringCommand(), makeChangeViewCommand(), makeCommand(), show(), and SoccerCommand(). |