- getAuthorName() - Method in class Creature
-
Allows GUI browsers to display your name as author of this creature.
- getClassId() - Method in class Creature
-
Each creature species is assigned a unique class ID for each trial,
except Treasure, Apple, and Flytrap, which always have the same values.
- getClassName() - Method in class Creature
-
Name of this species of creature.
- getComputeTimeSinceSpawn(Creature) - Method in class Simulator
-
- getCreature(int, int) - Method in class Simulator
-
Returns the creature at x, y on the grid.
- getCreatureColor(Class) - Method in class Simulator
-
- getCreatureColor(int) - Method in class Simulator
-
- getCreatureCount(Class) - Method in class Simulator
-
Returns the number of creatures of this species alive in the map.
- getDescription() - Method in class Creature
-
Allows GUI browsers to display information and credits about
your creature.
- getDimensions() - Method in class Simulator
-
Returns the size of the map.
- getDirection() - Method in class Creature
-
Direction this creature is facing.
- getDirection(Creature) - Method in class Simulator
-
Throws a ConvertedError if the Creature is not in the world.
- getGameTime() - Method in class Creature
-
Returns the time in virtual nanoseconds since the simulation started.
- getIconHeight() - Method in class Simulator
-
- getIconHeight() - Method in class Tournament
-
- getIconWidth() - Method in class Simulator
-
- getIconWidth() - Method in class Tournament
-
- getId() - Method in class Creature
-
Each creature has a unique number that it can use to
distinguish itself from others.
- getImage(Creature, Direction) - Static method in class Simulator
-
- getImage(Class, Direction) - Static method in class Simulator
-
Returns the image for this Creature subclass.
- getInfo() - Method in class Simulator
-
Returns a description of the simulator
- getIntraTurnTime() - Method in class Simulator
-
Returns the wall-clock time of waitBetweenTurns() in
nanoseconds.
- getLabel() - Method in class Creature
-
Used by Simulator for labeling the icons in 2D render mode.
- getMapDimensions() - Method in class Creature
-
Returns the size of the map.
- getMostCommonColor(Map<Integer, Integer>) - Static method in class Simulator
-
- getMovePosition(int) - Method in class Creature
-
The coordinates of the next position this Creature will enter
if it moves n times, regardless of whether that position is
currently empty.
- getMovePosition() - Method in class Creature
-
- getMyTimeSinceSpawn() - Method in class Creature
-
The time in virtual nanoseconds that this Creature has spent
in actions and computing since it spawned.
- getNaturalHeight() - Method in class Simulator
-
- getNaturalWidth() - Method in class Simulator
-
- getNumSpeciesLeft() - Method in class Simulator
-
Returns the number of different species left alive, excluding Flytraps.
- getPheromone() - Method in class Creature
-
Returns the pheromone at this creature's current
location.
- getPheromone(Creature) - Method in class Simulator
-
Throws a ConvertedError if the Creature is not in the world.
- getPosition() - Method in class Creature
-
Returns the position of this Creature.
- getPosition(Creature) - Method in class Simulator
-
Clones the position.
- getResult() - Method in class Simulator
-
Returns a description of the final outcome, or null if the game has not yet ended.
- getSound(Creature, Simulator.Condition) - Static method in class Simulator
-
Returns the appropriate sound for this creature.
- getSound(Class, Simulator.Condition) - Static method in class Simulator
-
- getTime() - Method in class Creature
-
Deprecated.
Use getGameTime instead
- getTime(Creature) - Method in class Simulator
-
Total time for this creature; on spawn, this is inherited from the parent.
- getTime() - Method in class Simulator
-
Returns the number of virtual milliseconds since the game
began.
- getTitle() - Method in class Simulator
-
Name of this map
- getToolTip(Point) - Method in class Simulator
-
Assumes that p is in bounds
- getTotalTimeSinceSpawn(Creature) - Method in class Simulator
-
- getTurns(Creature) - Method in class Simulator
-
Returns the number of turns this creature has taken.
- getTurnTime() - Method in class Creature
-
Returns the time in virtual nanoseconds since this creature's current
turn started.
- getTurnTime() - Method in class Simulator
-
Returns the time in virtual nanoseconds since the current creature's
current turn started.
- getType() - Method in class Creature
-
- getVersion() - Static method in class Darwin
-
Reports the simulator version number.
- getVersion() - Static method in class Simulator
-
Reports the version of this simulator.
- getView3D() - Method in class Simulator
-
- SCALE_2D - Static variable in class Simulator
-
2D grid size in pixels.
- screenPointToLocation(int, int) - Method in class Simulator
-
Returns the location under the position (x, y) if in 2D mode
and in bounds, and null otherwise
- SECONDS - Static variable in class Simulator
-
One second in nanoseconds.
- setIntraTurnTime(long) - Method in class Simulator
-
Set the wall-clock time to wait between turns in nanoseconds.
- setSelectedCreature(Creature) - Method in class Simulator
-
- setView3D(boolean) - Method in class Simulator
-
If true, the view renders in 3D
- sharedClasses - Static variable in class Simulator
-
Shared between ClassLoader (Sandbox) instances
- shortName(String) - Static method in class Simulator
-
Strips the capital letters off the right of a creature name.
- shrineClassId() - Method in class Creature
-
If this creature is on a shrine, returns the classID of the
creatures that own the shrine.
- shrineClassId - Variable in class Observation
-
- shrineClassId(Creature) - Method in class Simulator
-
If this creature is on a shrine, returns the classID of the
creatures that own the shrine.
- Simulator - Class in <Unnamed>
-
Darwin 2.1 simulator.
- Simulator(String, Class[]) - Constructor for class Simulator
-
Loads the specified map, instantiating each of the creatures
for the numbered spots in the map.
- Simulator.Condition - Enum in <Unnamed>
-
- Simulator.QuietRunnable - Class in <Unnamed>
-
A version of Runnable that suppresses output
- Simulator.QuietRunnable() - Constructor for class Simulator.QuietRunnable
-
- Simulator.Result - Class in <Unnamed>
-
- Simulator.Result(String, Class, String, Image, long, Map<Class, Simulator.Species>) - Constructor for class Simulator.Result
-
- Simulator.Result.Code - Enum in <Unnamed>
-
- Simulator.Species - Class in <Unnamed>
-
Aggregate information about the performance of an entire species
- Simulator.Species(Class, int) - Constructor for class Simulator.Species
-
- species - Variable in class Simulator.Result
-
One of the winning species, null if none.
- speciesStats - Variable in class Simulator.Result
-
Data about each species
- start(String, Class[]) - Method in class Simulator
-
Load a new map and start a simulation.
- stop() - Method in class Simulator
-
End simulation, without destroying final state.
- SYNTAX_HELP - Static variable in class Darwin
-
- THORN - Static variable in class Creature
-
Deprecated.
Old name for HAZARD
- THORN - Static variable in enum Type
-
Deprecated.
Old name for HAZARD
- THORN_CLASS_ID - Static variable in class Creature
-
Deprecated.
Old name for HAZARD_CLASS_ID
- time - Variable in class Observation
-
- timeLimit() - Method in class Simulator
-
Total time allowed in virtual nanoseconds for the game on the current map.
- timeSteps - Variable in class Simulator.Result
-
Game time in virtual nanoseconds at which the result occured.
- toInt() - Method in enum Direction
-
Returns a number between 0 and 3: NORTH = 0, EAST = 1, ...
- toInt() - Method in enum Simulator.Condition
-
- toString(Point) - Static method in class Creature
-
Prints a point to a string concisely.
- toString() - Method in class Observation
-
- toString() - Method in class Simulator.Result
-
- toString() - Method in class Simulator.Species
-
- toString() - Method in class Simulator
-
Returns a printable text representation of the map
- totalActions() - Method in class Simulator.Species
-
- totalTime - Variable in class Simulator.Species
-
Total time spent in actions and compute for all creatures
of this type, in nanoseconds.
- Tournament - Class in <Unnamed>
-
Graphical display and management of Darwin Game tournaments.
- Tournament(String, String[]) - Constructor for class Tournament
-
- TREASURE_CLASS_ID - Static variable in class Creature
-
The class ID for a Treasure.
- TURN_COST - Static variable in class Simulator
-
- turnCount - Variable in class Simulator.Species
-
Total number of turn actions
- turnLeft() - Method in class Creature
-
Rotate counter-clockwise 90 degrees.
- turnLeft(Creature) - Method in class Simulator
-
- turnPercent() - Method in class Simulator.Species
-
- turnRight() - Method in class Creature
-
Rotate clockwise 90 degrees.
- turnRight(Creature) - Method in class Simulator
-
Called by a creature to turn
- type - Variable in class Observation
-
Type of object at this location.
- Type - Enum in <Unnamed>
-
Types of Entitys that can be in a location.