SEdit.Formalisms.World.Preys
Class Animal

java.lang.Object
  extended by SEdit.SElement
      extended by SEdit.SNode
          extended by SEdit.Formalisms.World.WorldEntity
              extended by SEdit.Formalisms.World.MobileEntity
                  extended by SEdit.Formalisms.World.Preys.Animal
Direct Known Subclasses:
PredatorBody, PreyBody

public class Animal
extends MobileEntity

Titre : Preys Description : Copyright : Copyright (c) 2000 Soci�t� :

Version:
1.0
Author:
J. Ferber

Field Summary
 
Fields inherited from class SEdit.Formalisms.World.MobileEntity
BOUND, convDegGrad, convGradDeg, movementType, WRAP
 
Fields inherited from class SEdit.Formalisms.World.WorldEntity
behaviorFileName, brainClass
 
Fields inherited from class SEdit.SElement
comment, descriptor, element, id, label, persistent, structure
 
Constructor Summary
Animal()
           
 
Method Summary
 void randomMove()
          moves a body into a random direction.
 
Methods inherited from class SEdit.Formalisms.World.MobileEntity
avoidObstacles, detect, directTowards, getDetectingRange, getDirection, getDirectionTo, getDirectionTo, getDistanceTo, getMaxSpeed, getSpeed, init, isDetecting, isTouching, move, moveTo, randomDir, setDetecting, setDetectingRange, setDirection, setMaxSpeed, setRandomCptMax, setSpeed
 
Methods inherited from class SEdit.Formalisms.World.WorldEntity
addInArrow, addOutArrow, afterDoIt, beforeDoIt, bodyDoIt, delete, doIt, getBehaviorFileName, getBrain, getBrainClass, getDistance, getInArrows, getLocation, getOutArrows, getPosition, isConnectable, makeBrain, selfDelete, setBehaviorFileName, setBrain, setBrainClass, showLine, toString
 
Methods inherited from class SEdit.SNode
activate, deleteInArrow, deleteOutArrow, initGraphics, reInstall
 
Methods inherited from class SEdit.SElement
dump, getComment, getDescriptor, getGObject, getID, getLabel, getStructure, inspect, setComment, setDescriptor, setGObject, setID, setLabel, setStructure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Animal

public Animal()
Method Detail

randomMove

public void randomMove()
Description copied from class: MobileEntity
moves a body into a random direction. The body goes into the same direction randomCptMax time unit. The parameter randomCptMax may be modified using the setRandomCptMax method

Overrides:
randomMove in class MobileEntity


Copyright © Madkit Team (O. Gutknecht, J. Ferber, F. Michel et al.) All Rights Reserved.