A B C D E F G I L M N O P R S T U W

A

addBomb(Bomb) - Method in class objects.World
 
addBombPack(BombPack) - Method in class objects.World
 
addCollidable(DrawableGameObject) - Method in class objects.World
 
addDecoration(DrawableGameObject) - Method in class objects.World
 
addExplosion(Explosion) - Method in class objects.World
 
addPhaser(Phaser) - Method in class objects.World
 
addPlayer(Player) - Method in class objects.World
 
addStar(Star) - Method in class objects.World
 
annotateBoardImage(Graphics) - Method in class client.UserDefinedClient
Lets you draw on the game board.

B

Bomb - class objects.Bomb.
This is a targeting bomb.
BOMB - Static variable in class objects.WeaponType
The targeting bomb
Bomb(short, Player, int, int, double, Color) - Constructor for class objects.Bomb
Constructs a new tareting bomb, with the given initial settings.
Bomb(short, Player, int, int, short, Color) - Constructor for class objects.Bomb
Constructs a new tareting bomb, with the given initial settings.
BombPack - class objects.BombPack.
This is a bomb pack, any left over weapons from a killed player.
BombPack(short, int, int, double, Color) - Constructor for class objects.BombPack
Constructs a new bomb pack, with the given initial settings.
BombPack(short, int, int, short, Color) - Constructor for class objects.BombPack
Constructs a new bomb pack, with the given initial settings.
bounds - Variable in class objects.DrawableGameObject
 

C

client - package client
 

D

decBombsLeft(int) - Method in class objects.Player
Decreases the number of bombs left by the given number.
decDamage(int) - Method in class objects.Player
Decreases the damage by the given amount.
decPhaserHeat(int) - Method in class objects.Player
Decreases phaser heat by the given amount, making sure it doesn't get below zero.
dir - Variable in class objects.DrawableGameObject
 
draw(Graphics) - Method in class objects.Star
 
draw(Graphics) - Method in class objects.Ship
 
draw(Graphics) - Method in class objects.Phaser
 
draw(Graphics) - Method in class objects.Explosion
 
draw(Graphics) - Method in class objects.DrawableGameObject
Draws the object in the given graphic context.
draw(Graphics) - Method in class objects.BombPack
 
draw(Graphics) - Method in class objects.Bomb
 
DrawableGameObject - class objects.DrawableGameObject.
Superclass for game objects that are visible on the game board.
DrawableGameObject() - Constructor for class objects.DrawableGameObject
Constructor for object that doesn't need all the functionality the other constructors provide.
DrawableGameObject(short, int, int, double) - Constructor for class objects.DrawableGameObject
Constructs a new drawable game object, with the given initial settings.
DrawableGameObject(short, int, int, short) - Constructor for class objects.DrawableGameObject
Constructs a new drawable game object.

E

Explosion - class objects.Explosion.
This is an explosion object.
Explosion(short, int, int, byte, byte) - Constructor for class objects.Explosion
Constructs a new explosion, with the given initial settings.

F

findBomb(short) - Method in class objects.World
 
findBombPack(short) - Method in class objects.World
 
findExplosion(short) - Method in class objects.World
 
findGoodLocation() - Method in class objects.World
 
findPhaser(short) - Method in class objects.World
 
findPlayer(short) - Method in class objects.World
 
fireBomb() - Method in class client.UserDefinedClient
Fires a targeting bomb.
firePhaser() - Method in class client.UserDefinedClient
Fires a phaser shot.

G

getAbsDeltaAngle(double, double) - Method in class objects.World
 
getAbsDeltaAngle(double, double) - Method in class client.UserDefinedClient
Calculates the smallest angle between two given angles, without taking care of direction.
getAngle(DrawableGameObject) - Method in class client.UserDefinedClient
Calculates the angle in radians of a vector from our ship to the given object.
getAngle(int, int, int, int) - Method in class objects.World
 
