|
||||||||||
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
public class WorldEntity
Field Summary | |
---|---|
protected java.lang.String |
behaviorFileName
|
protected java.lang.String |
brainClass
|
Fields inherited from class SEdit.SElement |
---|
comment, descriptor, element, id, label, persistent, structure |
Constructor Summary | |
---|---|
WorldEntity()
|
Method Summary | |
---|---|
protected void |
addInArrow(SArrow a)
|
protected void |
addOutArrow(SArrow a)
|
void |
afterDoIt()
Method asked after the activation of entities |
void |
beforeDoIt()
Method asked before the activation of entities |
void |
bodyDoIt()
The activator of entities which do not have brain |
void |
delete()
Delete an entity, and its brain if there is one. |
void |
doIt()
The generic activators of entities. |
java.lang.String |
getBehaviorFileName()
Return the behavior file name attached to the brain class used for scripting. |
Brain |
getBrain()
Get the brain of an entity which generally derives from AbstractAgent. |
java.lang.String |
getBrainClass()
Get the brain class name of an entity which generally derives from AbstractAgent. |
int |
getDistance(WorldEntity e)
Computes and returns the distance between two entities |
java.util.Vector |
getInArrows()
|
java.awt.Point |
getLocation()
|
java.util.Vector |
getOutArrows()
|
java.awt.Point |
getPosition()
Returns the position of an entity, given as a Point. |
protected boolean |
isConnectable(SArrow s,
boolean isTarget)
|
void |
makeBrain(java.lang.String className,
java.lang.String name,
boolean gui,
java.lang.String behaviorFileName)
Creates the brain and launches if it is an agent. |
void |
selfDelete()
|
void |
setBehaviorFileName(java.lang.String s)
Set the behavior file name attached to the brain class used for scripting the behavior. |
void |
setBrain(Brain b)
Set the brain of an entity. |
void |
setBrainClass(java.lang.String s)
set the brain class name of an entity. |
void |
showLine(WorldEntity e,
java.awt.Color c)
|
java.lang.String |
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, init, 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 java.lang.String brainClass
protected java.lang.String behaviorFileName
Constructor Detail |
---|
public WorldEntity()
Method Detail |
---|
public java.util.Vector getInArrows()
getInArrows
in class SNode
public java.util.Vector getOutArrows()
getOutArrows
in class SNode
protected void addOutArrow(SArrow a)
addOutArrow
in class SNode
protected void addInArrow(SArrow a)
addInArrow
in class SNode
protected boolean isConnectable(SArrow s, boolean isTarget)
isConnectable
in class SNode
public java.awt.Point getLocation()
public void setBrain(Brain b)
public Brain getBrain()
public void setBrainClass(java.lang.String s)
public java.lang.String getBrainClass()
public void setBehaviorFileName(java.lang.String s)
public java.lang.String getBehaviorFileName()
public java.awt.Point getPosition()
public int getDistance(WorldEntity e)
public void makeBrain(java.lang.String className, java.lang.String name, boolean gui, java.lang.String behaviorFileName)
public void showLine(WorldEntity e, java.awt.Color c)
public void delete()
delete
in class SNode
public void selfDelete()
public void doIt()
public void bodyDoIt()
public void beforeDoIt()
public void afterDoIt()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |