env3d.advanced
Class EnvNode

java.lang.Object
  extended by env3d.GameObjectAdapter
      extended by env3d.advanced.EnvAbstractNode
          extended by env3d.advanced.EnvNode
Direct Known Subclasses:
Creature, EnvPhysicsNode, GameObject, SceneNode

public class EnvNode
extends EnvAbstractNode


Field Summary
 
Fields inherited from class env3d.advanced.EnvAbstractNode
rotateX, rotateY, rotateZ, scale
 
Fields inherited from class env3d.GameObjectAdapter
assetManager, currentAction, currentModel, currentTexture, internalObject, jme_node, lighting, locator, mat, mat_lit, objectCache, q, qX, qY, qZ
 
Constructor Summary
EnvNode()
          Creates a new instance of EnvObject
 
Method Summary
 double distance(double x, double y, double z)
           
 double distance(EnvNode obj)
          returns the distance between this and another object
 java.lang.String getModel()
           
 java.lang.String getTexture()
           
 boolean isTransparent()
           
 void setModel(java.lang.String model)
           
 void setTexture(java.lang.String texture)
           
 void setTransparent(boolean transparent)
           
 void useLightingMaterial(boolean lighting)
           
 
Methods inherited from class env3d.advanced.EnvAbstractNode
attach, getRotateX, getRotateY, getRotateZ, getScale, getX, getY, getZ, remove, setRotateX, setRotateY, setRotateZ, setScale, setX, setY, setZ, update, updateRotation
 
Methods inherited from class env3d.GameObjectAdapter
drawSquare, drawSquare, getFieldFromObject, getJme_node, registerLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvNode

public EnvNode()
Creates a new instance of EnvObject

Method Detail

getTexture

public java.lang.String getTexture()

setTexture

public void setTexture(java.lang.String texture)

getModel

public java.lang.String getModel()

setModel

public void setModel(java.lang.String model)

distance

public double distance(EnvNode obj)
returns the distance between this and another object

Parameters:
obj - the other object
Returns:
distance

distance

public double distance(double x,
                       double y,
                       double z)

useLightingMaterial

public void useLightingMaterial(boolean lighting)
Overrides:
useLightingMaterial in class GameObjectAdapter

isTransparent

public boolean isTransparent()
Returns:
the transparent

setTransparent

public void setTransparent(boolean transparent)
Parameters:
transparent - the transparent to set. Only works if the texture has an alpha channel.