getAngle(int, int, int, int) - Method in class client.UserDefinedClient
Calculates the angle in radians from one point to another.
getAntiScore() - Method in class objects.Player
Returns the number of times this player has been killed.
getBestTurn(double, double) - Method in class objects.World
 
getBestTurn(double, double) - Method in class client.UserDefinedClient
Finds the best way to turn to move from one direction to another.
getBombPacks() - Method in class objects.World
 
getBombPacks() - Method in class client.UserDefinedClient
Gets all currently available bomb packs.
getBombs() - Method in class objects.World
 
getBombs() - Method in class client.UserDefinedClient
Gets all currently moving bombs, including our own.
getBombsLeft() - Method in class objects.Player
Gets the number of available targeting bombs.
getBounds() - Method in class objects.DrawableGameObject
Gets the current bounding box for this object.
getClosestBombPack() - Method in class client.UserDefinedClient
Finds the closest bomb pack.
getClosestBombPack(int, int) - Method in class objects.World
 
getClosestBombPack(int, int) - Method in class client.UserDefinedClient
Finds the closest bomb pack.
getClosestBombPack(Player) - Method in class objects.World
 
getClosestEnemy() - Method in class client.UserDefinedClient
Finds the closest enemy player that is alive.
getClosestEnemy(int, int) - Method in class client.UserDefinedClient
Finds the closest enemy player that is alive.
getClosestEnemy(Player) - Method in class objects.World
 
getClosestEnemy(Player, int, int) - Method in class objects.World
 
getClosestEnemyBomb() - Method in class client.UserDefinedClient
Finds the closest enemy bomb.
getClosestEnemyBomb(int, int) - Method in class client.UserDefinedClient
Finds the closest enemy bomb.
getClosestEnemyBomb(Player) - Method in class objects.World
 
getClosestEnemyBomb(Player, int, int) - Method in class objects.World
 
getClosestEnemyPhaser() - Method in class client.UserDefinedClient
Finds the closest enemy phaser.
getClosestEnemyPhaser(int, int) - Method in class client.UserDefinedClient
Finds the closest enemy phaser shot.
getClosestEnemyPhaser(Player) - Method in class objects.World
 
getClosestEnemyPhaser(Player, int, int) - Method in class objects.World
 
getColor() - Method in class objects.Star
Returns the main color used for drawing this object.
getColor() - Method in class objects.Ship
Returns the main color used for drawing this object.
getColor() - Method in class objects.Phaser
Returns the main color used for drawing this object.
getColor() - Method in class objects.BombPack
Returns the main color used for drawing this object.
getColor() - Method in class objects.Bomb
Returns the main color used for drawing this object.
getDamage() - Method in class objects.Player
Gets the current damage level.
getDeltaAngle(double, double) - Method in class objects.World
 
getDeltaAngle(double, double) - Method in class client.UserDefinedClient
Calculates the smallest angle from one angle to another.
getDirection() - Method in class objects.Player
Returns the direction of this object in radians.
getDirection() - Method in class objects.DrawableGameObject
Returns the direction of this object in radians.
getDirectionAsShort() - Method in class objects.Player
Returns the direction of this object in radians, encoded in a short for transfer to the game server.
getDirectionAsShort() - Method in class objects.DrawableGameObject
Returns the direction of this object in radians, encoded in a short for transfer to the game server.
getDistanceBetween(DrawableGameObject, DrawableGameObject) - Method in class objects.World
 
getDistanceBetween(DrawableGameObject, DrawableGameObject) - Method in class client.UserDefinedClient
Calculates the pixel distance between two objects.
getDistanceBetween(DrawableGameObject, int, int) - Method in class objects.World
 
getDistanceBetween(DrawableGameObject, int, int) - Method in class client.UserDefinedClient
Calculates the pixel distance between an objects and a given location.
getDistanceBetween(int, int, int, int) - Method in class objects.World
 
getDistanceBetween(int, int, int, int) - Method in class client.UserDefinedClient
Calculates the pixel distance between two points.
getDistanceToClosestCollidable(int, int) - Method in class objects.World
 
getExplosions() - Method in class objects.World
 
getGameComponent() - Method in class client.UserDefinedClient
Returns the AWT Component that functions as the game are of the window.
getHeight() - Method in class objects.World
 
getId() - Method in class objects.Player
Fetches the ID of this player.
getId() - Method in class objects.DrawableGameObject
Fetches the ID of this object.
getLevel() - Method in class objects.Explosion
Returns the current level of this explosion.
getLocation() - Method in class objects.Player
Fetches the location of this player within the world.
getLocation() - Method in class objects.DrawableGameObject
 
getMaxLevel() - Method in class objects.Explosion
Returns the maximum level of this explosion.
getMyPlayer() - Method in class client.UserDefinedClient
Returns the player controlled by this client.
getName() - Method in class objects.Player
Fetches the name of this player.
getName(byte) - Static method in class objects.WeaponType
Gets a textual name given a weapon constant.
getNormalizedAngle(double) - Method in class client.UserDefinedClient
Makes sure an angle is within the interval 0.0 to 2PI.
getObjects(Rectangle) - Method in class objects.World
 
getOwner() - Method in class objects.Phaser
Finds the player who fired this phaser shot.
getOwner() - Method in class objects.Bomb
Finds the player who fired this bomb.
getPhaserHeat() - Method in class objects.Player
Gets the current phaser heat value.
getPhaserOffset() - Method in class objects.Ship
Returns the distance from the center of the ship to the cannon.
getPhasers() - Method in class objects.World
 
getPhasers() - Method in class client.UserDefinedClient
Gets all currently moving phasers, including our own.
getPlayers() - Method in class objects.World
 
getPlayers() - Method in class client.UserDefinedClient
Gets all available players, including our own, and including dead ones.
getRatio() - Method in class objects.Player
Gets a ratio between the number of kills and the number of times being killed.
getRatioString() - Method in class objects.Player
Creates a string that describes the ratio between the number of kills and the number of times killed.
getScore() - Method in class objects.Player
Fetches the number of kills done by this player.
getShip() - Method in class objects.Player
Returns the Ship object that is controlled by this player.
getSquareDistanceBetween(DrawableGameObject, DrawableGameObject) - Method in class objects.World
 
getSquareDistanceBetween(DrawableGameObject, DrawableGameObject) - Method in class client.UserDefinedClient
Calculates the squared pixel distance between two objects.
getSquareDistanceBetween(DrawableGameObject, int, int) - Method in class objects.World
 
getSquareDistanceBetween(DrawableGameObject, int, int) - Method in class client.UserDefinedClient
Calculates the squared pixel distance between an object and a given location.
getSquareDistanceBetween(int, int, int, int) - Method in class objects.World
 
getSquareDistanceBetween(int, int, int, int) - Method in class client.UserDefinedClient
Calculates the squared pixel distance between two points.
getStars() - Method in class objects.World
 
getUpdateFrequency() - Method in class client.UserDefinedClient
Returns the number of times per second that the update method is called.
getWidth() - Method in class objects.World
 
getVisibleHeight() - Method in class client.UserDefinedClient
Returns the height of the current visible display are.
getVisibleOffsetX() - Method in class client.UserDefinedClient
Gets the horizontal offset into the world of the area currently visible in the game window.
getVisibleOffsetY() - Method in class client.UserDefinedClient
Gets the vertical offset into the world of the area currently visible in the game window.
getVisibleWidth() - Method in class client.UserDefinedClient
Returns the width of the current visible display are.
getWorldHeight() - Method in class client.UserDefinedClient
Returns the height of the entire playing area.
getWorldWidth() - Method in class client.UserDefinedClient
Returns the width of the entire playing area.

I

incAntiScore() - Method in class objects.Player
Increases the number of times this player has been killed.
incBombsLeft(int) - Method in class objects.Player
Increases the number of bombs left by the given number.
incDamage(int) - Method in class objects.Player
Increases the damage by the given amount.
incPhaserHeat(int) - Method in class objects.Player
Increases phaser heat by the given amount, making sure it doesn't get above 100.
incScore() - Method in class objects.Player
Increases the number of kills done by this player.
infoBombCreated(Bomb) - Method in class client.UserDefinedClient
Informs that a new targetting bomb has been created.
infoBombDestroyed(Bomb) - Method in class client.UserDefinedClient
Informs that a targetting bomb has been removed, either because it ran out of fuel, or because it hit something.
infoBombMoved(Bomb) - Method in class client.UserDefinedClient
Informs that a targetting bomb has moved to a new location.
infoBombPackCreated(BombPack) - Method in class client.UserDefinedClient
Informs that someone has lost their weapons somewhere.
infoBombPackDestroyed(BombPack) - Method in class client.UserDefinedClient
Informs that a bomb pack has been removed, probably because it was picked up by someone.
infoBombPackMoved(BombPack) - Method in class client.UserDefinedClient
Informs that a bomb pack has moved.
infoLoggedIntoServer() - Method in class client.UserDefinedClient
Informs that the client has successfully logged into the server.
infoManualFireBomb() - Method in class client.UserDefinedClient
Informs that the user has fired the bomb.
infoManualFirePhaser() - Method in class client.UserDefinedClient
Informs that the user has fired the phaser.
infoManualStartMovingBack() - Method in class client.UserDefinedClient
Informs that the user started to move backward.
infoManualStartMovingForeward() - Method in class client.UserDefinedClient
Informs that the user started to move foreward.
infoManualStartTurningLeft() - Method in class client.UserDefinedClient
Informs that the user started to turn left.
infoManualStartTurningRight() - Method in class client.UserDefinedClient
Informs that the user started to turn right.
infoManualStopMovingBack() - Method in class client.UserDefinedClient
Informs that the user stopped moving backward.
infoManualStopMovingForeward() - Method in class client.UserDefinedClient
Informs that the user stopped moving foreward.
infoManualStopTurningLeft() - Method in class client.UserDefinedClient
Informs that the user stopped turning left.
infoManualStopTurningRight() - Method in class client.UserDefinedClient
Informs that the user stopped turning right.
infoPhaserCreated(Phaser) - Method in class client.UserDefinedClient
Informs that a new phaser shot has been created.
infoPhaserDestroyed(Phaser) - Method in class client.UserDefinedClient
Informs that a phaser has been removed.
infoPhaserMoved(Phaser) - Method in class client.UserDefinedClient
Informs that a phaser has moved a small distance.
infoPlayerDied(Player, Player, byte) - Method in class client.UserDefinedClient
Informs that a player has been killed.
infoPlayerEntered(Player) - Method in class client.UserDefinedClient
Informs that a new player has entered the game.
infoPlayerHit(Player, Player, byte) - Method in class client.UserDefinedClient
Informs that a player has been hit by some weapon, without necessarily being killed.
infoPlayerLeft(Player) - Method in class client.UserDefinedClient
Informs that a player has left the game.
infoPlayerMoved(Player) - Method in class client.UserDefinedClient
Informs that a player has moved or changed direction.
infoPlayerResurrected(Player) - Method in class client.UserDefinedClient
Informs that a player has resurrected from the dead.
infoPlayerSaidSomething(Player, String) - Method in class client.UserDefinedClient
Informs that a player has sent a global chat message.
infoUnhandeledKeyPressed(int) - Method in class client.UserDefinedClient
Informs that the user has pressed a key that has no normal function in the game.
infoUnhandeledKeyReleased(int) - Method in class client.UserDefinedClient
Informs that the user has released a key that has no normal function in the game.
isAlive() - Method in class objects.Player
Checks if this player is dead or alive.
isBehind(DrawableGameObject) - Method in class client.UserDefinedClient
Checks if the given object is behind our ship.
isHitBy(int, int) - Method in class objects.Ship
Checks if a point is within this ship.
isHitBy(Point) - Method in class objects.Ship
Checks if a point is within this ship.
isInFront(DrawableGameObject) - Method in class client.UserDefinedClient
Checks if the given object is in front of our ship.
isInView(DrawableGameObject) - Method in class objects.Player
 
