A B C D E F G H I L M N O P Q R S T U V W X Y Z

A

action - Variable in class netwar.game.GameObject
Code number indicating the animation sequence in progress.
actionPerformed(ActionEvent) - Method in class netwar.Netwar
Called by the timer to update the game data.
actionPerformed(ActionEvent) - Method in class netwar.game.Base
SCHEDULED TO BE REMOVED
This is currently used to catch button presses which cause the creation of new Units.
actionPerformed(ActionEvent) - Method in class netwar.utils.FPS
 
aim() - Method in class netwar.game.GameObject
If a turret is available, rotate it toward the target.
aim() - Method in class netwar.game.Base
Makes adjustments if possible (for independent turrets) and returns true if the current target is within the firing arc (though it may be out of range to fire).
aim() - Method in class netwar.game.Unit
Make applicable adjustments, then return true if the target is within the firing arc.
animateDie() - Method in class netwar.game.GameObject
Perform the data changes for one frame of animation while dying.
animateDie() - Method in class netwar.game.Base
Performs the calculations for one frame of animation during the death sequence.
animateDie() - Method in class netwar.game.unit.UnitDefault2
Unit default2 dies by shrinking into a point.
animateDie() - Method in class netwar.game.unit.UnitDefault
Unit default forms by compressing horizontally while extending vertically until it becomes a line and disappears.
animateMake() - Method in class netwar.game.GameObject
Perform the data changes for one frame of animation while being made.
animateMake() - Method in class netwar.game.Base
Perform the data changes for one frame of animation while being made.
animateMake() - Method in class netwar.game.unit.UnitDefault2
Unit default2 is created by the fin extending up from the black triangle.
animateMake() - Method in class netwar.game.unit.UnitDefault
Unit default forms by shifting the triangles from a nearly verticle form to the standard shape.
animateMove() - Method in class netwar.game.Unit
Do the processing for a frame of animation while moving forward.
animateMove() - Method in class netwar.game.unit.UnitDefault2
Unit default2 moves forward by sliding.
animateMove() - Method in class netwar.game.unit.UnitDefault
Unit default moves by sliding.
animateRotateLeft() - Method in class netwar.game.Unit
Do the processing for a frame of animation while rotating left.
animateRotateLeft() - Method in class netwar.game.unit.UnitDefault2
Unit default2 rotates left by sliding.
animateRotateLeft() - Method in class netwar.game.unit.UnitDefault
Unit default rotates left by sliding.
animateRotateRight() - Method in class netwar.game.Unit
Do the processing for a frame of animation while rotating right.
animateRotateRight() - Method in class netwar.game.unit.UnitDefault2
Unit default2 rotates right by sliding.
animateRotateRight() - Method in class netwar.game.unit.UnitDefault
Unit default rotates right by sliding.
append(Object) - Method in interface netwar.utils.Vector
Insert an Object at the tail of the list.
append(Object) - Method in class netwar.utils.LVector
Insert an Object at the tail of the list.
AQueue - class netwar.utils.AQueue.
Array based Queue class
AQueue() - Constructor for class netwar.utils.AQueue
Constructs a AQueue
AQueue(int) - Constructor for class netwar.utils.AQueue
Constructs a AQueue
armor() - Method in class netwar.game.Unit
Returns the number of damage points to be ignored from each hit.
armor() - Method in class netwar.game.unit.UnitDefault2
Unit default2 has an armor rating of 3
armor() - Method in class netwar.game.unit.UnitDefault
Unit default has an armor rating of 5
Assert - class netwar.utils.Assert.
Class Assert Used to test assertions.
Assert() - Constructor for class netwar.utils.Assert
 

B

Base - class netwar.game.Base.
Large immobile GameObject which creates Units.
Base(int, int) - Constructor for class netwar.game.Base
Reserves the region occupied by the base.
baseDead() - Method in class netwar.game.Player
Checks if this player's base is dead
basicUpdate() - Method in class netwar.game.Projectile
Performs functions which will be needed by most Projectiles during Update().
bestDirection(int, int) - Method in class netwar.game.Unit
Returns the facing code for the 'best' direction to head.
boardRadius - Variable in class netwar.settings.GlobalSettings
The radius of the game board, in Hexes.
broadcastSettings(int, PlayerSettings, GlobalSettings) - Method in interface netwar.network.NetworkServerInterface
Sends the settings the player made to the server.
broadcastSettings(int, PlayerSettings, GlobalSettings) - Method in class netwar.network.NetworkServer
Sends the settings the player made to the server.

C

callerID(NetworkClientInterface) - Method in interface netwar.network.NetworkServerInterface
Sends the networkClientInterface to the server so the server can talk back to the client without the host user having to input the ip address of the client
callerID(NetworkClientInterface) - Method in class netwar.network.NetworkServer
Sends the networkClientInterface to the server so the server can talk back to the client without the host user having to input the ip address of the client RMI type: Server
center - Variable in class netwar.game.Projectile
The game-space location of the center of the projectile.
center() - Method in class netwar.game.GameObject
Cause the HexViewer's view to be centered on this GameObject.
clear() - Method in class netwar.utils.AQueue
Clears the queue.
clear() - Method in interface netwar.utils.Vector
Remove all Objects from the list.
clear() - Method in class netwar.utils.LVector
Remove all Objects from the list.
clear() - Method in interface netwar.utils.Queue
Clears the queue.
clientBroadcastSettings(int, PlayerSettings, GlobalSettings) - Method in class netwar.network.NetworkClient
Local method used to broadcast settings to all other players through the netwar server RMI type: Client
ClientConnected - class netwar.gui.ClientConnected.
Composite GUI class opened when the program is first start.
ClientConnected() - Constructor for class netwar.gui.ClientConnected
Creates new form ClientConnected
ClientConnection - class netwar.gui.ClientConnection.
Composite GUI class opened when the program is first start.
ClientConnection() - Constructor for class netwar.gui.ClientConnection
Creates new form pan
clientRecieveSettings(GameSettings) - Method in interface netwar.network.NetworkClientInterface
Remote method used to recieve settings and set them locally RMI method: Server
clientRecieveSettings(GameSettings) - Method in class netwar.network.NetworkClient
Remote method used to recieve settings and set them locally RMI type: Server
Command - class netwar.game.Command.
A collection of Integers to indicate a player's decision to influence the game.
Command(int, int, int[], int, int) - Constructor for class netwar.game.Command
Create the command.
commandsUpToDate - Static variable in class netwar.game.Command
Indicates that the currentCommands contains the Command objects for the next cycle.
confirmSubPlan(int, int) - Method in class netwar.game.Unit
Checks to make sure that the idealized direction to get to the destination is still good.
cos(int) - Static method in class netwar.utils.Trig
Returns the cosine of the angle.
createVectors() - Method in class netwar.game.GameObject
Initialize the Point3Ds used for this Base.
createVectors() - Method in class netwar.game.Base
Initialize the Point3Ds used for this Base.
createVectors() - Method in class netwar.game.unit.UnitDefault2
 
