All Packages Class Hierarchy
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Index of all Fields and Methods
- add(Sprite).
Method in class SpriteVector
- Use a binary search to find the right location to insert the
new sprite (based on z-order).
- addSprite(BitSet).
Method in class Sprite
- Add a Sprite - does nothing ?
- animate.
Variable in class NightHunter
-
- applause.
Variable in class NightHunter
-
- BA_BOUNCE.
Static variable in class Sprite
- Bounds actions
- BA_DIE.
Static variable in class Sprite
- Bounds actions
- BA_STOP.
Static variable in class Sprite
- Bounds actions
- BA_WRAP.
Static variable in class Sprite
- Bounds actions
- back.
Variable in class NightHunter
-
- background.
Variable in class SpriteVector
-
- Background(Component).
Constructor for class Background
- Background class constructor method - sets background size
- blinkDelay.
Variable in class Eyes
- "Eye" blink rate and trigger variables
- blinkTrigger.
Variable in class Eyes
- "Eye" blink rate and trigger variables
- bounds.
Variable in class Sprite
-
- boundsAction.
Variable in class Sprite
-
- clip.
Variable in class NightHunter
-
- collision.
Variable in class Sprite
-
- collision(int, int).
Method in class SpriteVector
- Swap velocities (bounce).
- collision(int, int).
Method in class SRVector
- None of the Sprites need collision handling so this
method is overridden to do nothing.
- component.
Variable in class Background
-
- component.
Variable in class Sprite
-
- delay.
Variable in class NightHunter
- Animation frame rate = 12 FPS
- draw(Graphics).
Method in class Background
- Draw Background in a single color
- draw(Graphics).
Method in class ImageBackground
- Draw background image.
- draw(Graphics).
Method in class Sprite
- Draw the bitmap Sprite image if not hidden
- draw(Graphics).
Method in class SpriteVector
- Draw the background and iterate through sprites, drawing each
- Eyes(Component, int, int, int).
Constructor for class Eyes
- Eye class constructor method - set eye initial location
and "blink" rate.
- frame.
Variable in class Sprite
-
- frameDelay.
Variable in class Sprite
-
- frameInc.
Variable in class Sprite
-
- frameTrigger.
Variable in class Sprite
-
- getAppletInfo().
Method in class NightHunter
-
- getBackground().
Method in class SpriteVector
- Get the background object.
- getBounds().
Method in class Sprite
- Get the Sprite image collision bounds.
- getCollision().
Method in class Sprite
- Get the Sprite image collision coordinates.
- getEmptyPosition(Dimension).
Method in class SpriteVector
- This method allows Sprites to be placed randomly on the
screen without overlapping.
- getFrame().
Method in class Sprite
- Get the current animation frame image.
- getFrameInc().
Method in class Sprite
- Get the current animation frame counter.
- getImage().
Method in class ImageBackground
- Return the background "image" object
- getImage().
Method in class Sprite
- Get an image object of this class object.
- getPosition().
Method in class Sprite
- Get the current rectangular position of the Sprite image.
- getSize().
Method in class Background
- Returns Background size
- getVelocity().
Method in class Sprite
- Get the current velocity of the Sprite image.
- getZOrder().
Method in class Sprite
- Get the Sprite image z-order position.
- gun.
Variable in class NightHunter
- Mouse/Gun image
- gunImage.
Variable in class NightHunter
-
- gunsound.
Variable in class NightHunter
-
- hidden.
Variable in class Sprite
-
- hide().
Method in class Sprite
- Hide the Sprite from display.
- image.
Static variable in class Eyes
- "Eye" image frame array
- image.
Variable in class ImageBackground
-
- image.
Variable in class Sprite
-
- ImageBackground(Component, Image).
Constructor for class ImageBackground
- ImageBackground constructor method sets image for background
- incFrame().
Method in class Eyes
- Increment image frames and set frames to synchronize
with the "blink" delay.
- incFrame().
Method in class Sprite
- Increment the current animation frame.
- infoFont.
Variable in class NightHunter
-
- infoMetrics.
Variable in class NightHunter
-
- init().
Method in class NightHunter
- Game initialization method - starts the MediaTracker (needed
to make sure images are completely loaded), load game
background the mouse - gun images, and load audio clips.
- initResources(Applet, MediaTracker, int).
Static method in class Eyes
- Initialize Resources - get bitmap images and synchronize with
the Media Tracker.
- isPointInside(Point).
Method in class Sprite
- See if a point is inside the Sprite bounding box limits.
- isPointInside(Point).
Method in class SpriteVector
- Returns a Sprite if the point lies within a Sprite.
- isPointInside(Point).
Method in class SRVector
- This method is necessary to determine when and "Eye" class
has been clicked by the mouse otherwise because of the z-ordering
of bitmap images the "gun" image would always be returned.
- keyDown(Event, int).
Method in class NightHunter
- Keyboard keyDown Event - check for user input
for new game or toggle music on/off.
- killed.
Static variable in class NightHunter
-
- level.
Static variable in class NightHunter
-
- lost.
Static variable in class NightHunter
-
- mouseDown(Event, int, int).
Method in class NightHunter
- Mouse Down Event - check if mouse/gun is over
sprite, if it is kill sprite.
- mouseEnter(Event, int, int).
Method in class NightHunter
- Mouse Enter Event - when mouse enters game frame
show gun crosshairs.
- mouseExit(Event, int, int).
Method in class NightHunter
- Mouse Exit Event - when mouse exits game frame
hide gun crosshairs.
- mouseMove(Event, int, int).
Method in class NightHunter
- Mouse Move Event - update gun crosshair position.
- music.
Variable in class NightHunter
-
- musicOn.
Variable in class NightHunter
-
- newGame().
Method in class NightHunter
- Setup a new game.
- NightHunter().
Constructor for class NightHunter
-
- offGrfx.
Variable in class NightHunter
-
- offImage.
Variable in class NightHunter
-
- paint(Graphics).
Method in class NightHunter
- Paint method that uses the Media Tracker to insure images
are loaded.
- position.
Variable in class Sprite
-
- rand.
Static variable in class Eyes
- Random number generator
- rand.
Variable in class NightHunter
-
- run().
Method in class NightHunter
- When an object is derived from a "Runnable" class then this
method is called right after the thread "start()" method
completes.
- SA_ADDSPRITE.
Static variable in class Sprite
- Sprite action flags
- SA_KILL.
Static variable in class Sprite
- Sprite action flags
- SA_RESTOREPOS.
Static variable in class Sprite
- Sprite action flags
- setBackground(Background).
Method in class SpriteVector
- Set the background.
- setBounds(Rectangle).
Method in class Sprite
- Set the Sprite image collision bounds.
- setCollision().
Method in class Eyes
- Set the collision boundary rectangle for the image.
- setCollision().
Method in class Sprite
- Set the Sprite image collision coordinates.
- setFrameInc(int).
Method in class Sprite
- Set thje current animation frame counter.
- setImage(Image).
Method in class ImageBackground
- Sets image for background
- setImage(Image[]).
Method in class Sprite
- Set this classes image object.
- setPosition(Point).
Method in class Sprite
- Move the current rectangular position of the Sprite image.
- setPosition(Rectangle).
Method in class Sprite
- Set the current rectangular position of the Sprite image.
- setVelocity(Point).
Method in class Sprite
- Set the current velocity of the Sprite image.
- show().
Method in class Sprite
- Set the Sprite to display.
- size.
Variable in class Background
-
- Sprite(Component, Image, Point, Point, int, int).
Constructor for class Sprite
- Sprite constructor method for a single image bitmap with
NO frame animation.
- Sprite(Component, Image[], int, int, int, Point, Point, int, int).
Constructor for class Sprite
- Sprite constructor method for an bitmap image that uses multiple
frame animation.
- SpriteVector(Background).
Constructor for class SpriteVector
- SpriteVector constructor method - sets the background.
- srv.
Variable in class NightHunter
-
- SRVector(Background).
Constructor for class SRVector
-
- start().
Method in class NightHunter
- Standard thread start handler method
- stop().
Method in class NightHunter
- Standard thread termination handler method - *** added
call to stop music when thread terminates
- testCollision(Sprite).
Method in class Sprite
- Check for collision with another sprite.
- testCollision(Sprite).
Method in class SpriteVector
- Check for collision with other sprites.
- tracker.
Variable in class NightHunter
-
- update().
Method in class Eyes
- See if the "Eye" bitmap image escaped the screen.
- update().
Method in class Sprite
- This method is the main run-time method for the "Sprite"
class.
- update().
Method in class SpriteVector
- Iterate through Sprites, updating each
- update(Graphics).
Method in class NightHunter
- This image update method uses "double-buffering" for bitmap
images to eliminate screen flicker.
- velocity.
Variable in class Sprite
-