|
||||||||||
| 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_Dummy
public final class C_Dummy
a dummy player for the replays. it moves stright ahead if it is asked to decide a move.
| Field Summary | |
|---|---|
static java.lang.String |
name
the name |
| 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, MOVE_EAST, MOVE_NORTH, MOVE_SOUTH, MOVE_WEST, 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_Dummy()
default constructor |
|
| Method Summary | |
|---|---|
protected void |
calculate(GameInfo gInfo,
LevelInfo lInfo,
SnakeInfo[] sInfo,
OwnSnakeInfo oInfo)
This is the method you should implement. |
| Methods inherited from class de.farafin.snEADy.player.Player |
|---|
getName, getTurnDirection, msDone, msLeft, say, sayNow, setDirection, setMonitor, setTurnDirection, startCalculation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String name
| Constructor Detail |
|---|
public C_Dummy()
| Method Detail |
|---|
protected void calculate(GameInfo gInfo,
LevelInfo lInfo,
SnakeInfo[] sInfo,
OwnSnakeInfo oInfo)
Player
calculate in class PlayergInfo - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||