Phoenix2D-Library
0.10
|
Actions
The Actions lorem Ipsum
More...
#include <Actions.h>
Public Types | |
enum | ACTION { GO_TO, DRIBBLE_TO, HOLD_POSITION, PASS_TO_SECTION, ATTACK_SECTION } |
Public Member Functions | |
Actions (Commands *commands) | |
~Actions () | |
bool | goTo (Position position) |
void | dribbleTo (Position position) |
void | holdPosition (Position position) |
void | passToSection (Position position) |
void | attackSection (Position position) |
Public Attributes | |
Commands * | commands |
Phoenix::Actions::Actions | ( | Commands * | commands | ) |
Definition at line 29 of file Actions.cpp.
References commands.
Phoenix::Actions::~Actions | ( | ) |
Definition at line 33 of file Actions.cpp.
void Phoenix::Actions::attackSection | ( | Position | position | ) |
Definition at line 66 of file Actions.cpp.
void Phoenix::Actions::dribbleTo | ( | Position | position | ) |
Definition at line 54 of file Actions.cpp.
bool Phoenix::Actions::goTo | ( | Position | position | ) |
Definition at line 37 of file Actions.cpp.
References Phoenix::Self::AMOUNT_OF_SPEED, commands, Phoenix::Commands::dash(), Phoenix::Position::getDirectionTo(), Phoenix::Position::getDistanceTo(), Phoenix::Self::getPosition(), Phoenix::Self::INERTIA_MOMENT, and Phoenix::Commands::turn().
Referenced by Phoenix::PlayOn::onPlayerExecute().
void Phoenix::Actions::holdPosition | ( | Position | position | ) |
Definition at line 58 of file Actions.cpp.
void Phoenix::Actions::passToSection | ( | Position | position | ) |
Definition at line 62 of file Actions.cpp.
Commands* Phoenix::Actions::commands |