createVectors() - Method in class netwar.game.unit.UnitDefault
 
curr - Variable in class netwar.utils.LVector
 
currentCommands - Static variable in class netwar.game.Command
The set of commands collected from the network.
currentSettings - Static variable in class netwar.settings.GameSettings
The current collection of settings.

D

damage - Variable in class netwar.game.Projectile
The amount of damage the shot will deal if it hits something.
damageable() - Method in class netwar.game.GameObject
Return true if an explosion can possibly damage this object.
damageable() - Method in class netwar.game.Base
Return true if an explosion can possibly damage this object.
damageable() - Method in class netwar.game.Unit
Return True if the Unit can be damaged.
dequeue() - Method in class netwar.utils.AQueue
Dequeues an Object.
dequeue() - Method in interface netwar.utils.Queue
Dequeues an Object.
doCrossProduct(Point3D) - Method in class netwar.utils.Point3D
Evalutates the cross (vector) product of two vectors.
doDifference(Point3D) - Method in class netwar.utils.Point3D
Returns the vector difference of this Point3D and the given Point3D.
doProduct(float) - Method in class netwar.utils.Point3D
Returns a new Point3D that is the scalar product of this one.
doSum(Point3D) - Method in class netwar.utils.Point3D
Returns the sum of this Point3D and the given vector.
draw(GameViewer) - Static method in class netwar.game.Hex
Draws all hexes onto GameViewer v.
draw(GameViewer) - Method in class netwar.game.GameObject
Draw this GameObject onto GameViewer v, by using v's drawing methods.
draw(GameViewer) - Method in class netwar.game.Projectile
Displays this projectile on GameViewer v.
draw(GameViewer) - Method in class netwar.game.Base
Draw this Base onto GameViewer v, by using v's drawing methods.
draw(GameViewer) - Method in class netwar.game.projectile.ProjectileDefault2
Draw self on v, by drawing 3 intersecting perpendicular lines.
draw(GameViewer) - Method in class netwar.game.projectile.ProjectileDefault
Draw self onto v.
draw(GameViewer) - Method in class netwar.game.unit.UnitDefault2
Unit default 2 is drawn as two triangles.
draw(GameViewer) - Method in class netwar.game.unit.UnitDefault
Unit default is drawn as two triangles.
draw(GameViewer, Point3D) - Method in class netwar.game.HexType
Draws the HexType onto the backgound layer.
draw(Graphics) - Static method in class netwar.utils.FPS
Draws the frames per sec in the upper left corner
DrawAll(GameViewer) - Static method in class netwar.game.Projectile
Draws all projectiles in the game onto GameViewer v
drawGameObject(GameViewer) - Static method in class netwar.game.Hex
Draws all the GameObjects in the game onto GameViewer v.
drawHigh() - Method in class netwar.gui.MouseParser
Causes the upper portion of the selection box to be drawn on each selected GameObject.
drawImage(Point3D, Image) - Method in interface netwar.game.GameViewer
This method draws an image on the GameViewer's display.
drawImage(Point3D, Image) - Method in class netwar.gui.HexViewer
 
drawLine(Point3D, Point3D) - Method in interface netwar.game.GameViewer
This method draws a line segment on the GameViewer's display.
drawLine(Point3D, Point3D) - Method in class netwar.gui.HexViewer
 
drawLow() - Method in class netwar.gui.MouseParser
Causes the lower portion of the selection box to be drawn on each selected GameObject.
drawTriangle(Point3D, Point3D, Point3D) - Method in interface netwar.game.GameViewer
This method draws a filled triangle on the GameViewer's display.
drawTriangle(Point3D, Point3D, Point3D) - Method in class netwar.gui.HexViewer
 

E

empty - Static variable in class netwar.game.Command
 
EndGame() - Static method in class netwar.game.Player
Checks if there are enough players to continue the game.
enemy - Variable in class netwar.game.Projectile
The object that the shot was intended to hit (in case it is relevant)
enqueue(Object) - Method in class netwar.utils.AQueue
Enqueues an Object.
enqueue(Object) - Method in interface netwar.utils.Queue
Enqueues an Object.
enter(GameObject) - Method in class netwar.game.Hex
Attempts to put the GameObject into this Hex.
equals(float, float, float) - Method in class netwar.utils.Point3D
Implementation of Object.equals().
equals(Point3D) - Method in class netwar.utils.Point3D
Implementation of Object.equals().
execute() - Method in class netwar.game.Command
Execute the command.
Explode() - Method in class netwar.game.Projectile
Deals damage to nearby GameObjects, makes flashy graphics, and calls Fizzle().
Explode() - Method in class netwar.game.projectile.ProjectileDefault2
Deal damage to the target, if it is in range.
Explode() - Method in class netwar.game.projectile.ProjectileDefault
Deal damage to the target, if it is in range.

F

f - Variable in class netwar.game.Unit
A code number indicating the direction that the Unit is facing
fire() - Method in class netwar.game.GameObject
Attempt to fire a shot at the target.
fire() - Method in class netwar.game.unit.UnitDefault2
Unit default2 fires a ProjectileDefault2.
fire() - Method in class netwar.game.unit.UnitDefault
Unit default fires a ProjectileDefault.
firstSSMDS - Variable in class netwar.game.GameObject
The head of the linked list which provides the distanceSquared and Point3D offset from this GameObject to each other GameObject, sorted from closest to farthest.
Fizzle() - Method in class netwar.game.Projectile
Removes this from the game
followRange() - Method in class netwar.game.Unit
Returns the number of Hexes to get within if in Pursuit Mode.
followRange() - Method in class netwar.game.unit.UnitDefault2
Unit default2 pursues to a range of 8 hexes.
followRange() - Method in class netwar.game.unit.UnitDefault
Unit default pursues to a range of 3 hexes.
FPS - class netwar.utils.FPS.
Temporary class to display the number of frames per second.
FPS() - Constructor for class netwar.utils.FPS
Constructs FPS.
frame - Variable in class netwar.game.GameObject
The number of frames remaining until this animation sequence is completed.
framesToDie() - Method in class netwar.game.GameObject
Returns the number of frames of animation for the death sequence.
framesToDie() - Method in class netwar.game.Base
Returns the number of frames of animation for the death sequence.
framesToDie() - Method in class netwar.game.unit.UnitDefault2
Unit default2 uses 10 frames to display a death scene.
framesToDie() - Method in class netwar.game.unit.UnitDefault
Unit default spends 10 frames doing a death scene.
framesToMake() - Method in class netwar.game.GameObject
Returns the number of frames of animation for the creation sequence.
framesToMake() - Method in class netwar.game.Base
Return the number of frames of animation for creation animation.
framesToMake() - Method in class netwar.game.unit.UnitDefault2
Unit default2 requires 10 frames to be created.
framesToMake() - Method in class netwar.game.unit.UnitDefault
Unit default requires 10 frames to be created.
framesToMove() - Method in class netwar.game.Unit
Returns the number of frames needed to move forward one hex.
framesToMove() - Method in class netwar.game.unit.UnitDefault2
Unit default2 requires 10 frames to move forward one hex.
framesToMove() - Method in class netwar.game.unit.UnitDefault
Unit default requires 5 frames to move forward one hex.
framesToRotate() - Method in class netwar.game.Unit
Returns the number of frames needed to rotate one hex-side.
framesToRotate() - Method in class netwar.game.unit.UnitDefault2
Unit default2 requires 6 frames to rotate one hex-side.
framesToRotate() - Method in class netwar.game.unit.UnitDefault
Unit default requires 3 frames to rotate one hex-side.
fullCircle - Static variable in class netwar.utils.Trig
This is the number of angular units in a full circle.

G

GameObject - class netwar.game.GameObject.
Abstract class to define a GameObject.
GameObject() - Constructor for class netwar.game.GameObject
 
GameObjects - Static variable in class netwar.game.GameObject
Vector of GameObjects containing all currently active GameObjects.
GameSettings - class netwar.settings.GameSettings.
STRUCT style class used for network coordination.
GameSettings() - Constructor for class netwar.settings.GameSettings
Creates a new instance of GameSettings
GameViewer - interface netwar.game.GameViewer.
Interface for an object capable of displaying the contents of a game, which are instances of Hex, GameObject and Projectile.
get() - Method in interface netwar.utils.Vector
Gets the current Object's value.
get() - Method in class netwar.utils.LVector
Gets the current Object's value.
getBase() - Method in class netwar.game.Player
Accessor for TeamBase
getColor() - Method in class netwar.game.Player
Returns the team color
getColor() - Method in class netwar.game.HexType
Gets the color for the world map.
getCrossProduct(Point3D) - Method in class netwar.utils.Point3D
Evalutates the cross (vector) product of two vectors.
getDataViewer() - Method in class netwar.Netwar
Used for other things to access the current dataViewer.
getDefaultStatus() - Method in class netwar.game.HexType
Returns default status for Hex with this HexType.
getDifference(Point3D) - Method in class netwar.utils.Point3D
Returns the vector difference of this Point3D and the given Point3D.
getDistanceSquared() - Method in class netwar.game.SelfSortingMutualDistanceSquared
Get a pre-calculated distance squared between the two GameObjects.
getDotProduct(Point3D) - Method in class netwar.utils.Point3D
Evalutates the dot (scalar) product of two vectors.
getHeight() - Method in class netwar.game.GameObject
Return the height of this GameObject for selection box and explosion hit calculations.
getHeight() - Method in class netwar.game.Base
Return the height of this Base for selection box and explosion hit calculations.
getHeight() - Method in class netwar.game.unit.UnitDefault2
Unit default2 is 5 units tall.
getHeight() - Method in class netwar.game.unit.UnitDefault
Unit default is 1.0 units tall.
getHex(int, int) - Static method in class netwar.game.Hex
Retrieves a Hex from the board.
getHexDimension() - Static method in class netwar.game.Hex
Returns the size of a rectangle just big enough to contain one Hex.
getHexViewer() - Static method in class netwar.gui.HexViewer
Returns the one and only HexViewer.
getID() - Method in class netwar.game.GameObject
Accessor for ID.
getIntx() - Method in class netwar.utils.Point2D
This method is a shortcut to Math.round(x) which returns an integer.
getInty() - Method in class netwar.utils.Point2D
This method is a shortcut to Math.round(y) which returns an integer.
getLength() - Method in class netwar.utils.Point2D
Returns the distance from the point to the orgin.
getLength() - Method in interface netwar.utils.Vector
Returns the number of Objects in the list.
getLength() - Method in class netwar.utils.LVector
Returns the number of Objects in the list.
getLength() - Method in class netwar.utils.Point3D
Returns the distance to the orgin, or, returns the length of the vector.
getLengthSquared() - Method in class netwar.utils.Point3D
Same as getLength() without the square root.
getLocal() - Static method in class netwar.game.Player
Returns the local player
getMapPoint(int, int) - Static method in class netwar.game.Hex
Gets the ground-center of the Hex at hex coordinate (x,y).
getMinimapColor() - Method in class netwar.game.Hex
Returns the Color to display on the minimap.
getMinimapColor() - Method in class netwar.game.GameObject
Get the Color for displaying this object on the minimap.
getMinimumSize() - Method in class netwar.gui.HexViewer
 
getNext(GameObject) - Method in class netwar.game.SelfSortingMutualDistanceSquared
Get the next SSMDS in go's list.
getNumber() - Method in class netwar.game.Player
Returns this player's number.
getObjectWithID(int) - Static method in class netwar.game.GameObject
Given an ID number, finds the GameObject with that ID.
getOccupant() - Method in class netwar.game.Hex
Returns the GameObject which is in the Hex.
getOther(GameObject) - Method in class netwar.game.SelfSortingMutualDistanceSquared
Get the other GameObject for this SSMDS.
getPassable() - Method in class netwar.game.HexType
Gets whether or not the tile is passable.
getPlayer() - Method in class netwar.game.GameObject
Accessor for Player
getPlayer(int) - Static method in class netwar.game.Player
Returns the player with number pNum
getPoint2D() - Method in class netwar.utils.Point3D
Converts this gamespace point into a 2D screenspace point using the transform matrix.
getPoint2D(Point3D) - Static method in class netwar.utils.Point3D
Converts this gamespace point into a 2D screenspace point using the transform matrix.
getPoint3D(int, int) - Static method in class netwar.utils.Point3D
Converts a 2D screenspace point into a 3D gamespace point using the transform matrix.
getPoint3D(Point2D) - Static method in class netwar.utils.Point3D
Converts a 2D screenspace point into a 3D gamespace point using the transform matrix.
getPreferredSize() - Method in class netwar.Netwar
Returns the size for the window to be.
getPreferredSize() - Method in class netwar.gui.HexViewer
 
getProduct(float) - Method in class netwar.utils.Point2D
Returns a new Point2D that is the scalar product of this one.
getProduct(float) - Method in class netwar.utils.Point3D
Returns a new Point3D that is the scalar product of this one.
getScale() - Static method in class netwar.utils.Point3D
Returns the current scaling value.
getSum(Point2D) - Method in class netwar.utils.Point2D
Returns a new Point2D that is the sum of this one, and the given vector.
getSum(Point3D) - Method in class netwar.utils.Point3D
Returns the sum of this Point3D and the given vector.
getTarget(GameObject, GameObject) - Method in class netwar.game.SelfSortingMutualDistanceSquared
Traverse go's list, and find the SSMDS that matches with target.
getVector(GameObject) - Method in class netwar.game.SelfSortingMutualDistanceSquared
Get a Point3D which is the vector from the passed GameObject to the other GameObject.
getWidth() - Method in class netwar.game.GameObject
Return the width of this GameObject for selection box and explosion hit calculations.
getWidth() - Method in class netwar.game.Base
Return the width of this Base for selection box and explosion hit calculations.
getWidth() - Method in class netwar.game.unit.UnitDefault2
Unit default2 is 5 units wide.
getWidth() - Method in class netwar.game.unit.UnitDefault
Unit default is 7.0 units wide.
getXY(Point3D) - Static method in class netwar.game.Hex
Gets the Hex containing a game-space point, and alters the parameter to contain the hex coordinates, by storing the hex x in vr.x and the hex y in vr.y
getZoomLevel() - Static method in class netwar.gui.MouseParser
Accessor for Zoom Level.
global - Variable in class netwar.settings.GameSettings
The GlobalSettings, which contains initialization data not specific to any one player.
GlobalSettings - class netwar.settings.GlobalSettings.
STRUCT style class used for network coordination.
GlobalSettings(int) - Constructor for class netwar.settings.GlobalSettings
Creates a new instance of GlobalSettings
go(int) - Method in interface netwar.utils.Vector
Sets the current Object to the given index.
go(int) - Method in class netwar.utils.LVector
Sets the current Object to the given index.
goalX - Variable in class netwar.game.GameObject
X part of the hex coord of the long term goal.
goalY - Variable in class netwar.game.GameObject
Y part of the hex coord of the long term goal.
goFirst() - Method in interface netwar.utils.Vector
Sets the current Object to the first one in the list.
goFirst() - Method in class netwar.utils.LVector
Sets the current Object to the first one in the list.
goNext() - Method in interface netwar.utils.Vector
Sets the current Object to the next one in the list.
goNext() - Method in class netwar.utils.LVector
Sets the current Object to the next one in the list.
goPrev() - Method in interface netwar.utils.Vector
Sets the current Object to the previous one in the list.
goPrev() - Method in class netwar.utils.LVector
Sets the current Object to the previous one in the list.

H

health - Variable in class netwar.game.Unit
A value indicating the amount of damage still needed to destroy this Unit.
Hex - class netwar.game.Hex.
This class represents a single hexagon-shaped region of game-space.
Hex(HexType) - Constructor for class netwar.game.Hex
This constructor initializes the Hex according to a HexType's initializing data.
HexType - class netwar.game.HexType.
The HexType class contains every bit of information that is needed to describe a whole set of similar tiles.
HexType(String) - Constructor for class netwar.game.HexType
Creates a new instance of HexType
HexType(String, Color) - Constructor for class netwar.game.HexType
Creates a new instance of HexType
HexType(String, Color, boolean) - Constructor for class netwar.game.HexType
Creates a new instance of HexType
HexViewer - class netwar.gui.HexViewer.
This is the main game view panel which displays what is happening in the game.
HostConnection - class netwar.gui.HostConnection.
Composite GUI class opened when the program is first start.
HostConnection() - Constructor for class netwar.gui.HostConnection
Creates new form pan

I

incG() - Static method in class netwar.utils.FPS
To be called only from within a graphics update.
incU() - Static method in class netwar.utils.FPS
To be called only from within an Updater update.
initialize() - Static method in class netwar.utils.Trig
Sets up the Trig lookup table.
insert(Object) - Method in interface netwar.utils.Vector
Insert an Object at the current position.
insert(Object) - Method in class netwar.utils.LVector
Insert an Object at the current position.
isDead() - Method in class netwar.game.GameObject
Return true if the object is not a valid target for attacks nor following.
isDead() - Method in class netwar.game.Base
Return true if the object is not a valid target for attacks nor following.
isDead() - Method in class netwar.game.Unit
Return True iff the Unit is already destroyed.
isEmpty() - Method in class netwar.game.Hex
Checks if the Hex is unoccupied.
isEmpty() - Method in class netwar.utils.AQueue
Returns whether or not the queue is empty.
isEmpty() - Method in interface netwar.utils.Vector
Returns whether or not the list is empty.
isEmpty() - Method in class netwar.utils.LVector
Returns true if the current pointer is valid.
isEmpty() - Method in interface netwar.utils.Queue
Returns whether or not the queue is empty.
isInList() - Method in interface netwar.utils.Vector
Returns true if the current pointer is valid.
isInList() - Method in class netwar.utils.LVector
Returns true if the current pointer is valid.

L

leave(GameObject) - Method in class netwar.game.Hex
Removes the GameObject from the Hex, if it is the GameObject which was in the Hex.
life - Variable in class netwar.game.Projectile
The number of frames remaining before this projectile must cease existing (it may cease before then)
LoadImage - class netwar.utils.LoadImage.
A utility class to load images from the JAR file.
LoadImage() - Constructor for class netwar.utils.LoadImage
Constructor.
LoadWaitForImage(String) - Static method in class netwar.utils.LoadImage
Loads an image and does not return until it is finished loading.
locate() - Method in class netwar.game.GameObject
Accessor for vr[0].
LVector - class netwar.utils.LVector.
Linked list version of Vector
LVector() - Constructor for class netwar.utils.LVector
Constructs an LVector.
LVector(int) - Constructor for class netwar.utils.LVector
Constructs an LVector.

M

main(String[]) - Static method in class netwar.Netwar
Creates one instance of Netwar, causing the window to exist.
makeBoard(int) - Static method in class netwar.game.Hex
Initializes the board, which is a static array of Hex objects, designed to produce a hexagon of hexagons.
maker - Variable in class netwar.game.Projectile
The object that fired this shot (in case it is relevant)
maxHealth() - Method in class netwar.game.Unit
Returns The maximum value of health for this Unit, which is the initial value for health.
maxHealth() - Method in class netwar.game.unit.UnitDefault2
Unit default2 has a maximum of 120 health.
maxHealth() - Method in class netwar.game.unit.UnitDefault
Unit default has a maximum of 100 health.
maxHeight - Static variable in class netwar.gui.HexViewer
The maximum height that this component could conceivably reach.
maxWidth - Static variable in class netwar.gui.HexViewer
The maximum width that this component could conceivably reach.
maxZoom - Static variable in class netwar.gui.MouseParser
The maximum zoom level.
minZoom - Static variable in class netwar.gui.MouseParser
The minimum zoom level.
mode - Variable in class netwar.game.GameObject
Code number indicating the long term goal set by this object.
mouseClicked(MouseEvent) - Method in class netwar.gui.MouseParser
Required by MouseListener, but not currently used.
mouseDragged(MouseEvent) - Method in class netwar.gui.MouseParser
Required by MouseMotionListener, but not currently used.
mouseEntered(MouseEvent) - Method in class netwar.gui.MouseParser
Required by MouseListener, but not currently used.
mouseExited(MouseEvent) - Method in class netwar.gui.MouseParser
Required by MouseListener, but not currently used.
mouseMoved(MouseEvent) - Method in class netwar.gui.MouseParser
Required by MouseMotionListener, but not currently used.
MouseParser - class netwar.gui.MouseParser.
This is the MouseListener and MouseMotionListener for HexViewer.
MouseParser() - Constructor for class netwar.gui.MouseParser
 
mousePressed(MouseEvent) - Method in class netwar.gui.MouseParser
Required by MouseListener, but not currently used.
mouseReleased(MouseEvent) - Method in class netwar.gui.MouseParser
Catches and interprets a mouse click.
mustExplode() - Method in class netwar.game.Projectile
Return true iff it should detonate when it's life runs out.
mustExplode() - Method in class netwar.game.projectile.ProjectileDefault2
Projectile default2 will explode if it's life runs out while in the air (doesn't happen)
mustExplode() - Method in class netwar.game.projectile.ProjectileDefault
Projectile default will simply fizzle if its life runs out (highly unlikely)
myID - Variable in class netwar.game.GameObject
The ID number of this GameObject.
myPlayer - Variable in class netwar.game.GameObject
The Player who owns this game Object.

N

nc - Static variable in class netwar.Netwar
The NetworkClient which allows this computer to connect to a host, including itself
netwar - package netwar
 
netwar - Static variable in class netwar.Netwar
This is the instance of Netwar which is the entire program.
Netwar - class netwar.Netwar.
This is the class for the Netwar window.
netwar.game - package netwar.game
 
netwar.game.projectile - package netwar.game.projectile
 
netwar.game.unit - package netwar.game.unit
 
netwar.gui - package netwar.gui
 
netwar.network - package netwar.network
 
netwar.settings - package netwar.settings
 
netwar.utils - package netwar.utils
 
NetwarPanel - class netwar.gui.NetwarPanel.
This class creates the panel that is to be displayed with the Hex viewer during the main game.
NetwarPanel() - Constructor for class netwar.gui.NetwarPanel
This will create a new NetwarPanel.
NetworkClient - class netwar.network.NetworkClient.
The Client network adapter that sends and recieves commands to and from the Netwar Server.
NetworkClient(String) - Constructor for class netwar.network.NetworkClient
Creates a new instance of NetworkClient
NetworkClientInterface - interface netwar.network.NetworkClientInterface.
The Client network adapter that sends and recieves commands to and from the Netwar Server.
NetworkServer - class netwar.network.NetworkServer.
NetworkServer.
NetworkServer() - Constructor for class netwar.network.NetworkServer
Creates a new instance of NetworkServer which is binded to "Netwar Server" in the RMI Registry.
NetworkServerInterface - interface netwar.network.NetworkServerInterface.
Remote interface for NetworkServer.
newGameObject(GameObject, int, int, int, Player) - Static method in class netwar.game.GameObject
Adds a GameObject into the game at the specified location, on the specified team.
newProjectile(Projectile, Point3D, Point3D, int, int, int, GameObject, GameObject) - Static method in class netwar.game.Projectile
This method initializes a Projectile.
newSSMDS(GameObject, GameObject) - Static method in class netwar.game.SelfSortingMutualDistanceSquared
This calls the constructor for SSMDS to prevent the new object from being assigned to a reference, which would be improper usage.
Normalize() - Method in class netwar.utils.Point3D
Changes the length of this vector to 1.
normalize(int) - Static method in class netwar.utils.Trig
Returns an angle equivalent to a, but guaranteed to be within the range [0, fullCirlce).
notFalse(boolean) - Static method in class netwar.utils.Assert
Throws an IllegalArgumentException if the given parameter is false.
notFalse(boolean, String) - Static method in class netwar.utils.Assert
Throws an IllegalArgumentException if the given parameter is false.
notNull(Object) - Static method in class netwar.utils.Assert
Throws an IllegalArgumentException if the given parameter is null.
notNull(Object, String) - Static method in class netwar.utils.Assert
Throws an IllegalArgumentException if the given parameter is null.

O

OpeningPanel - class netwar.gui.OpeningPanel.
Composite GUI class opened when the program is first start.
OpeningPanel() - Constructor for class netwar.gui.OpeningPanel
Creates new OpeningPanel

P

paint(Graphics) - Method in class netwar.gui.HexViewer
Requests all visible aspects of the game to draw in the appropriate order.
param(int) - Method in class netwar.game.GameObject
Arbitrary initialization.
param(int) - Method in class netwar.game.Unit
Sets the facing of the Unit when it is created
peek() - Method in class netwar.utils.AQueue
Peeks at the next Object to dequeue.
peek() - Method in interface netwar.utils.Queue
Peeks at the next Object to dequeue.
pendingCommands - Static variable in class netwar.game.Command
The set of local commands which need to be sent to other players.
pi(float) - Static method in class netwar.utils.Trig
Returns the measure of an angle in angular units (degrees) which has a measure of factor times pi radians.
Player - class netwar.game.Player.
Class representing a single Player's data.
Player(int, int, int, Color, boolean) - Constructor for class netwar.game.Player
Creates a new instance of Player.
playerCount - Variable in class netwar.settings.GameSettings
The number of players currently connected to the game.
playerNumber - Variable in class netwar.network.NetworkClient
This players number.
players - Variable in class netwar.settings.GameSettings
The PlayerSettings array, which contains the player-specific initialization data for each player.
PlayerSettings - class netwar.settings.PlayerSettings.
STRUCT style class used for network coordination.
PlayerSettings(Color, String) - Constructor for class netwar.settings.PlayerSettings
Creates a new instance of PlayerSettings
Point2D - class netwar.utils.Point2D.
This class is used to represent a location or vector in screenspace.
Point2D() - Constructor for class netwar.utils.Point2D
Constructs a Point2D at the orgin.
Point2D(float, float) - Constructor for class netwar.utils.Point2D
Constructs a Point2D at the given point.
Point2D(Point2D) - Constructor for class netwar.utils.Point2D
Constructs a Point2D at the given point.
Point3D - class netwar.utils.Point3D.
This class is used to represent a location or vector in gamespace.
Point3D() - Constructor for class netwar.utils.Point3D
Constructor for the orgin.
Point3D(double, double, double) - Constructor for class netwar.utils.Point3D
Constructs a Point3D, converting the doubles to floats.
Point3D(float, float, float) - Constructor for class netwar.utils.Point3D
Constructs a Point3D
Point3D(Point3D) - Constructor for class netwar.utils.Point3D
Copy constructor
Projectile - class netwar.game.Projectile.
Abstract class representing one shot fired from some weapon.
Projectile() - Constructor for class netwar.game.Projectile
 
ProjectileDefault - class netwar.game.projectile.ProjectileDefault.
This projectile flies straight.
ProjectileDefault() - Constructor for class netwar.game.projectile.ProjectileDefault
Creates a new instance of ProjectileDefault
ProjectileDefault2 - class netwar.game.projectile.ProjectileDefault2.
This projectile arcs through the air.
ProjectileDefault2() - Constructor for class netwar.game.projectile.ProjectileDefault2
Creates a new instance of ProjectileDefault2
Projectiles - Static variable in class netwar.game.Projectile
The vector containing all currently existing Projectiles.
pset - Variable in class netwar.Netwar
Player settings being used for the local player.

Q

Queue - interface netwar.utils.Queue.
A Queue ADT

R

