org.dyndns.hentschel.openArena.views.view3D
Class ViewFeld

java.lang.Object
  |
  +--javax.media.j3d.SceneGraphObject
        |
        +--javax.media.j3d.Node
              |
              +--javax.media.j3d.Group
                    |
                    +--javax.media.j3d.BranchGroup
                          |
                          +--org.dyndns.hentschel.openArena.views.view3D.ViewFeld

public class ViewFeld
extends javax.media.j3d.BranchGroup


Nested Class Summary
 class ViewFeld.DrawRasse
           
static interface ViewFeld.FeldGeometry
           
 
Field Summary
 com.sun.j3d.utils.geometry.Box agentBox
           
private static java.util.Map agenten
           
private  javax.media.j3d.TransformGroup agentGroesse
           
 javax.media.j3d.BranchGroup agentGroup
           
 javax.media.j3d.Switch agentSwitch
           
 openArena.Feld aktuellesFeld
           
private  double alteEnergie
           
private  javax.media.j3d.Appearance app
           
private  openArena.AbstractArena arena
           
private static java.util.Map colors
           
private static java.util.Hashtable drawables
           
private static java.util.Hashtable felder
           
 javax.media.j3d.BranchGroup feldGroup
           
private static float hue
           
private static float HUE
           
private  javax.media.j3d.Material mat
           
private  javax.media.j3d.TransformGroup nahrungsGroesse
           
private static int priority
           
 java.lang.String rassenName
           
private static javax.media.j3d.TransparencyAttributes T03
           
private  javax.media.j3d.Transform3D trans
           
private  double value
           
 
Fields inherited from class javax.media.j3d.BranchGroup
ALLOW_DETACH
 
Fields inherited from class javax.media.j3d.Group
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE
 
Fields inherited from class javax.media.j3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Fields inherited from class javax.media.j3d.SceneGraphObject
 
Constructor Summary
ViewFeld(openArena.AbstractArena arena)
          Creates a new instance of ViewFeld
 
Method Summary
 DrawableCanvas.Drawable setAgent(openArena.AgentInfo agent, double energie)
           
static void setColors(java.util.Map colors)
           
 void setFeldType(openArena.Feld feld)
           
 void setValue(double d)
           
 
Methods inherited from class javax.media.j3d.BranchGroup
cloneNode, compile, detach, pickAll, pickAllSorted, pickAny, pickClosest
 
Methods inherited from class javax.media.j3d.Group
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds
 
Methods inherited from class javax.media.j3d.Node
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData, updateNodeReferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HUE

private static final float HUE
See Also:
Constant Field Values

agenten

private static java.util.Map agenten

colors

private static java.util.Map colors

felder

private static java.util.Hashtable felder

drawables

private static java.util.Hashtable drawables

priority

private static int priority

hue

private static float hue

rassenName

public java.lang.String rassenName

agentGroup

public javax.media.j3d.BranchGroup agentGroup

agentBox

public com.sun.j3d.utils.geometry.Box agentBox

agentSwitch

public javax.media.j3d.Switch agentSwitch

aktuellesFeld

public openArena.Feld aktuellesFeld

feldGroup

public javax.media.j3d.BranchGroup feldGroup

value

private double value

mat

private javax.media.j3d.Material mat

trans

private javax.media.j3d.Transform3D trans

app

private javax.media.j3d.Appearance app

alteEnergie

private double alteEnergie

nahrungsGroesse

private javax.media.j3d.TransformGroup nahrungsGroesse

agentGroesse

private javax.media.j3d.TransformGroup agentGroesse

arena

private openArena.AbstractArena arena

T03

private static final javax.media.j3d.TransparencyAttributes T03
Constructor Detail

ViewFeld

public ViewFeld(openArena.AbstractArena arena)
Creates a new instance of ViewFeld

Method Detail

setValue

public void setValue(double d)

setFeldType

public void setFeldType(openArena.Feld feld)

setColors

public static void setColors(java.util.Map colors)

setAgent

public DrawableCanvas.Drawable setAgent(openArena.AgentInfo agent,
                                        double energie)