|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.farafin.snEADy.player.SnakeInfo
public class SnakeInfo
This is just a class for storing informations. It doesnt contain methods because it doesnt need
to calculate anything. Its just a set of informations for the player.
This class contains general data about the Snakes which are in the arena.
Diese Klasse ist zum Speichern von Informationen gedacht. Sie enthällt keine Methoden weil
sie nichts berechnen muss. Es ist nur eine Menge von Informationen für den Spieler.
Diese Klasse enthällt allgemeine Daten über die Schlangen in der Arena.
Field Summary | |
---|---|
int |
headPosLine
The line of the snakes heads position at the play field: playField[headPosLine][headPosRow]. |
int |
headPosRow
The row of the snakes heads position at the play field: playField[headPosLine][headPosRow]. |
java.lang.String |
playerName
The name of the player who controls the snake. |
int |
points
The points the player, which controls the snake. |
char |
snakeChar
The char value of the snake in the playField. |
int |
snakeLength
The number of visable segments of the snake which is equal to the current length of the snake. |
int |
snakeStatus
The status of the snake. |
long |
waitCycles
Like it is described at GameInfo.gameTime, consists the game as a sequence of game cycles. |
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 | |
---|---|
SnakeInfo()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String playerName
public char snakeChar
PubConstants.PLAYER_0
public int headPosLine
LevelInfo.playField
public int headPosRow
LevelInfo.playField
public int points
public int snakeLength
public long waitCycles
GameInfo.gameTime
public int snakeStatus
PubConstants.IN_ACTION
,
PubConstants.IN_HEAVEN
,
PubConstants.IN_EXIT
Constructor Detail |
---|
public SnakeInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |