|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.games.tronupdate.util.AI
vooga.games.tronupdate.util.AI_0
public class AI_0
Field Summary |
---|
Fields inherited from class vooga.games.tronupdate.util.AI |
---|
myPlayer |
Constructor Summary | |
---|---|
AI_0(Player player)
|
Method Summary | |
---|---|
void |
down()
performs down turning |
void |
handleLeftRight()
This methods handles the upcoming left/right turn by taking into account the previous turns. |
void |
handleUpDown()
This method handles the upcoming up/down turning by taking into account the previous turns. |
void |
left()
performs left turning |
void |
randomLeftRight()
This method randomly decides whether to turn left or right. |
void |
randomUpDown()
This methods randomly decides whether to turn up or down |
void |
right()
performs right turning |
void |
up()
performs up turning |
void |
update(Grid[][] grid,
int row,
int col,
Direction direction)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AI_0(Player player)
Method Detail |
---|
public void update(Grid[][] grid, int row, int col, Direction direction)
update
in class AI
public void handleLeftRight()
public void handleUpDown()
public void randomLeftRight()
public void randomUpDown()
public void down()
public void left()
public void right()
public void up()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |