|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.farafin.snEADy.player.SnakeInfo
de.farafin.snEADy.player.OwnSnakeInfo
public class OwnSnakeInfo
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. Additional to all snakes, the player have more informations about his own snake. 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. Zusätzlich zu den anderen Schlangen hat spieler mehr Informationen über die eigene Schlange.
Field Summary | |
---|---|
int |
headDirection
This is the directon in which the head of the snake points. |
long |
lastCalculatedMemUsage
lastCalculatedMemUsage is how the name sais, the memory usage of the player at it was calculated last time. |
long |
nextMoveTime
nextMoveTime is the gameTime cycle the snake will move next time. |
Fields inherited from class de.farafin.snEADy.player.SnakeInfo |
---|
headPosLine, headPosRow, playerName, points, snakeChar, snakeLength, snakeStatus, waitCycles |
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 | |
---|---|
OwnSnakeInfo()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public long nextMoveTime
GameInfo.gameTime
public long lastCalculatedMemUsage
public int headDirection
PubConstants.NORTH
,
PubConstants.EAST
,
PubConstants.SOUTH
,
PubConstants.WEST
Constructor Detail |
---|
public OwnSnakeInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |