A B C D E F G H I L M P R S T U W X Y

A

accelerate(int, boolean) - Method in interface RServer
 
accelerate(int, boolean) - Method in class Server
 
acceleration - Variable in class Body.Projection
 
activate() - Method in class Body
Called from enable, right after body has been put to world and given master reference.
activate() - Method in class Debris
 
activate() - Method in class Explosion
 
activate() - Method in class LaserShot
 
addBody(Body) - Method in interface IMasterEngine
Add body to game, assigning it an unique id#.
addBody(Body) - Method in class MasterEngine
 
addClient(REngine) - Method in interface IMasterEngine
 
addClient(REngine) - Method in class MasterEngine
 
angle - Variable in class Body
 
angle - Variable in class Body.Projection
 
angleRate - Variable in class Body.Projection
 
apply(World) - Method in class Remove
 
apply(World) - Method in class Replace
Apply this change to a world.
apply(World) - Method in class Update
Apply this update to someone's view of the world.

B

Body - class Body.
A (possibly) moving object living on the xy-plane.
Body.CollisionCheck - class Body.CollisionCheck.
A scheduled collision check.
Body.CollisionCheck(Body, long) - Constructor for class Body.CollisionCheck
CollisionCheck schedules itself at master on construction.
Body.CreatedLaterException - exception Body.CreatedLaterException.
Attempted to project the body to a time before its creation.
Body.CreatedLaterException(Body) - Constructor for class Body.CreatedLaterException
 
Body.DisabledException - exception Body.DisabledException.
Exception thrown when trying to use a disabled body.
Body.DisabledException(Body) - Constructor for class Body.DisabledException
 
Body.Projection - class Body.Projection.
An extrapolated projection of the body along its current known trajectory.
Body.Projection(Body) - Constructor for class Body.Projection
 
Body(long) - Constructor for class Body
Create a new body, starting at given time.
bodyChanged(Body) - Method in class MasterEngine
A body advertises unprojectable state changes with this method.

C

ClientEngineTest - class ClientEngineTest.
Test client side engine.
ClientEngineTest() - Constructor for class ClientEngineTest
 
ClientSession - class ClientSession.
A client session runs on a thread and handles sending accumulated updates to one client engine.
ClientSession(REngine) - Constructor for class ClientSession
 
clone() - Method in class World
Clone world.
collision(Body, long) - Method in class Body
Override this to do what is needed on actual collision.
collision(Body, long) - Method in class DefaultShip
 
collision(Body, long) - Method in class LaserShot
 
collisionCheck(Body, long, Body.Projection) - Method in class Body
Check one threat for collision, project soonest possible collision.
collisionCheck(long) - Method in class Body
The collision check inspects the situation at the time it was scheduled for, instead of when it occurs, to minimize the chance of missed collisions even if the check is badly delayed.
CommanderTest - class CommanderTest.
This is a test of the client engine and drawing bits co-operation with multiple screens and associated client engines in one process, with ships having random atuomatic commander bots.
CommanderTest(int) - Constructor for class CommanderTest
 
creation - Variable in class Body
 

D

deactivate() - Method in class Body
Deactivation is called from disable before master goes null.
deactivate() - Method in class Debris
 
deactivate() - Method in class Explosion
 
deactivate() - Method in class LaserShot
 
deactivate() - Method in class Ship
 
Debris - class Debris.
 
Debris(Body, long) - Constructor for class Debris
 
DefaultShip - class DefaultShip.
The default ship type of the game.
DefaultShip(int, long) - Constructor for class DefaultShip
 
destroy(long) - Method in class Body
If a body such as a ship of laser beam wants to die a violent and spectacular death, this is the method to call.
destroy(long) - Method in class DefaultShip
 
destroy(long) - Method in class Explosion
 
disable() - Method in class Body
Disable kills master reference after calling deactivate to remove anything that depends on master.
Draw - class Draw.
 
Draw(Applet, Screen, Engine, int) - Constructor for class Draw
 

E

