Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RS::BasicCommandStrategy Class Reference

Inheritance diagram for RS::BasicCommandStrategy:

Inheritance graph
[legend]
Collaboration diagram for RS::BasicCommandStrategy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void updateAfterCommand (WorldModel &world, ServerCommand *cmd) const
 This function is called when we have executed a command.


Detailed Description

Unit:
Framework/strategy
Revision
1.4
Author
s02davro
Date
2003/10/14 18:06:01

Definition at line 72 of file BasicCommandStrategy.h.


Member Function Documentation

void RS::BasicCommandStrategy::updateAfterCommand WorldModel   world,
ServerCommand   cmd
const [virtual]
 

This function is called when we have executed a command.

Overload it to make changes in the worldModel based on this new information.

Implements RS::CommandStrategy.

Definition at line 90 of file BasicCommandStrategy.cc.

References RS::abs(), RS::AngleDeg, RS::cos(), RS::Strategy::facts, RS::Float, RS::WorldModel::getAgent(), RS::TurnNeckCommand::getAngle(), RS::TurnCommand::getAngle(), RS::KickCommand::getAngle(), RS::WorldModel::getBall(), RS::PlayerObject::getBodyDirection(), RS::MoveCommand::getDestination(), RS::AgentObject::getEffort(), RS::WorldModel::getLastPlayMode(), RS::PlayerObject::getNeckDirection(), RS::MobileObject::getPosition(), RS::KickCommand::getPower(), RS::DashCommand::getPower(), RS::MobileObject::getSpeed(), RS::AgentObject::getStamina(), RS::CoordPoint< Float >::getX(), RS::CoordPoint< Float >::getY(), RS::PlayerObject::isGoalie(), RS::power(), RS_FATAL, RS_LOG, RS_WARNING, RS::MobileObject::setAcceleration(), RS::WorldModel::setAgent(), RS::WorldModel::setBall(), RS::AgentObject::setMovePosition(), RS::AgentObject::setPowerUsed(), RS::AgentObject::setTurn(), RS::AgentObject::setTurnNeck(), RS::sin(), RS::WorldFacts::SP_ball_size, RS::WorldFacts::SP_dash_power_rate, RS::WorldFacts::SP_inertia_moment, RS::WorldFacts::SP_kick_power_rate, RS::WorldFacts::SP_kickable_area, RS::WorldFacts::SP_kickable_margin, RS::WorldFacts::SP_maxpower, RS::WorldFacts::SP_minpower, RS::WorldFacts::SP_penalty_area_length, RS::WorldFacts::SP_penalty_area_width, RS::WorldFacts::SP_pitch_length, RS::WorldFacts::SP_pitch_width, RS::WorldFacts::SP_player_size, and RS::WorldFacts::SP_stamina_min.


The documentation for this class was generated from the following files:
Generated on Mon Aug 29 08:28:59 2011 for RoboSoc by doxygen1.3-rc3