|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.farafin.snEADy.world.C_GameObject
de.farafin.snEADy.world.C_Goody
de.farafin.snEADy.world.C_GPoints
public final class C_GPoints
Field Summary | |
---|---|
private int |
amount
how much should the player change its speed? |
Fields inherited from class de.farafin.snEADy.world.C_GameObject |
---|
faceDirection, headPosition, nextUpdateTime, objPositions, ownChar, parameter, waitCycles |
Fields inherited from interface de.farafin.snEADy.communication.I_PlayFieldConstants |
---|
EXIT, FIELD_B, FIELD_C, FIELD_D, FIELD_E, FIELD_F, FIELD_G, FIELD_H, FIELD_I, FIELD_J, FIELD_K, FIELD_L, FIELD_M, FIELD_N, FIELD_O, FIELD_P, FIELD_Q, FIELD_R, FIELD_S, FIELD_T, FIELD_U, FIELD_V, FIELD_W, FIELD_X, FIELD_Y, FIELD_Z, FREE, GOODY_f, GOODY_g, GOODY_h, GOODY_i, GOODY_j, GOODY_k, GOODY_l, GOODY_LAST, GOODY_m, GOODY_n, GOODY_o, GOODY_p, GOODY_q, GOODY_r, GOODY_s, GOODY_START, GOODY_t, GOODY_u, GOODY_v, GOODY_w, GOODY_x, GOODY_y, GOODY_z, LENGTH, PLAYER_0, PLAYER_1, PLAYER_2, PLAYER_3, PLAYER_4, PLAYER_5, PLAYER_6, PLAYER_7, PLAYER_8, PLAYER_9, POINTS, SHORT, SLOW, SPEED, WALL |
Constructor Summary | |
---|---|
protected |
C_GPoints()
default constructor |
protected |
C_GPoints(D_Vec2D pos,
int amount,
GameParameter parameter)
constructor |
Method Summary | |
---|---|
protected java.lang.Object |
clone()
|
java.lang.String |
toString()
|
protected void |
update(C_Arena arena)
the update call meens that the object should do what ever it does usually |
protected void |
wasEatenBy(C_Snake snake)
this method describes what happends to the snake if the goody was eaten. |
Methods inherited from class de.farafin.snEADy.world.C_Goody |
---|
getAllPosSorted, jumpTo, wasEaten |
Methods inherited from class de.farafin.snEADy.world.C_GameObject |
---|
getAllPosArray, getAllPosList, getFaceDirection, getHeadPosition, getNextPosInFaceDirection, getNextUpdateTime, getOwnChar, jumpHeadPos, setFaceDirection, setHeadPosition |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int amount
Constructor Detail |
---|
protected C_GPoints()
protected C_GPoints(D_Vec2D pos, int amount, GameParameter parameter)
pos
- amount
- parameter
- Method Detail |
---|
protected void update(C_Arena arena)
C_GameObject
update
in class C_Goody
arena
- the arena the object is living inprotected void wasEatenBy(C_Snake snake)
C_Goody
wasEatenBy
in class C_Goody
snake
- the snake that ate the goodypublic java.lang.String toString()
toString
in class C_Goody
protected java.lang.Object clone()
clone
in class C_Goody
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |