Index of all Fields and Methods
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

A

actor. Static variable in class republikensoft.Gunfighter
actor[0] - The Good (blue)
actor[1] - The Bad and Ugly (red)

B

Bullet(). Constructor for class republikensoft.Bullet
All bullets are created by a Player.

C

coord. Variable in class republikensoft.Moving

D

dead. Variable in class republikensoft.Moving
die(). Method in class republikensoft.Player
This method is called when the player been hit by a bullet.
draw(Graphics). Method in class republikensoft.Bullet
Draws the bullet translated a couple of pixels so coord is the centre of the bullet.
draw(Graphics). Method in class republikensoft.Moving
draw(Graphics). Method in class republikensoft.Obstacle
Draws the obstacle.
draw(Graphics). Method in class republikensoft.Player
Draws the player.
drawBullets(Graphics). Method in class republikensoft.Player
Draws the players moving bullets.

F

fire(int, int, int). Method in class republikensoft.Bullet
Fires a new bullet.

G

gameState. Static variable in class republikensoft.Gunfighter
This variable controls the behavior of the game.
getAmmo(). Method in class republikensoft.Player
getCentre(). Method in class republikensoft.Obstacle
getHit(). Method in class republikensoft.Player
getPolygon(). Method in class republikensoft.Obstacle
getSign(). Method in class republikensoft.Tree
Gunfighter(). Constructor for class republikensoft.Gunfighter

H

handleEvent(Event). Method in class republikensoft.Gunfighter
Takes care of user input.
helpPoly(int). Method in class republikensoft.Obstacle

I

init(). Method in class republikensoft.Gunfighter
Sets up some drawing areas, fonts, colours and builds the obstacle polygons.

M

magSize. Static variable in class republikensoft.Player
How many bullets each player has.
maxBorderPass. Static variable in class republikensoft.Bullet
How may times a bullet can pass the vertical edges.
maxMilage. Static variable in class republikensoft.Bullet
How many pixels a bullet can travel, at most.
Moving(). Constructor for class republikensoft.Moving

O

Obstacle(Image, int, int, Polygon). Constructor for class republikensoft.Obstacle
obstacles. Static variable in class republikensoft.Gunfighter
This array contains the obstacles for the current playfield.
otherPlayer. Variable in class republikensoft.Player
Used to be able to give the other player points when hit by a bullet and to find out which player died.

P

paint(Graphics). Method in class republikensoft.Gunfighter
Draws the offscreen buffer into the screen.
Player(Image[], int[], boolean). Constructor for class republikensoft.Player

R

run(). Method in class republikensoft.Gunfighter
The main loop of the game.

S

scenes. Variable in class republikensoft.Gunfighter
Array of arrays containing tripples with object types and coordinates.
screenHeight. Static variable in class republikensoft.Gunfighter
Playfield height.
screenWidth. Static variable in class republikensoft.Gunfighter
Playfield width.
sfx. Static variable in class republikensoft.Gunfighter
The sound effects.
shoot(). Method in class republikensoft.Player
Fire the gun.
start(). Method in class republikensoft.Gunfighter
Creates a new game thread.
stop(). Method in class republikensoft.Gunfighter
Stops the game and soundplaying.

T

textures. Static variable in class republikensoft.Gunfighter
All the obstacle's textures and the bullet texture.
Tree(Image, int, int, Polygon). Constructor for class republikensoft.Tree

U

update(). Method in class republikensoft.Bullet
Updates the bullet.
update(). Method in class republikensoft.Moving
update(). Method in class republikensoft.Player
Updates the player and his bullets.
update(Graphics). Method in class republikensoft.Gunfighter
Draws into offscreen depending of gameState.
userInput(int, boolean). Method in class republikensoft.Player
Acts on user input if the player doesn't collide with something.