|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwarbot.kernel.Percept
public class Percept
In warbot, everything is only Percept for a Brain. the informations given by the Percept are all relative to the position of Body of the Brain
Method Summary | |
---|---|
AgentAddress |
getAgent()
returns the AgentAddress of the perceived body (if any) |
double |
getDistance()
returns the relative distance to the perceived entity |
int |
getEnergy()
returns the energy of the Percept detected (if any) |
protected Entity |
getEntity()
|
java.lang.String |
getPerceptType()
returns a label which represents the type of the perceived entity |
int |
getRadius()
returns the radius of the perceived entity |
java.lang.String |
getTeam()
returns the team of the Percept detected (if any) |
double |
getX()
returns the relative x coordinate of the perceived entity |
double |
getY()
returns the relative y coordinate of the perceived entity |
void |
setPerceptType(java.lang.String s)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected Entity getEntity()
public double getDistance()
public double getX()
public double getY()
public int getRadius()
public java.lang.String getTeam()
public int getEnergy()
public AgentAddress getAgent()
public java.lang.String getPerceptType()
public void setPerceptType(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |