env3d.advanced
Class EnvAdvanced

java.lang.Object
  extended by com.jme3.app.Application
      extended by env3d.EnvBasic
          extended by env3d.Env
              extended by env3d.advanced.EnvAdvanced
All Implemented Interfaces:
com.jme3.system.SystemListener
Direct Known Subclasses:
EnvJython

public class EnvAdvanced
extends Env

The EnvAdvanced class allows the use of advanced features such as skybox, water, shadow, physics, and gui.


Field Summary
 
Fields inherited from class env3d.EnvBasic
audioMap, flyCam, guiFont, guiNode, init, internalObjects, objectsMap, roomObject, rootNode, statusNode, statusText, tpf
 
Fields inherited from class com.jme3.app.Application
assetManager, audioRenderer, cam, context, guiViewPort, inputEnabled, inputManager, joyInput, keyInput, listener, mouseInput, paused, pauseOnFocus, renderer, renderManager, settings, speed, stateManager, timer, touchInput, viewPort
 
Constructor Summary
EnvAdvanced()
           
 
Method Summary
 void addObject(java.lang.Object obj)
          Add an object to the environment
 com.jme3.asset.AssetManager getAssetManager()
           
 com.jme3.bullet.BulletAppState getBulletAppState()
           
 boolean isShadowEnabled()
          Checks if shadow is enabled
 void removeObject(java.lang.Object obj)
          Removes an object from the environment
 void setPhysicsEnabled(boolean enabled)
          Enable physics?
 void setRoom(java.lang.Object room)
          Sets the current room.
 void setShadowEnabled(boolean mode)
          Turn shadows on and off
 void update()
           
 
Methods inherited from class env3d.Env
advanceOneFrame, advanceOneFrame, getKey, getKeyDown, getKeyDown, getMouseButtonClicked, getMouseButtonDown, getMouseDX, getMouseDY, getMouseX, getMouseY, isFullScreen, isMouseGrabbed, setFullscreen, setMouseGrab, setResolution, start
 
Methods inherited from class env3d.EnvBasic
destroy, disableLighting, enableLighting, exit, getCameraPitch, getCameraX, getCameraY, getCameraYaw, getCameraZ, getNiftyGUI, getObject, getObjects, getObjects, getPick, getPickList, getPickRay, getRootNode, getVolume, initialize, isDefaultControl, isLightingEnabled, setCameraPitch, setCameraXYZ, setCameraYaw, setDefaultControl, setDisplayStr, setDisplayStr, setDisplayStr, setShowStatus, setVolume, soundLoad, soundLoop, soundPlay, soundPlay, soundStop
 
Methods inherited from class com.jme3.app.Application
createCanvas, destroyInput, enqueue, gainFocus, getAudioRenderer, getCamera, getContext, getGuiViewPort, getInputManager, getListener, getRenderer, getRenderManager, getStateManager, getTimer, getViewPort, handleError, isPauseOnLostFocus, loseFocus, requestClose, reshape, restart, runQueuedTasks, setAssetManager, setPauseOnLostFocus, setSettings, setTimer, start, startCanvas, startCanvas, stop, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvAdvanced

public EnvAdvanced()
Method Detail

setPhysicsEnabled

public void setPhysicsEnabled(boolean enabled)
Enable physics?

Parameters:
enabled -

setRoom

public void setRoom(java.lang.Object room)
Description copied from class: EnvBasic
Sets the current room. Calling this will remove all the objects in the current room.

Overrides:
setRoom in class EnvBasic
Parameters:
room - the room object

addObject

public void addObject(java.lang.Object obj)
Description copied from class: EnvBasic
Add an object to the environment

Overrides:
addObject in class EnvBasic

removeObject

public void removeObject(java.lang.Object obj)
Description copied from class: EnvBasic
Removes an object from the environment

Overrides:
removeObject in class EnvBasic

update

public void update()
Specified by:
update in interface com.jme3.system.SystemListener
Overrides:
update in class EnvBasic

setShadowEnabled

public void setShadowEnabled(boolean mode)
Turn shadows on and off

Parameters:
mode -

isShadowEnabled

public boolean isShadowEnabled()
Checks if shadow is enabled

Returns:

getAssetManager

public com.jme3.asset.AssetManager getAssetManager()
Overrides:
getAssetManager in class com.jme3.app.Application

getBulletAppState

public com.jme3.bullet.BulletAppState getBulletAppState()
Returns:
the bulletAppState