public class NngaPlayer extends java.lang.Object implements Controller
| Modifier and Type | Field and Description |
|---|---|
int |
kickCount |
| Constructor and Description |
|---|
NngaPlayer(AbstractRepresentation net,
SimpleSoccer master) |
| Modifier and Type | Method and Description |
|---|---|
Player |
getPlayer() |
SimpleSoccer |
getSession() |
void |
postInfo()
Controls the client by interpreting the state of the controller.
|
void |
preInfo()
Reset the state of the controller.
|
void |
setPlayer(Player p) |
void |
setRelativePosBall(double x,
double y) |
void |
setRelativePosBorders(double top,
double bottom,
double left,
double right) |
void |
setRelativePosNearestOpponent(double x,
double y) |
void |
setRelativePosNearestPlayer(double x,
double y) |
void |
setRelativePosOppGoal(double x,
double y) |
void |
setRelativePosOwnGoal(double x,
double y) |
public NngaPlayer(AbstractRepresentation net, SimpleSoccer master)
public SimpleSoccer getSession()
getSession in interface Controllerpublic Player getPlayer()
getPlayer in interface Controllerpublic void setPlayer(Player p)
setPlayer in interface Controllerpublic void preInfo()
preInfo in interface Controllerpublic void postInfo()
postInfo in interface Controllerpublic void setRelativePosBall(double x,
double y)
setRelativePosBall in interface Controllerpublic void setRelativePosBorders(double top,
double bottom,
double left,
double right)
setRelativePosBorders in interface Controllerpublic void setRelativePosNearestOpponent(double x,
double y)
setRelativePosNearestOpponent in interface Controllerpublic void setRelativePosNearestPlayer(double x,
double y)
setRelativePosNearestPlayer in interface Controllerpublic void setRelativePosOppGoal(double x,
double y)
setRelativePosOppGoal in interface Controllerpublic void setRelativePosOwnGoal(double x,
double y)
setRelativePosOwnGoal in interface Controller