vooga.games.tronupdate.items
Class Player
java.lang.Object
vooga.games.tronupdate.items.Player
public class Player
- extends java.lang.Object
Constructor Summary |
Player(java.awt.image.BufferedImage image,
int initialRow,
int initialCol,
Direction initialDirection,
int imageWidth,
int height_,
int width_)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Player
public Player(java.awt.image.BufferedImage image,
int initialRow,
int initialCol,
Direction initialDirection,
int imageWidth,
int height_,
int width_)
setKeyboardControl
public void setKeyboardControl(Control c)
setAsAI
public void setAsAI(boolean AI)
isAI
public boolean isAI()
setAI
public void setAI(AI_0 ai_)
getImageWidth
public int getImageWidth()
setDirection
public void setDirection(Direction dir)
getDirection
public Direction getDirection()
getRow
public int getRow()
getCol
public int getCol()
update
public void update(Grid[][] grid)
outOfBoundary
public boolean outOfBoundary()
left
public void left()
right
public void right()
up
public void up()
down
public void down()