enable(MasterEngine, int) - Method in class Body
Called by master engine to set master reference and id when body is put into the engine.
end() - Method in class ClientSession
End this session.
Engine - class Engine.
The client-side movement extrapolator engine.
Engine() - Constructor for class Engine
 
EngineTest - class EngineTest.
This is a test of the client engine and drawing bits co-operation.
EngineTest(int) - Constructor for class EngineTest
 
Explosion - class Explosion.
 
Explosion(Ship, long) - Constructor for class Explosion
 

F

fire(int, boolean) - Method in interface RServer
 
fire(int, boolean) - Method in class Server
 
fireOnce(long) - Method in class DefaultShip
 
fireOnce(long) - Method in class Ship
Fire weapon once.

G

Game - class Game.
 
Game() - Constructor for class Game
 
GameFullException - exception GameFullException.
 
GameFullException() - Constructor for class GameFullException
 
get(int) - Method in class World
Get a body by id.
getAcceleration() - Method in class Body
 
getAngle() - Method in class Body
 
getBodies() - Method in class World
 
getBodiesById() - Method in class World
 
getBody(int) - Method in class MasterEngine
 
getEngine(int) - Method in class Server
 
getId() - Method in class Body
 
getId(int) - Method in class Server
 
getIds() - Method in class World
 
getMaster() - Method in class Body
 
getPlayer() - Method in class Body
 
getPlayer(int) - Method in class Server
 
getRadius() - Method in class Body
 
getTime() - Method in class Body
 
getTimer() - Method in class MasterEngine
 
getType() - Method in class Body
 
getX() - Method in class Body
 
getY() - Method in class Body
 

H

has(int) - Method in class World
Whether world contains body with given id.

I

id - Variable in class Body
 
IMasterEngine - interface IMasterEngine.
 
init() - Method in class Game
 
isAccelerating() - Method in class Body
 
isEmpty() - Method in class World
 
isGood() - Method in class ClientSession
 

L

LaserShot - class LaserShot.
 
LaserShot(Ship, long) - Constructor for class LaserShot
 
login(REngine) - Method in interface RServer
 
login(REngine) - Method in class Server
 
logout(int) - Method in interface RServer
 
logout(int) - Method in class Server
 

M

main(String[]) - Static method in class ClientEngineTest
 
main(String[]) - Static method in class CommanderTest
 
main(String[]) - Static method in class EngineTest
 
main(String[]) - Static method in class Game
 
main(String[]) - Static method in class Server
 
masterEngine - Variable in class Server
 
MasterEngine - class MasterEngine.
The master engine propagates changes to remote engines.
MasterEngine() - Constructor for class MasterEngine
 
masterUpdate(ArrayList) - Method in class Engine
Process updates received from master engine.
masterUpdate(ArrayList) - Method in interface REngine
Receive updates as ArrayList from master engine.
movementX - Variable in class Body
 
movementY - Variable in class Body
 

P

Pictures - class Pictures.
 
Pictures(Applet) - Constructor for class Pictures
 
Pictures(Screen) - Constructor for class Pictures
 
player - Variable in class Body
 
positionX - Variable in class Body
 
positionY - Variable in class Body
 
project(long) - Method in class Body
Project this body along its current known trajectory to the given time.
put(Body) - Method in class World
Place new body into the world, or replace a stale one by id.

R

radius - Variable in class Body
 
RandomCommander - class RandomCommander.
Testing class that controls a ship randomly.
RandomCommander(Ship, long, Timer) - Constructor for class RandomCommander
 
RandomShip - class RandomShip.
Create DefaultShip at a random location within the ((0,0),(600,-600)) rectangle, with some speed, acceleration, angle rate...
RandomShip(int, long) - Constructor for class RandomShip
 
Remove - class Remove.
An Update that causes the Body with the given id# to be removed from a World.
remove(int) - Method in class World
Remove a body by id.
Remove(int) - Constructor for class Remove
 
removeBody(Body) - Method in class MasterEngine
 
removeBody(int) - Method in class MasterEngine
Remove body by id provided for server bits.
removeClient(REngine) - Method in class MasterEngine
 
