env3d
Class GameObjectAdapter

java.lang.Object
  extended by env3d.GameObjectAdapter
Direct Known Subclasses:
EnvAbstractNode, GameBObjectAdapter, RoomAdapter

public class GameObjectAdapter
extends java.lang.Object

Write a description of class GameObjectAdapter here.


Field Summary
static com.jme3.asset.AssetManager assetManager
           
protected  java.lang.String currentAction
           
protected  java.lang.String currentModel
           
protected  java.lang.String currentTexture
           
protected  java.lang.Object internalObject
           
protected  com.jme3.scene.Node jme_node
           
protected  boolean lighting
           
static java.util.HashSet<java.lang.String> locator
           
protected  com.jme3.material.Material mat
           
protected  com.jme3.material.Material mat_lit
           
protected  java.util.HashMap<java.lang.String,com.jme3.scene.Spatial> objectCache
           
protected  com.jme3.math.Quaternion q
           
protected  com.jme3.math.Quaternion qX
           
protected  com.jme3.math.Quaternion qY
           
protected  com.jme3.math.Quaternion qZ
           
 
Constructor Summary
GameObjectAdapter()
           
GameObjectAdapter(java.lang.Object obj)
           
 
Method Summary
static com.jme3.scene.Geometry drawSquare()
           
static com.jme3.scene.Geometry drawSquare(int width, int height)
          Draw a simple square.
protected
<T> T
getFieldFromObject(java.lang.String fname)
           
 com.jme3.scene.Node getJme_node()
           
protected  java.lang.String registerLocator(java.lang.String asset)
           
 void update()
           
 void useLightingMaterial(boolean lighting)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

assetManager

public static com.jme3.asset.AssetManager assetManager

locator

public static java.util.HashSet<java.lang.String> locator

internalObject

protected java.lang.Object internalObject

jme_node

protected com.jme3.scene.Node jme_node

q

protected com.jme3.math.Quaternion q

qX

protected com.jme3.math.Quaternion qX

qY

protected com.jme3.math.Quaternion qY

qZ

protected com.jme3.math.Quaternion qZ

currentModel

protected java.lang.String currentModel

currentTexture

protected java.lang.String currentTexture

currentAction

protected java.lang.String currentAction

mat

protected com.jme3.material.Material mat

mat_lit

protected com.jme3.material.Material mat_lit

objectCache

protected java.util.HashMap<java.lang.String,com.jme3.scene.Spatial> objectCache

lighting

protected boolean lighting
Constructor Detail

GameObjectAdapter

public GameObjectAdapter()

GameObjectAdapter

public GameObjectAdapter(java.lang.Object obj)
Method Detail

update

public void update()

registerLocator

protected java.lang.String registerLocator(java.lang.String asset)

getFieldFromObject

protected <T> T getFieldFromObject(java.lang.String fname)

useLightingMaterial

public void useLightingMaterial(boolean lighting)

getJme_node

public com.jme3.scene.Node getJme_node()
Returns:
the jme_object

drawSquare

public static com.jme3.scene.Geometry drawSquare()

drawSquare

public static com.jme3.scene.Geometry drawSquare(int width,
                                                 int height)
Draw a simple square. Used in room and lots of other things ;)

Returns: