|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmadkit.kernel.AbstractAgent
edu.turtlekit2.kernel.agents.Turtle
edu.turtlekit2.demos.gas.Gas
public class Gas
Adapted from the gas simulation of TurtleKit (v1).
Field Summary | |
---|---|
int |
wall
|
Fields inherited from class edu.turtlekit2.kernel.agents.Turtle |
---|
angle, angleCos, angleSin, color, East, hidden, initMethod, North, NorthEast, NorthWest, position, South, SouthEast, SouthWest, TURTLE_DEFAULT_ROLE, West, x, y |
Constructor Summary | |
---|---|
Gas()
|
Method Summary | |
---|---|
String |
go()
The gas looks for free space (without an other turtle or a wall) but can't go through the wall (white color patches) and rebounds against the sides of the world |
void |
setup()
|
Methods inherited from class madkit.kernel.AbstractAgent |
---|
broadcastMessage, broadcastMessage, connectedWithCommunity, createGroup, createGroup, debug, disposeMyGUI, foundGroup, getAddress, getAgentInformation, getAgentsWithRole, getAgentsWithRole, getAgentWithRole, getAgentWithRole, getAvailableCommunities, getBean, getController, getCurrentKernelAddress, getDebug, getExistingGroups, getExistingGroups, getExistingRoles, getExistingRoles, getGroups, getGUIObject, getMessageBoxSize, getMyGroups, getMyGroups, getMyRoles, getMyRoles, getName, getRoles, hasGUI, hashCode, initGUI, isBelongingToGroup, isBelongingToGroup, isCommunity, isGroup, isGroup, isMemberOf, isMemberOf, isMessageBoxEmpty, isRole, isRole, joinGroup, killAgent, launchAgent, launchAgent, leaveGroup, leaveGroup, leaveRole, leaveRole, nextMessage, print, println, receiveMessage, redisplayMyGUI, requestRole, requestRole, requestRole, restoreAgent, sendMessage, sendMessage, sendMessage, setBean, setController, setDebug, setGUIObject, setName, setOutput, setOutputWriter, windowClosing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int wall
Constructor Detail |
---|
public Gas()
Method Detail |
---|
public void setup()
setup
in class Turtle
public String go()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |