SEdit.Formalisms.World.Ants
Class AbstractAnt
java.lang.Object
SEdit.SElement
SEdit.SNode
SEdit.Formalisms.World.WorldEntity
SEdit.Formalisms.World.MobileEntity
SEdit.Formalisms.World.Ants.AbstractAnt
- Direct Known Subclasses:
- MarkingAnt, SimpleAnt
- public abstract class AbstractAnt
- extends MobileEntity
Field Summary |
protected boolean |
carrying
|
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.SElement |
dump, getComment, getDescriptor, getGObject, getID, getLabel, getStructure, inspect, setComment, setDescriptor, setGObject, setID, setLabel, setStructure |
carrying
protected boolean carrying
AbstractAnt
public AbstractAnt()
getHome
public WorldEntity getHome()
setHome
public void setHome(WorldEntity p)
isCarrying
public boolean isCarrying()
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
eat
public void eat(WorldEntity e)
Copyright © J. Ferber, O. Gutknecht All Rights Reserved.