|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSEdit.SElement
SEdit.SNode
SEdit.Formalisms.World.WorldEntity
SEdit.Formalisms.World.MobileEntity
SEdit.Formalisms.World.Ants.AbstractAnt
public abstract class AbstractAnt
| Field Summary | |
|---|---|
protected boolean |
carrying
|
| 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 | |
|---|---|
AbstractAnt()
|
|
| Method Summary | |
|---|---|
void |
eat(WorldEntity e)
|
WorldEntity |
getHome()
|
boolean |
isCarrying()
|
void |
randomMove()
moves a body into a random direction. |
void |
setHome(WorldEntity p)
|
| 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 |
| Field Detail |
|---|
protected boolean carrying
| Constructor Detail |
|---|
public AbstractAnt()
| Method Detail |
|---|
public WorldEntity getHome()
public void setHome(WorldEntity p)
public boolean isCarrying()
public void randomMove()
MobileEntity
randomMove in class MobileEntitypublic void eat(WorldEntity e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||