Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
G
I
K
M
R
S
T
G
Gobble
- class
Gobble
.
Run the Gobble program, yet another variation on Life.
Gobble()
- Constructor for class
Gobble
Grass
- class
Grass
.
This is a simple Critter implementation.
Grass()
- Constructor for class
Grass
Initialize and remember the CritterInfo for this Critter.
GrassFace
- class
GrassFace
.
GrassFace(int, int)
- Constructor for class
GrassFace
Initialize the variables needed for this CritterFace.
getAge()
- Method in interface sim.
CritterInfo
Get the current age of this Critter, in ticks.
getBurnRate()
- Method in interface sim.
CritterInfo
Get the rate at which energy is used up, in calories per step.
getCritter(int[])
- Method in class sim.
BasicMatrixModel
getCritter(int[])
- Method in interface sim.
MatrixModel
Get the Critter at the given (row,col) address in the cell array
getCritterInfo()
- Method in class
Grass
getCritterInfo()
- Method in class
Insect
getCritterInfo()
- Method in interface sim.
Critter
This method returns the CritterInfo object that is storing information about this Critter.
getCurCalories()
- Method in interface sim.
CritterInfo
Get the number of calories this Critter has at this time
getDimensions()
- Method in class sim.
BasicMatrixModel
getDimensions()
- Method in interface sim.
MatrixModel
This method returns an int array containing the dimensions of the Matrix being modelled.
getFace(int, int)
- Method in class
Grass
getFace(int, int)
- Method in class
Insect
getFace(int, int)
- Method in interface sim.
Critter
This method returns a CritterFace (a displayable collection of Shapes) that can be used to represent this Critter in a MatrixView.
getGWindow()
- Method in class
BugWorldView
getGWindow()
- Method in interface sim.
MatrixView
Get the GWindow associated with this view for use by a MatrixController.
getLifeSpan()
- Method in interface sim.
CritterInfo
Get the life span defined for this Critter, in ticks.
getMaxCalories()
- Method in interface sim.
CritterInfo
Get the maximum number of calories this Critter can store
getPower()
- Method in interface sim.
CritterInfo
Get the current power of this Critter, in arbitrary units.
getReproductionSpan()
- Method in interface sim.
CritterInfo
Get the number of ticks between reproduction events.
getStrength()
- Method in interface sim.
CritterInfo
Get the maximum strength of this Critter, in arbitrary units
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
G
I
K
M
R
S
T