REngine - interface REngine.
Remote interface for engine clients of the MasterEngine.
Replace - class Replace.
A Replace Update contains a Body.
Replace(Body) - Constructor for class Replace
 
replaceBody(Body, Body) - Method in class MasterEngine
 
replaceBody(int, Body) - Method in interface IMasterEngine
Add body to game, replacing one with the given id#.
replaceBody(int, Body) - Method in class MasterEngine
Replace body by id provided for server bits.
RServer - interface RServer.
 
run() - Method in class ClientSession
 
run() - Method in class Body.CollisionCheck
 
run() - Method in class Draw
 
run() - Method in class Ship.Fire
 

S

Screen - class Screen.
The UI.
Screen(Applet, String) - Constructor for class Screen
Screen constructor for client-server game.
Screen(Engine, int) - Constructor for class Screen
Screen constructor for client-only uncontrollable engine test.
send(Update) - Method in class ClientSession
Place update in queue and wake up session thread.
Server - class Server.
 
Server() - Constructor for class Server
 
setAccelerating(boolean) - Method in class Ship
Start or stop accelerating.
setAcceleration(double, long) - Method in class Body
 
setAcceleration(int, boolean) - Method in interface IMasterEngine
 
setAcceleration(int, boolean) - Method in class MasterEngine
 
setAngleRate(double, long) - Method in class Body
 
setFire(int, boolean) - Method in interface IMasterEngine
 
setFire(int, boolean) - Method in class MasterEngine
 
setFiring(boolean) - Method in class Ship
Start or stop firing weapon.
setFiringOff() - Method in class Ship
Separated from setFiring so can get away w/ no exn in an exn handler
setTurn(int, int) - Method in interface IMasterEngine
Change rotation of a ship.
setTurn(int, int) - Method in class MasterEngine
 
setTurning(int, long) - Method in class Ship
Start or stop turning.
setWorld(World) - Method in interface IMasterEngine
 
setWorld(World) - Method in class MasterEngine
 
Ship - class Ship.
A ship is a body associated with a player.
Ship.Fire - class Ship.Fire.
The event of this ship firing its weapon.
Ship.Fire(Ship, long, long) - Constructor for class Ship.Fire
 
Ship(int, long) - Constructor for class Ship
 
size() - Method in class World
 
snapshot() - Method in class Engine
Update moving bodies to current time and create shallow snapshot.
snapshotBodies() - Method in class MasterEngine
Get a shallow copy of the world's bodies in an ArrayList.
snapshotBodies() - Method in class World
 
Stellar - class Stellar.
 
STELLAR_BASE - Static variable in class Stellar
 
Stellar(int, double, double) - Constructor for class Stellar
 
stellars - Variable in class Pictures
 
stop() - Method in class MasterEngine
Stopping cancels all activity of the master engine.

T

time - Variable in class Body
 
timestamp - Variable in class Update
Time of generation.
turnLeft(int, boolean) - Method in interface RServer
 
turnLeft(int, boolean) - Method in class Server
 
turnRight(int, boolean) - Method in interface RServer
 
turnRight(int, boolean) - Method in class Server
 
type - Variable in class Body
 

U

Update - class Update.
Updates are created by MasterEngine in response to tickling by Rules, queued by ClientSessions and sent to client engines and processed there.
Update() - Constructor for class Update
 
update(long) - Method in class Body
Update position, movement and other time-dependent attributes to given moment (ms since epoch).
update(long) - Method in class World
Extrapolate all moving bodies to given time.
update(Observable, Object) - Method in class Server
Receive notification of players' ships death.
updateComponents(long) - Method in class Body
Do the practical work of updating position, movement, and angle.

W

World - class World.
One state of the world.
World() - Constructor for class World
 

X

x - Variable in class Body.Projection
 
xSpeed - Variable in class Body.Projection
 

Y

y - Variable in class Body.Projection
 
ySpeed - Variable in class Body.Projection
 

A B C D E F G H I L M P R S T U W X Y