keba
Class AnimatBrait

java.lang.Object
  |
  +--javax.media.j3d.SceneGraphObject
        |
        +--javax.media.j3d.Node
              |
              +--javax.media.j3d.Group
                    |
                    +--javax.media.j3d.BranchGroup
                          |
                          +--keba.Phenomenon
                                |
                                +--keba.Animat
                                      |
                                      +--keba.AnimatBrait
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class AnimatBrait
extends Animat

See Also:
Serialized Form

Field Summary
static int LEFT
           
(package private)  float noise
           
static int RIGHT
           
 
Fields inherited from class keba.Animat
af, dead, energy, hunger, immortal, leaveTrail, msg, name, ostream, periodWrite, rp, th, thirst, toFile, trail, trailApp, trailBG, trailT, trailT2, trailTG, trailTG2, transWrite, verbose, x2, z2
 
Fields inherited from class keba.Phenomenon
colour, flavour, hardness, id, loudness, odour, radius, t, tg, time, type, x, z
 
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
capabilities, nodeHashtable, retained
 
Constructor Summary
AnimatBrait(float nz, float nx, float nradius, long nid)
           
 
Method Summary
 void drink()
           
 void eat()
           
 boolean foodAtRange()
           
 int foodPerc()
           
 void leftMotor(double thr)
           
 int LRPh(Phenomenon ph)
           
 void move()
           
 boolean rainAtRange()
           
 int rainPerc()
           
(package private)  void restore()
           
 void rightMotor(double thr)
           
 int rockNear()
           
(package private)  void step()
           
 
Methods inherited from class keba.Animat
clean, destroy, getToroidalD, init3D, iniTrail, noise, removeTrail, setEnergy, setHunger, setTh, setThirst, setX, setZ, stepState
 
Methods inherited from class keba.Phenomenon
clone, restore3D, sinit3D
 
Methods inherited from class javax.media.j3d.BranchGroup
cloneNode, compile, createRetained, detach, pickAll, pickAllSorted, pickAny, pickClosest
 
Methods inherited from class javax.media.j3d.Group
addChild, cloneTree, duplicateAttributes, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, insertChild, moveTo, numChildren, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds
 
Methods inherited from class javax.media.j3d.Node
checkDuplicateNode, checkForCycle, 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
checkForLiveOrCompiled, clearCapability, clearLive, duplicateSceneGraphObject, getCapability, getNodeComponent, getUserData, isCompiled, isLive, isLiveOrCompiled, setCapability, setCompiled, setLive, setUserData, updateNodeReferences
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noise

float noise

LEFT

public static final int LEFT

RIGHT

public static final int RIGHT
Constructor Detail

AnimatBrait

public AnimatBrait(float nz,
                   float nx,
                   float nradius,
                   long nid)
Method Detail

restore

void restore()
Overrides:
restore in class Animat

step

void step()
Overrides:
step in class Animat

move

public void move()

LRPh

public int LRPh(Phenomenon ph)

foodPerc

public int foodPerc()

rainPerc

public int rainPerc()

rockNear

public int rockNear()

foodAtRange

public boolean foodAtRange()

rainAtRange

public boolean rainAtRange()

rightMotor

public void rightMotor(double thr)

leftMotor

public void leftMotor(double thr)

eat

public void eat()

drink

public void drink()