isPhaserOverheated() - Method in class objects.Player
Checks if the phaser cannon is currently overheated.
isToTheLeft(DrawableGameObject) - Method in class client.UserDefinedClient
Checks if the given object is to the left of our ship.
isToTheRight(DrawableGameObject) - Method in class client.UserDefinedClient
Checks if the given object is to the right of our ship.

L

loc - Variable in class objects.DrawableGameObject
 

M

MAX_BOMB_SPEED - Static variable in class client.UserDefinedClient
Maximum bomb speed in pixels per second.
MAX_PHASER_SPEED - Static variable in class client.UserDefinedClient
Maximum phaser shot speed in pixels per second.
MAX_SHIP_SPEED - Static variable in class client.UserDefinedClient
Maximum player/ship speed in pixels per second.

N

NONE - Static variable in class objects.WeaponType
No weapon.

O

objects - package objects
 

P

Phaser - class objects.Phaser.
This is a single phaser shot.
PHASER - Static variable in class objects.WeaponType
The phaser
Phaser(short, Player, int, int, double, Color) - Constructor for class objects.Phaser
Constructs a new phaser "bullet", with the given initial settings.
Phaser(short, Player, int, int, short, Color) - Constructor for class objects.Phaser
Constructs a new phaser "bullet", with the given initial settings.
Player - class objects.Player.
This is a player class.
Player() - Constructor for class objects.Player
Constructs a new player with the default settings.
Player(short, String) - Constructor for class objects.Player
Constructs a new player with the given id and name.

R

removeBomb(Bomb) - Method in class objects.World
 
removeBombPack(BombPack) - Method in class objects.World
 
removeCollidable(DrawableGameObject) - Method in class objects.World
 
removeDecoration(DrawableGameObject) - Method in class objects.World
 
removeExplosion(Explosion) - Method in class objects.World
 
removePhaser(Phaser) - Method in class objects.World
 
removePlayer(Player) - Method in class objects.World
 

S

say(String) - Method in class client.UserDefinedClient
Sends a message to all the players.
setAlive(boolean) - Method in class objects.Player
Sets whether this player is alive.
setAntiScore(int) - Method in class objects.Player
Sets the number of times this player has been killed.
setAutoResurrect(boolean) - Method in class client.UserDefinedClient
Instructs the main client code to autimatically resurrect (bring back to life) after being killed.
setBombsLeft(int) - Method in class objects.Player
Sets the available number of targeting bombs.
setColor(Color) - Method in class objects.Ship
Sets the main color used when drawing this object.
setColor(Color) - Method in class objects.Phaser
Sets the main color used when drawing this object.
setColor(Color) - Method in class objects.BombPack
Sets the main color used when drawing this object.
setColor(Color) - Method in class objects.Bomb
Sets the main color used when drawing this object.
setDamage(int) - Method in class objects.Player
Sets the damage level of this player.
setDirection(double) - Method in class objects.Player
Sets the direction of this object as an angle in radians.
setDirection(double) - Method in class objects.DrawableGameObject
Sets the direction of this object as an angle in radians.
setDirectionFromShort(short) - Method in class objects.Player
Sets the direction of this object, encoded as a short, as sent from the game server.
setDirectionFromShort(short) - Method in class objects.DrawableGameObject
Sets the direction of this object, encoded as a short, as sent from the game server.
setId(short) - Method in class objects.Player
Sets the ID of this player.
setId(short) - Method in class objects.DrawableGameObject
Sets the ID of this object.
setLevel(byte) - Method in class objects.Explosion
Sets the current level of this explosion.
setLocation(int, int) - Method in class objects.Player
Sets the location of this object within the world.
setLocation(int, int) - Method in class objects.DrawableGameObject
Sets the location of this object within the world.
setLocation(Point) - Method in class objects.Player
Sets the location of this object within the world.
setLocation(Point) - Method in class objects.DrawableGameObject
Sets the location of this object within the world.
setMaxLevel(byte) - Method in class objects.Explosion
Sets the maximum level of this explosion.
setName(String) - Method in class objects.Player
Sets the name of this player.
setName(String) - Method in class client.UserDefinedClient
Sets new name for our player.
setOwner(Player) - Method in class objects.Phaser
Sets the owner of this phaser shot, that is the player who fired it.
setOwner(Player) - Method in class objects.Bomb
Sets the owner of this bomb, that is the player who fired it.
setPhaserHeat(int) - Method in class objects.Player
Sets the phaser cannon heat percent of this player.
setScore(int) - Method in class objects.Player
Sets the current score.
setSize(int, int) - Method in class objects.World
 
