|
||||||||||
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.GGG.GGG_WB
warbot.GGG.GGG_WB_Mobile
warbot.GGG.GGG_RocketLauncher
public class GGG_RocketLauncher
Field Summary |
---|
Fields inherited from class warbot.GGG.GGG_WB_Mobile |
---|
actionTgt, butTgt, groupe, tactTgt |
Fields inherited from class warbot.GGG.GGG_WB |
---|
ALL_GROUPS, ALL_ROLES, TEAM |
Constructor Summary | |
---|---|
GGG_RocketLauncher()
|
Method Summary | |
---|---|
void |
activate()
This method is initially called when the micro-kernel registers the agent. |
protected void |
actualiserBut()
|
protected void |
actualiserRole()
|
protected void |
actualiserTactique()
|
void |
doIt()
This method controls the behavior of a robot. |
protected void |
effectuerBut()
|
protected void |
effectuerRole()
|
protected void |
effectuerTactique()
|
void |
end()
This method is called by the agent micro-kernel at the end of the agent lifecycle. |
protected void |
introspecter()
|
Methods inherited from class warbot.GGG.GGG_WB_Mobile |
---|
arcInterdit, arcsInterdits, calculerEvitement, enVue, orienterAvecCorrection, orienterOpposeAvecCorrection, retablirCible, spirale, suivre, toucheUnAmi, tournerAutour |
Methods inherited from class warbot.GGG.GGG_WB |
---|
distanceTo, localiserAmi, modulo, toDegre, toRadian |
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 |
Constructor Detail |
---|
public GGG_RocketLauncher()
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 GGG_WB_Mobile
public void doIt()
Brain
doIt
in class GGG_WB_Mobile
public void end()
AbstractAgent
end
in class AbstractAgent
protected void introspecter()
introspecter
in class GGG_WB_Mobile
protected void actualiserRole()
actualiserRole
in class GGG_WB_Mobile
protected void effectuerRole()
effectuerRole
in class GGG_WB_Mobile
protected void actualiserTactique()
actualiserTactique
in class GGG_WB_Mobile
protected void effectuerTactique()
effectuerTactique
in class GGG_WB_Mobile
protected void actualiserBut()
actualiserBut
in class GGG_WB_Mobile
protected void effectuerBut()
effectuerBut
in class GGG_WB_Mobile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |