Class BasicPlayer
- public class BasicPlayer
- implements KeyListener, Player
BasicPlayer
BasicPlayer(Location loc)
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
to Class Location
to Class java.awt.image.BufferedImage