|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.farafin.snEADy.player.Player
de.farafin.snEADy.control.C_Human
public final class C_Human
Field Summary | |
---|---|
private int |
newDirection
new turndirection |
Fields inherited from class de.farafin.snEADy.player.Player |
---|
comment |
Fields inherited from interface de.farafin.snEADy.player.PubConstants |
---|
EAST, EXIT, FREE, IN_ACTION, IN_EXIT, IN_HEAVEN, LENGTH, NORTH, PLAYER_0, PLAYER_1, PLAYER_2, PLAYER_3, PLAYER_4, PLAYER_5, PLAYER_6, PLAYER_7, PLAYER_8, PLAYER_9, POINTS, SHORTER, SLOWDOWN, SOUTH, SPEED, TURN_LEFT, TURN_NONE, TURN_RIGHT, WALL, WEST |
Constructor Summary | |
---|---|
C_Human()
default constructor |
Method Summary | |
---|---|
void |
calculate(GameInfo gInfo,
LevelInfo lInfo,
SnakeInfo[] sInfo,
OwnSnakeInfo oInfo)
This is the method you should implement. |
void |
setName(java.lang.String name)
|
void |
setNewDirection(int newDirection)
|
Methods inherited from class de.farafin.snEADy.player.Player |
---|
getName, getTurnDirection, msDone, msLeft, say, sayNow, setMonitor, setTurnDirection, startCalculation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int newDirection
Constructor Detail |
---|
public C_Human()
Method Detail |
---|
public void setName(java.lang.String name)
setName
in class Player
name
- The name to set.public void calculate(GameInfo gInfo, LevelInfo lInfo, SnakeInfo[] sInfo, OwnSnakeInfo oInfo)
Player
calculate
in class Player
gInfo
- game informations lInfo
- level informations sInfo
- an array of informations about all other snakes in the field. oInfo
- Informations about the own Snake GameInfo
,
LevelInfo
,
SnakeInfo
,
OwnSnakeInfo
public void setNewDirection(int newDirection)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |