Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
C
D
F
G
I
M
N
P
R
S
T
U
V
C
clear_all()
- Method in class
PlayField
fills the whole playfield with the food Food.TYPE_NOTHING
clear()
- Method in class
Food
returns the foodtype to TYPE_NOTHING
D
draw_all()
- Method in class
PlayField
draws the whole playfield (without microbes!)
F
fill_all(int)
- Method in class
PlayField
fills the whole playfield with the food "color" and creates the playfield borders
the playfield borders are hardcoded into the microbes brain to be unpassable
fill_random()
- Method in class
PlayField
lets "rain" food in random order onto the playfield
Food
- class
Food
.
Food()
- Constructor for class
Food
creates a TYPE_NOTHING food
Food(int)
- Constructor for class
Food
creates food of a special type
G
get_selectedmic()
- Method in class
PlayField
returns the selected microbe
getcolor()
- Method in class
Food
returns the color of this food
getcolor()
- Method in class
Microbe
returns the "color" of this microbe, the "color" depends on its current energy level
getenergy()
- Method in class
Food
returns the energy level of this food
getenergy()
- Method in class
Microbe
returns the current energy level of this microbe
getenergyloss()
- Method in class
Microbe
returns the energy loss per step
getfoodtype(int, int)
- Method in class
PlayField
returns the food type at the position (x,y) in the playfield
gettype()
- Method in class
Food
returns the type of this food
getx()
- Method in class
Microbe
returns the current x position of the microbe
gety()
- Method in class
Microbe
returns the current y position of the microbe
I
init()
- Method in class
VirtualLife
initializes the applet (GUI!)
M
manualdraw(int, int, int, int)
- Method in class
PlayField
draws the food "type" with the brush size "size" onto the position (x,y)
Microbe
- class
Microbe
.
Microbe(PlayField, int, int, int, int)
- Constructor for class
Microbe
creates a new microbe
N
new_microbe(int, int, int, int)
- Method in class
PlayField
creates a new microbe
P
paint(Graphics)
- Method in class
VirtualLife
draws the completely applet
playfield
- Variable in class
PlayField
two-dimensional array of food; allows the microbes to have a fast access to the playfield
PlayField
- class
PlayField
.
playfield_height
- Variable in class
PlayField
width and height of the playfield in units
playfield_width
- Variable in class
PlayField
width and height of the playfield in units
PlayField(int, int, int)
- Constructor for class
PlayField
creates the playfield with the parameters
R
refresh()
- Method in class
PlayField
calculates one step of every microbe and draws the changes
remove_microbe(int, int)
- Method in class
PlayField
removes the microbe at the position (x,y) on the playfield
run()
- Method in class
VirtualLife
the display-thread draws endless every "sleeptime" milliseconds the playfield
S
set_graphics(Graphics)
- Method in class
PlayField
sets graphics context for all further graphic operations
setenergy(int)
- Method in class
Microbe
sets the energy level to a new value
setenergyloss(int)
- Method in class
Microbe
sets the energy loss per step to a new value
setenergyloss(int)
- Method in class
PlayField
sets the energyloss per stepp for every microbe
settype(int)
- Method in class
Food
sets the foodtype of this food
start()
- Method in class
VirtualLife
starts the thread for the graphical display
stop()
- Method in class
VirtualLife
stops the thread when quitting the applet
T
TYPE_BAD
- Static variable in class
Food
food_type: bad food
TYPE_BORDER
- Static variable in class
Food
food_type: border
TYPE_DEATH
- Static variable in class
PlayField
additional drawmode: death
TYPE_GOOD
- Static variable in class
Food
food_type: good food
TYPE_MAXFOOD
- Static variable in class
Food
food_type: the best-energy food
TYPE_MINFOOD
- Static variable in class
Food
food_type: the lowest-energy food
TYPE_NEWLIFE
- Static variable in class
PlayField
additional drawmode: new life
TYPE_NOTHING
- Static variable in class
Food
food_type: no food
TYPE_RANDOMFOOD
- Static variable in class
PlayField
additional drawmode: random
TYPE_VERYBAD
- Static variable in class
Food
food_type: very bad food
TYPE_VERYGOOD
- Static variable in class
Food
food_type: very good food
U
update(Graphics)
- Method in class
VirtualLife
every update has a redraw as consequence
V
VirtualLife
- class
VirtualLife
.
VirtualLife()
- Constructor for class
VirtualLife
applet constructor
C
D
F
G
I
M
N
P
R
S
T
U
V
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES