Class PlayerAction
java.lang.Object
|
+--PlayerAction
- public class PlayerAction
- extends java.lang.Object
PlayerAction
implements the basic abilities a player can
perform. As an aggregation of the Brain
class, it is supposed
to quickly transform tactical considerations into movement.
- Author:
- Thorsten Fiekert, Anita Reifsteck, Ramin Radpour
Method Summary |
void |
catching(double direction)
C A T C H
catching the ball |
void |
change_view(java.lang.String width,
java.lang.String quality)
C H A N G E __ V I E W
change_view Width Quality |
void |
dash(double power)
D A S H
dashing to the direction the player is facing
parameter power represents acceleration: valid range: minpower -100;
maxpower +100;
where power < 0 means accelerating backwards [stamina costs: -2 * power] |
void |
kick(int intensity,
double direction)
K I C K
kicking the ball |
void |
move(double x,
double y)
M O V E
move player to a position |
void |
say(java.lang.String message)
S A Y
say a message |
void |
turn(double moment)
T U R N
turning the players body direction
parameter moment represents turning-angle: valid range: minmoment -180;
maxmoment +180; |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
communication
private Communication communication
PlayerAction
public PlayerAction(Communication communication)
turn
public void turn(double moment)
- T U R N
turning the players body direction
parameter moment represents turning-angle: valid range: minmoment -180;
maxmoment +180;
dash
public void dash(double power)
- D A S H
dashing to the direction the player is facing
parameter power represents acceleration: valid range: minpower -100;
maxpower +100;
where power < 0 means accelerating backwards [stamina costs: -2 * power]
kick
public void kick(int intensity,
double direction)
- K I C K
kicking the ball
catching
public void catching(double direction)
- C A T C H
catching the ball
say
public void say(java.lang.String message)
- S A Y
say a message
move
public void move(double x,
double y)
- M O V E
move player to a position
change_view
public void change_view(java.lang.String width,
java.lang.String quality)
- C H A N G E __ V I E W
change_view Width Quality