public class GameDebugger extends Object implements Updatable, EngineHolder<CoreEngine>, KeyListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
GameDebugger.DebugStateListener |
| Modifier and Type | Field and Description |
|---|---|
protected CoreEngine |
engine |
protected Game |
game |
protected List<GameDebugger.DebugStateListener> |
hooks |
protected Color |
prevClearColor |
protected DrawStrategy |
sD |
protected DrawStrategy |
wD |
protected Node |
wireframe |
| Constructor and Description |
|---|
GameDebugger(Game game) |
| Modifier and Type | Method and Description |
|---|---|
void |
disable() |
void |
enable() |
CoreEngine |
getEngine()
Retrieves the stored engine
|
Game |
getGame() |
void |
onAction(KeyEvent event)
When the trigger as triggered.
|
void |
register(GameDebugger.DebugStateListener l)
Adds an listener
|
void |
register(GameDebugger.DebugStateListener l,
boolean pushState)
Adds an listener
|
void |
setEngine(CoreEngine engine)
Inject the engine
|
void |
update(float delta)
Trigger an update.
|
protected CoreEngine engine
protected Game game
protected List<GameDebugger.DebugStateListener> hooks
protected Color prevClearColor
protected DrawStrategy wD
protected DrawStrategy sD
protected Node wireframe
public GameDebugger(Game game)
public void register(GameDebugger.DebugStateListener l)
l - public void register(GameDebugger.DebugStateListener l, boolean pushState)
l - the listenerpushState - this will call changed() with the current statuspublic void onAction(KeyEvent event)
KeyListeneronAction in interface KeyListenerevent - The KeyEventpublic void enable()
public void disable()
public CoreEngine getEngine()
EngineHoldergetEngine in interface EngineHolder<CoreEngine>public void setEngine(CoreEngine engine)
EngineHoldersetEngine in interface EngineHolder<CoreEngine>engine - The engine to storepublic Game getGame()
Copyright © 2014. All rights reserved.