Ship - class objects.Ship.
A ship.
Ship(Player) - Constructor for class objects.Ship
Constructs a new ship with the given owner.
showMessage(String) - Method in class client.UserDefinedClient
Displays a message on the game board.
Star - class objects.Star.
A star.
Star() - Constructor for class objects.Star
Constructs a new star with a random color, and no position.
Star(int, int) - Constructor for class objects.Star
Constructs a new star with random color, and the given position.
Star(int, int, Color) - Constructor for class objects.Star
Constructs a new star with the given position and color.
startMovingBack() - Method in class client.UserDefinedClient
Starts moving the ship backward.
startMovingForeward() - Method in class client.UserDefinedClient
Starts moving the ship foreward.
startTurningLeft() - Method in class client.UserDefinedClient
Starts turning the ship to the left.
startTurningRight() - Method in class client.UserDefinedClient
Starts turning the ship to the right.
stopMoving() - Method in class client.UserDefinedClient
Stops all foreward/backward movement of the ship.
stopMovingBack() - Method in class client.UserDefinedClient
Stops backward movement of the ship.
stopMovingForeward() - Method in class client.UserDefinedClient
Stops foreward movement of the ship.
stopTurning() - Method in class client.UserDefinedClient
Stops any turning of the ship.
stopTurningLeft() - Method in class client.UserDefinedClient
Stops leftward movement of the ship.
stopTurningRight() - Method in class client.UserDefinedClient
Stops rightward movement of the ship.

T

TURN_LEFT - Static variable in class objects.World
 
TURN_LEFT - Static variable in class client.UserDefinedClient
getBestTurn advices you to turn left.
TURN_NONE - Static variable in class objects.World
 
TURN_NONE - Static variable in class client.UserDefinedClient
getBestTurn advices you to not turn.
TURN_RIGHT - Static variable in class objects.World
 
TURN_RIGHT - Static variable in class client.UserDefinedClient
getBestTurn advices you to turn right.

U

update() - Method in class client.UserDefinedClient
Updates the client logic at regular intervals.
updateBounds() - Method in class objects.Ship
 
updateBounds() - Method in class objects.DrawableGameObject
 
UserDefinedClient - class client.UserDefinedClient.
A class that may be subclassed to create robot clients, or clients that extend the player's capabilities.
UserDefinedClient() - Constructor for class client.UserDefinedClient
NOTE: Your constructor should not call any of the methods in this class, as things have not been set up yet.

W

WeaponType - class objects.WeaponType.
This class holds constants for the various weapon types, and the mapping to textual names.
WeaponType() - Constructor for class objects.WeaponType
 
World - class objects.World.
 
World() - Constructor for class objects.World
 
World(int, int) - Constructor for class objects.World
 

A B C D E F G I L M N O P R S T U W