radialX(int, int, boolean) - Static method in class netwar.game.Hex
Used for determining initial base locations.
radialY(int, int, boolean) - Static method in class netwar.game.Hex
Used for determining initial base locations.
radiusSquared - Variable in class netwar.game.Projectile
The square of the radius of explosion for this shot.
random - Variable in class netwar.Netwar
This is the java.util.Random which is used for random numbers throughout the game.
randomSeed - Variable in class netwar.settings.GlobalSettings
The random seed.
receiveChat(String) - Method in class netwar.gui.NetwarPanel
This method will display the messages in the chat window that players send.
recieveDamage(int) - Method in class netwar.game.GameObject
Apply damage to this object.
recieveDamage(int) - Method in class netwar.game.Base
Apply damage to this object.
recieveDamage(int) - Method in class netwar.game.Unit
Applies damage to this Unit, possibly destroying it.
reload - Variable in class netwar.game.GameObject
The number of frames remaining until the primary weapon is reloaded.
remove() - Method in interface netwar.utils.Vector
Removes and returns the current Object of the list.
remove() - Method in class netwar.utils.LVector
Removes and returns the current Object of the list.
remove(GameObject) - Method in class netwar.game.SelfSortingMutualDistanceSquared
When called on the go.firstSSMDS, it will recursively remove all of the SSMDSs' which reference go.
removeMe() - Method in class netwar.game.GameObject
Removes this GameObject from the game.
repaint() - Method in class netwar.gui.HostConnection
Called by the NetworkClient if the GameSettings was changed.
repaint() - Method in class netwar.gui.ClientConnected
Called by the NetworkClient if the GameSettings was changed.
reserve() - Method in class netwar.game.Hex
Attempts to reserve this Hex for the caller.
reserved - Variable in class netwar.game.Unit
True if the Unit has a Hex reserved to move into.
resF - Variable in class netwar.game.Unit
The facing this Unit should have when moving into the reserved Hex.
resize(int) - Method in class netwar.utils.AQueue
Internally resizes the queue to hold at least the given number of items
resize(int) - Method in interface netwar.utils.Vector
Resizes the internal stucture to hold at least the given numer of objects.
resize(int) - Method in class netwar.utils.LVector
Resizes the internal stucture to hold at least the given numer of objects.
resize(int) - Method in interface netwar.utils.Queue
Internally resizes the queue to hold at least the given number of items
Resolutions - Static variable in class netwar.game.HexType
Contains the common dimensions of all the tiles.
resX - Variable in class netwar.game.Unit
X part of the Hex coord reserved for this Unit to move into another Hex.
resY - Variable in class netwar.game.Unit
Y part of the Hex coord reserved for this Unit to move into another Hex.
reviseSettings(int, PlayerSettings, GlobalSettings) - Method in class netwar.settings.GameSettings
Alters this GameSettings by replacing player pNumber's settings, or if pNumber == 0, replaces the GlobalSettings.
right - Static variable in class netwar.utils.Trig
This is the number of angular units in a right angle.

S

scan() - Method in class netwar.game.GameObject
GameObject scanner! Finds the nearest living enemy.
scanRangeSquared() - Method in class netwar.game.GameObject
Determines the distance to scan for nearby enemies.
scanRangeSquared() - Method in class netwar.game.unit.UnitDefault
Unit default uses a scan range of 160.0 units, or 8 hexes.
SelfSortingMutualDistanceSquared - class netwar.game.SelfSortingMutualDistanceSquared.
This class provides a high-RAM, low computation way to find a listing of all other GameObjects, sorted from closest to farthest.
send() - Method in class netwar.network.NetworkClient
Sends the pending local command to the server RMI type: Client
server - Static variable in class netwar.network.NetworkServer
Global Server object so server can be referenced on the local "host" machine
set(float, float, float) - Method in class netwar.utils.Point3D
Sets this point from the given information.
set(Object) - Method in interface netwar.utils.Vector
Sets the current Object's value: a reference.
set(Object) - Method in class netwar.utils.LVector
Sets the current Object's value: a reference.
set(Point3D) - Method in class netwar.utils.Point3D
Sets this point as a copy of the given one.
setBounds(int, int, int, int) - Method in class netwar.gui.HexViewer
Captures the new size of the HexViewer, so that the view can be recentered.
setColor(Color) - Method in interface netwar.game.GameViewer
This method sets the color for subsequent calls to drawLine and drawTriangle.
setColor(Color) - Method in class netwar.gui.HexViewer
 
setCommand(int, Command) - Method in interface netwar.network.NetworkServerInterface
Sends the command the player made to the server
setCommand(int, Command) - Method in class netwar.network.NetworkServer
Sends the command the player made to the server RMI type: Server
setCompleteSetOfCommands(Command[]) - Method in interface netwar.network.NetworkClientInterface
The Netwar server will send the complete set of commands once it recieves them from every single player using this method RMI type: Server
setCompleteSetOfCommands(Command[]) - Method in class netwar.network.NetworkClient
The Netwar server will send the complete set of commands once it recieves them from every single player using this method RMI type: Server
setGoal() - Method in class netwar.game.GameObject
Clear the current long-term goal.
setGoal() - Method in class netwar.game.Base
Clear the current long-term goal.
setGoal() - Method in class netwar.game.Unit
Sets the unit to Guard Mode
setGoal(GameObject) - Method in class netwar.game.GameObject
Set the current long-term goal to a GameObject.
setGoal(GameObject) - Method in class netwar.game.Base
Set the current long-term goal to a GameObject.
setGoal(GameObject) - Method in class netwar.game.Unit
Sets the Unit to Pursuit Mode
setGoal(int, int) - Method in class netwar.game.GameObject
Set the current long-term goal to a location, at hex coordinate (gx, gy).
setGoal(int, int) - Method in class netwar.game.Base
Set the current long-term goal to a location, at hex coordinate (gx, gy).
setGoal(int, int) - Method in class netwar.game.Unit
Sets the unit to Move Mode
shrink() - Method in class netwar.utils.AQueue
Internally resizes the queue to hold at least the given number of items
shrink() - Method in interface netwar.utils.Vector
Resizes the internal stucture to use the least amount or memory.
shrink() - Method in class netwar.utils.LVector
Resizes the internal stucture to use the least amount or memory.
shrink() - Method in interface netwar.utils.Queue
Internally shrinks the memory footprint.
sin(int) - Static method in class netwar.utils.Trig
Returns the sine of the angle.
spawnUnit(int) - Method in class netwar.game.Base
If the base is not already trying to make a Unit, this will cause it to begin attempting to make a unit.
sqrt3 - Static variable in class netwar.game.Hex
The square root of three, which is particularly relavent to hexagon geometry.
startGame() - Method in class netwar.Netwar
Start the game! Should be called once by the server.
startGame() - Method in interface netwar.network.NetworkClientInterface
Signals the local machine that the server wants to start the game.
startGame() - Method in class netwar.network.NetworkClient
Signals the local machine that the server wants to start the game.
startGame() - Method in class netwar.network.NetworkServer
Sends the signal to start the game to every client.
switchToViewer(Container) - Method in class netwar.Netwar
Called by a viewer, passing the new viewer to replace it.

