org.deken.game
Class ManualGameTimer
java.lang.Object
org.deken.game.GameTimer
org.deken.game.ManualGameTimer
- All Implemented Interfaces:
- InputListener
public abstract class ManualGameTimer
- extends GameTimer
- implements InputListener
Title: ManualGameTimer
Description:
Copyright: Copyright (c) Oct 19, 2014
- Version:
- 1.0
- Author:
- Gary Deken
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManualGameTimer
public ManualGameTimer(int stepKey,
int tenStepKey)
update
public abstract void update(long deltaTime)
- Specified by:
update
in class GameTimer
render
public abstract void render()
- Specified by:
render
in class GameTimer
paint
public abstract void paint()
- Specified by:
paint
in class GameTimer
run
public void run()
- Overrides:
run
in class GameTimer
addInputAction
public void addInputAction(InputAction inputAction)
- Description copied from interface:
InputListener
- add an InputAction for monitoring.
- Specified by:
addInputAction
in interface InputListener
drawLabel
public void drawLabel(java.awt.Graphics2D g2d,
int x,
int y)
getInputActionIds
public int[] getInputActionIds()
- Description copied from interface:
InputListener
- Gets the Key IDs. This is mainly used for wiring the object into the
current GameMap Actions.
- Specified by:
getInputActionIds
in interface InputListener
- Returns:
- Array of InputActionIDs
notifyListener
public void notifyListener(InputAction inputAction)
- Description copied from interface:
InputListener
- This method is called when any event occurs.
- Specified by:
notifyListener
in interface InputListener
- Parameters:
inputAction
- InputAction
setUpdateOnKey
public void setUpdateOnKey(boolean updateOnKey)