Class Reactor
Class Reactor
java.lang.Object
|
+----Component
|
+----Tank
|
+----Reactor
-
class
Reactor
-
extends Tank
A reactor tank component for the nuclear power plant
-
Version:
-
1.0
-
Author:
-
Henrik Eriksson
-
crashed_reactor_bm
-
Image for a blown reactor tank
-
dragDelta
-
The distance of the drag
-
moderatorOutlinePos
-
The position of the outline of the dragged moderator rods
-
radiak_bm
-
Radiation sign (image)
-
vatten_bm
-
Water (surface) images for animation
-
meltdown()
-
Perform the meltdown animation.
-
mouseDown(int, int)
-
Handle mouseDown events (i.e., clicks on moderator rods).
-
mouseDrag(int, int)
-
Handle mouseDrag events.
-
mouseUp(int, int)
-
Handle mouseUp events.
-
paint(Graphics)
-
Paint operation for the reactor tank
-
paintMeltdown(Graphics)
-
Paint operation for the meltdown animation
vatten_bm
protected static Image vatten_bm[]
-
Water (surface) images for animation
crashed_reactor_bm
protected static Image crashed_reactor_bm
-
Image for a blown reactor tank
radiak_bm
protected static Image radiak_bm
-
Radiation sign (image)
dragDelta
protected int dragDelta
-
The distance of the drag
moderatorOutlinePos
protected int moderatorOutlinePos
-
The position of the outline of the dragged moderator rods
meltdown
public void meltdown()
-
Perform the meltdown animation. Called when the reactor
core is overheated
paintMeltdown
public void paintMeltdown(Graphics g)
-
Paint operation for the meltdown animation
-
Parameters:
-
g
-
The graphics context
paint
public void paint(Graphics g)
-
Paint operation for the reactor tank
-
Parameters:
-
g
-
The graphics context
mouseDown
public void mouseDown(int x,
int y)
-
Handle mouseDown events (i.e., clicks on moderator rods).
-
Parameters:
-
x
-
The X coordinate
-
y
-
The Y coordinate
mouseDrag
public void mouseDrag(int x,
int y)
-
Handle mouseDrag events. This method allows the user to
drag moderator rods
-
Parameters:
-
x
-
The X coordinate
-
y
-
The Y coordinate
mouseUp
public void mouseUp(int x,
int y)
-
Handle mouseUp events. This method sets the moderatorPercent
-
Parameters:
-
x
-
The X coordinate
-
y
-
The Y coordinate