Package name.moore.kevin.ze.game.states
Class renderState
java.lang.Object
com.jme3.app.state.BaseAppState
name.moore.kevin.ze.game.states.renderState
- All Implemented Interfaces:
com.jme3.app.state.AppState,iZodiacState
Render the model/data contained in the entity repository into a scene. This
state knows how to visually represent the entities, other classes move that
representation onto the actual screen. This needs to happen as fast and as
frequently as possible.
- Author:
- Kevin Moore
<dev@kevin.moore.name>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatprivate com.jme3.asset.AssetManagerprivate com.jme3.input.InputManagerprivate static org.slf4j.Loggerprivate com.jme3.scene.Nodeprivate com.jme3.scene.Geometryprivate com.jme3.scene.Nodeprivate com.jme3.app.state.AppStateManagerprivate com.jme3.renderer.ViewPortprivate iZodiacApp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcleanup(com.jme3.app.Application app)protected voidinitialize(com.jme3.app.Application a)protected voidprotected voidonEnable().voidupdate(float tpf)Called automatically and repeatedly while the state is enabled and attached.voidwindowEvent(windowEvent event)Respond to windowEvents broadcast on this eventbus.Methods inherited from class com.jme3.app.state.BaseAppState
cleanup, getApplication, getId, getState, getState, getState, getState, getStateManager, initialize, isEnabled, isInitialized, postRender, render, setEnabled, setId, stateAttached, stateDetachedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface name.moore.kevin.ze.game.states.iZodiacState
gameEvent, trace, trace
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
zapp
-
rootNode
private com.jme3.scene.Node rootNode -
assetManager
private com.jme3.asset.AssetManager assetManager -
stateManager
private com.jme3.app.state.AppStateManager stateManager -
inputManager
private com.jme3.input.InputManager inputManager -
viewPort
private com.jme3.renderer.ViewPort viewPort -
offBox
private com.jme3.scene.Geometry offBox -
n
private com.jme3.scene.Node n -
angle
private float angle
-
-
Constructor Details
-
renderState
- Parameters:
id-
-
-
Method Details
-
initialize
protected void initialize(com.jme3.app.Application a)- Specified by:
initializein classcom.jme3.app.state.BaseAppState
-
cleanup
protected void cleanup(com.jme3.app.Application app)- Specified by:
cleanupin classcom.jme3.app.state.BaseAppState
-
onEnable
protected void onEnable(). Called by zodiac when enabling its READY state and the GUI has been built - so service has a valid zFrame.- Specified by:
onEnablein classcom.jme3.app.state.BaseAppState- See Also:
zodiac.windowEvent(name.moore.kevin.ze.game.events.windowEvent),service
-
onDisable
protected void onDisable()- Specified by:
onDisablein classcom.jme3.app.state.BaseAppState
-
update
public void update(float tpf)Called automatically and repeatedly while the state is enabled and attached.- Specified by:
updatein interfacecom.jme3.app.state.AppState- Overrides:
updatein classcom.jme3.app.state.BaseAppState- Parameters:
tpf- - current system provided time per frame eg 0.016717996
-
windowEvent
Description copied from interface:iZodiacStateRespond to windowEvents broadcast on this eventbus.- Specified by:
windowEventin interfaceiZodiacState
-