|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.kernel.AbstractAgent
warbot.kernel.Brain
warbot.BPV_team.Robot
warbot.BPV_team.BPVHomeKiller
public class BPVHomeKiller
Field Summary | |
---|---|
static int |
AIDE_ATTAQUE
|
static int |
AIDE_BASE_AMIE
|
static int |
AIDE_BASE_ENNEMIE
|
static int |
AIDE_EXPLORER
|
static int |
AIDE_LAUNCHER
|
static int |
AIDE_ROCKET
|
Fields inherited from class warbot.BPV_team.Robot |
---|
bases_ennemies, coordonnees, groupName, liste_rockets, synchro, tour |
Constructor Summary | |
---|---|
BPVHomeKiller()
|
Method Summary | |
---|---|
void |
activate()
This method is initially called when the micro-kernel registers the agent. |
void |
doIt()
This method controls the behavior of a robot. |
void |
end()
This method is called by the agent micro-kernel at the end of the agent lifecycle. |
void |
monEtat()
|
Methods inherited from class warbot.BPV_team.Robot |
---|
baseEnnemieConnue, baseEnnemieSuppr, enDouble, eviteObstacles, eviteRockets, miseAJourMouvement |
Methods inherited from class warbot.kernel.Brain |
---|
bagSize, broadcast, broadcast, broadcast, broadcast, broadcastMessage, buildRocket, createAgent, distanceTo, drop, dropAll, eat, edit, getBagCapacity, getBagPercepts, getCoveredDistance, getEnergyLevel, getHeading, getMaximumEnergy, getPercepts, getResourceLevel, getRocketNumber, getShot, getTeam, init, isBagEmpty, isBagFull, isMoving, isMyBagEmpty, isMyBagFull, isShowUserMessage, launchRocket, move, randomHeading, readMessage, receiveMessage, send, send, send, send, sendMessage, sendMessage, setHeading, setUserMessage, showUserMessage, take, towards |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int AIDE_EXPLORER
public static final int AIDE_ROCKET
public static final int AIDE_BASE_ENNEMIE
public static final int AIDE_LAUNCHER
public static final int AIDE_ATTAQUE
public static final int AIDE_BASE_AMIE
Constructor Detail |
---|
public BPVHomeKiller()
Method Detail |
---|
public void activate()
AbstractAgent
Here is a typical example (taken from the PingPong
agent of MadKit (plugin demos)) :
public void activate() { try { createGroup(true,"ping-pong",null,null); println ("No ping-pong group : I created one"); creator=true; } catch (OrganizationRequestException e) { // the group already exists creator=false; println ("A ping-pong group already exists : I will join"); } requestRole("ping-pong","player",null); }
activate
in class Robot
public void end()
AbstractAgent
end
in class AbstractAgent
public void monEtat()
monEtat
in class Robot
public void doIt()
Brain
doIt
in class Robot
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |