vooga.games.tronupdate.items
Class Player

java.lang.Object
  extended by 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_)
           
 
Method Summary
 void down()
           
 int getCol()
           
 Direction getDirection()
           
 int getImageWidth()
           
 int getRow()
           
 boolean isAI()
           
 void left()
           
 boolean outOfBoundary()
           
 void right()
           
 void setAI(AI_0 ai_)
           
 void setAsAI(boolean AI)
           
 void setDirection(Direction dir)
           
 void setKeyboardControl(Control c)
           
 void up()
           
 void update(Grid[][] grid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Player

public Player(java.awt.image.BufferedImage image,
              int initialRow,
              int initialCol,
              Direction initialDirection,
              int imageWidth,
              int height_,
              int width_)
Method Detail

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()