Class BasicPlayer


public class BasicPlayer
implements KeyListener, Player


Constructor Summary
 (package private) BasicPlayer(Location loc)
           

Method Summary
 booleanfollowLinks()
           
 intgameStatus()
           
 ContainergetEditPropertiesPanel()
           
 ContainergetGameStatusPanel(int loc)
           
 ImagegetImage()
           
 LocationgetLocation()
           
 intgetUpdateTime()
           
 voidkeyPressed(KeyEvent e)
           
 voidkeyReleased(KeyEvent e)
           
 voidkeyTyped(KeyEvent e)
          I'm not using this because it is linked to the key repeat rate.
 voidsetLocation(Location loc)
           
 voidupdate(int time)
          This is the method that should be called to update the player.

Constructor Detail

BasicPlayer

BasicPlayer(Location loc)
Method Detail

followLinks

public boolean followLinks()

gameStatus

public int gameStatus()

getEditPropertiesPanel

public Container getEditPropertiesPanel()

getGameStatusPanel

public Container getGameStatusPanel(int loc)

getImage

public Image getImage()

getLocation

public Location getLocation()

getUpdateTime

public int getUpdateTime()

keyPressed

public void keyPressed(KeyEvent e)

keyReleased

public void keyReleased(KeyEvent e)

keyTyped

public void keyTyped(KeyEvent e)
I'm not using this because it is linked to the key repeat rate. I'm
also not certain that is works with up, down, left, and right.

setLocation

public void setLocation(Location loc)

update

public void update(int time)
This is the method that should be called to update the player.

I did some extra work to make this smarter on 1-50-78.
Parameters:
time This is the time for the tick when this ic called.
author Mark Lewis

Association Links

to Class Location

to Class java.awt.image.BufferedImage