env3d.android
Class EnvAndroid

java.lang.Object
  extended by com.jme3.app.Application
      extended by env3d.EnvBasic
          extended by env3d.android.EnvAndroid
All Implemented Interfaces:
com.jme3.system.SystemListener
Direct Known Subclasses:
Game

public class EnvAndroid
extends EnvBasic

The base class for all android based games.


Field Summary
protected  EnvDefaultController controller
           
protected  boolean emulatorMode
           
protected  EnvMobileGame game
           
 
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
EnvAndroid()
           
 
Method Summary
 EnvMobileGame getGame()
           
 boolean getKeyDown(java.lang.String keycode)
           
 int getScreenHeight()
           
 int getScreenWidth()
           
 double getTiltX()
           
 double getTiltY()
           
 double getTiltZ()
           
 int getTouchDX()
           
 int getTouchDY()
           
 int getTouchX()
           
 int getTouchY()
           
 void initialize()
           
 boolean isShowController()
           
 boolean isTouchEvent()
           
 void setGame(EnvMobileGame game)
           
 void setShowController(boolean showController)
           
 void setTilt(double x, double y, double z)
           
 void update()
           
 
Methods inherited from class env3d.EnvBasic
addObject, destroy, disableLighting, enableLighting, exit, getCameraPitch, getCameraX, getCameraY, getCameraYaw, getCameraZ, getNiftyGUI, getObject, getObjects, getObjects, getPick, getPickList, getPickRay, getRootNode, getVolume, isDefaultControl, isLightingEnabled, removeObject, setCameraPitch, setCameraXYZ, setCameraYaw, setDefaultControl, setDisplayStr, setDisplayStr, setDisplayStr, setRoom, setShowStatus, setVolume, soundLoad, soundLoop, soundPlay, soundPlay, soundStop, start
 
Methods inherited from class com.jme3.app.Application
createCanvas, destroyInput, enqueue, gainFocus, getAssetManager, 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
 

Field Detail

game

protected EnvMobileGame game

emulatorMode

protected boolean emulatorMode

controller

protected EnvDefaultController controller
Constructor Detail

EnvAndroid

public EnvAndroid()
Method Detail

setTilt

public void setTilt(double x,
                    double y,
                    double z)

update

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

initialize

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

getKeyDown

public boolean getKeyDown(java.lang.String keycode)

isShowController

public boolean isShowController()
Returns:
the showController

setShowController

public void setShowController(boolean showController)
Parameters:
showController - the showController to set

getTiltX

public double getTiltX()
Returns:
the tiltX

getTiltY

public double getTiltY()
Returns:
the tiltY

getTiltZ

public double getTiltZ()
Returns:
the tiltZ

getGame

public EnvMobileGame getGame()
Returns:
the game

setGame

public void setGame(EnvMobileGame game)
Parameters:
game - the game to set

getTouchX

public int getTouchX()
Returns:
the touchX

getTouchY

public int getTouchY()
Returns:
the touchY

getScreenHeight

public int getScreenHeight()
Returns:
the screenHeight

getScreenWidth

public int getScreenWidth()
Returns:
the screenWidth

isTouchEvent

public boolean isTouchEvent()
Returns:
the touchEvent

getTouchDX

public int getTouchDX()
Returns:
the touchDX

getTouchDY

public int getTouchDY()
Returns:
the touchDY