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 Controller
public Player getPlayer()
getPlayer
in interface Controller
public void setPlayer(Player p)
setPlayer
in interface Controller
public void preInfo()
preInfo
in interface Controller
public void postInfo()
postInfo
in interface Controller
public void setRelativePosBall(double x, double y)
setRelativePosBall
in interface Controller
public void setRelativePosBorders(double top, double bottom, double left, double right)
setRelativePosBorders
in interface Controller
public void setRelativePosNearestOpponent(double x, double y)
setRelativePosNearestOpponent
in interface Controller
public void setRelativePosNearestPlayer(double x, double y)
setRelativePosNearestPlayer
in interface Controller
public void setRelativePosOppGoal(double x, double y)
setRelativePosOppGoal
in interface Controller
public void setRelativePosOwnGoal(double x, double y)
setRelativePosOwnGoal
in interface Controller