T

target - Variable in class netwar.game.GameObject
The GameObject which is being pursued and/or shot at by this GameObject.
targetSSMDS - Variable in class netwar.game.GameObject
The SSMDS which provides distanceSquared and offset data for the target.
teamColor - Variable in class netwar.settings.PlayerSettings
The color used by this player's GameObjects to differentiate them visually.
teamName - Variable in class netwar.settings.PlayerSettings
The name of this player, used for chat and other player to player interactions.
think() - Method in class netwar.game.Unit
Think about what to do.
translate(int, int) - Static method in class netwar.utils.Point3D
Adjusts the transform matrix in the (x,y,0) direction.
Trig - class netwar.utils.Trig.
This is a purely static class used to perform trigonometric calculations rapidly.
Trig() - Constructor for class netwar.utils.Trig
 

U

Unit - class netwar.game.Unit.
Abstract class which defines a mobile GameObject.
Unit() - Constructor for class netwar.game.Unit
 
UnitDefault - class netwar.game.unit.UnitDefault.
Temporary Unit class.
UnitDefault() - Constructor for class netwar.game.unit.UnitDefault
Constructor.
UnitDefault2 - class netwar.game.unit.UnitDefault2.
Temporary Unit class.
UnitDefault2() - Constructor for class netwar.game.unit.UnitDefault2
Constuctor.
unreserve() - Method in class netwar.game.Hex
Unreserves this Hex.
update() - Method in class netwar.game.GameObject
Perform operations for this time step.
update() - Method in class netwar.game.Base
Perform operations for this time step.
update() - Method in class netwar.game.SelfSortingMutualDistanceSquared
When a GameObject moves, it should call this on each SSMDS in its list.
update() - Method in class netwar.game.Unit
Called once per time-step to perform necessary processing.
Update() - Method in class netwar.game.Projectile
Function to perform the processing needed during a single time-step.
Update() - Method in class netwar.game.projectile.ProjectileDefault2
Move forward.
Update() - Method in class netwar.game.projectile.ProjectileDefault
Move forward.
update(Graphics) - Method in class netwar.gui.HexViewer
Overrides default update, to prevent flicker.
updateAll() - Static method in class netwar.game.GameObject
Called by the game cycle update system to cause all GameObjects to perform one time-step of animations and decision making.
UpdateAll() - Static method in class netwar.game.Projectile
Calls update() on all Projectiles in the Vector.
updateDisplay() - Method in class netwar.gui.NetwarPanel
This updates all of the "old" information of the NetwarPanel.

V

Vector - interface netwar.utils.Vector.
Vector ADT, interface.
velocity - Variable in class netwar.game.Projectile
The velocity of the projectile, in game-space units per time-step
vr - Variable in class netwar.game.GameObject
Point3d's for locations within the hex.

W

weaponDelay() - Method in class netwar.game.GameObject
Return the number of frames to wait between firing shots.
weaponDelay() - Method in class netwar.game.Base
Return the number of frames to wait between firing shots.
weaponDelay() - Method in class netwar.game.unit.UnitDefault2
Unit default2 must wait 20 frames between shots.
weaponDelay() - Method in class netwar.game.unit.UnitDefault
Unit default can fire every fifth frame.
weaponRangeSquared() - Method in class netwar.game.GameObject
Return the square of the maximum weapon range of this GameObject.
weaponRangeSquared() - Method in class netwar.game.Base
Return the square of the maximum weapon range of this GameObject.
weaponRangeSquared() - Method in class netwar.game.unit.UnitDefault2
Unit default2 has a weapon range of 200 units, or 10 hexes.
weaponRangeSquared() - Method in class netwar.game.unit.UnitDefault
Unit default has a weapon range of 80.0 units, or 4 hexes.
windowActivated(WindowEvent) - Method in class netwar.Netwar
Implemented for WindowListener.
windowClosed(WindowEvent) - Method in class netwar.Netwar
Called when the window closes, ends the program.
windowClosing(WindowEvent) - Method in class netwar.Netwar
Implemented for WindowListener.
windowDeactivated(WindowEvent) - Method in class netwar.Netwar
Implemented for WindowListener.
windowDeiconified(WindowEvent) - Method in class netwar.Netwar
Implemented for WindowListener.
windowIconified(WindowEvent) - Method in class netwar.Netwar
Implemented for WindowListener.
windowOpened(WindowEvent) - Method in class netwar.Netwar
Implemented for WindowListener.

X

x - Variable in class netwar.game.GameObject
X part of current hex coordinate.
x - Variable in class netwar.utils.Point2D
X-axis value or length.
x - Variable in class netwar.utils.Point3D
X-axis value or length.

Y

y - Variable in class netwar.game.GameObject
Y part of current hex coordinate
y - Variable in class netwar.utils.Point2D
Y-axis value or length.
y - Variable in class netwar.utils.Point3D
Y-axis value or length.

Z

z - Variable in class netwar.utils.Point3D
Z-axis value or length.
zoom(float, int, int) - Static method in class netwar.utils.Point3D
Adjusts the transform matrix in the (0,0,z) direction.
zoomFactor - Static variable in class netwar.gui.MouseParser
The factor for zooming.

A B C D E F G H I L M N O P Q R S T U V W X Y Z