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

*

- package
 

A

allShipsPlaced() - Method in class Ships
Used by battleship Simulator to verify correct placement of all ships
allShipsSunk() - Method in class Ships
Used by battleship Simulator
avgMoves - Variable in class PerformanceRating
 

B

badMoves - Variable in class PerformanceRating
 
BattleShip - class BattleShip.
BattleShip Simulator - allows players to test strategy and determine performanc level Quick Implementation Hints
BattleShip() - Constructor for class BattleShip
 
bestMoves - Variable in class PerformanceRating
 
board - Variable in class Board
board represents, the guessing board or your defensive ships board
Board - class Board.
Creates Board - Note board Matrix is public
Board() - Constructor for class Board
creates the board matrix and sets all coordinates to EMPTYCHAR

C

checkAuthenication(Object) - Method in class MessageTemplate
 
checkAuthenication(Player) - Method in class Message
prohibits any changes in player using checkAuthenication
checkSunk(Coordinates) - Method in class Ships
Used by BattleShip Simulator
classPtr - Variable in class MessageTemplate
points to class object relative current message
clear() - Method in class Board
 
clear() - Method in class Ships
resets place and sunk arrays to false and clear board
clone() - Method in class PerformanceRating
 
code - Static variable in class Ships
Character array each code represent unique ship identifier
col - Variable in class Coordinates
public variables a Coordinates is row, column
Coordinates - class Coordinates.
Used to check, create and move the board location row,column;
Coordinates() - Constructor for class Coordinates
 
Coordinates(Coordinates) - Constructor for class Coordinates
 
Coordinates(int) - Constructor for class Coordinates
sets Coordinate to the i where i = row*MAXCOLS + col
Coordinates(int, int) - Constructor for class Coordinates
 
copy(Board) - Method in class Board
 
copy(Coordinates) - Method in class Coordinates
 
copy(MessageTemplate) - Method in class MessageTemplate
 
copy(PerformanceRating) - Method in class PerformanceRating
 
copy(Ships) - Method in class Ships
Used by battleShip simulator to make a new copy of a ship object
coverage - Variable in class PerformanceRating
 

D

details - Variable in class MessageTemplate
Details of current message, child must be able to set this on demand
distance(Coordinates) - Method in class Coordinates
computes the horizontal or vertical distance between two points
distribution - Variable in class PerformanceRating
First distribution 0..100, 525/50 = 10.5, last 625..maxMoves
DOWN - Static variable in class Ships
 
down() - Method in class Coordinates
takes current coordinate object and moves is down one row

E

EMPTYCHAR - Static variable in class Board
Global constant represent the board character for an empty coordinate Initially the entire guessing board is empty
equals(Coordinates) - Method in class Coordinates
 
exceptions - Static variable in class Ships
Defines the Three exceptions thrown by placeShips method

F

fileStat(Message) - Method in class PlayerDJB
 
fileStat(Message) - Method in class PlayerGM
 
fileStat(Message) - Method in class PlayerGM1
 
fileStat(Message) - Method in class PlayerTMD0
 
fileStat(Message) - Method in class PlayerTMD1
 
fileStat(Message) - Method in class PlayerTMD2
 
fileStat(Message) - Method in class PlayerTMD3
 
fileStat(Message) - Method in class PlayerTMD4
 
finalize() - Method in class PlayerTMD1
 
findShip(char) - Method in class Ships
 

G

get() - Method in class MessageTemplate
 
get(Coordinates) - Method in class Board
 
get(int, int) - Method in class Board
 
getAlterEgo() - Method in class VitalStatistics
 
getAverageMoves() - Method in class PlayerSkills
returns average Moves used in last singleUserTestMode
getAverageMoves() - Method in class SeriesRating
 
getBadMoves() - Method in class PlayerSkills
returns total number of bad Moves or guesses for all games in singleUserTestMode
getBestMoves() - Method in class PlayerSkills
Returns number of moves for best game in singleUserTestMode
getClassPointer() - Method in class MessageTemplate
 
getCoverage() - Method in class PlayerSkills
returns coverage as board percentage
getCoverage() - Method in class SeriesRating
 
getDetails() - Method in class MessageTemplate
 
getHead() - Static method in class SeriesRating
 
getLink() - Method in class SeriesRating
 
getLoser() - Method in class SeriesRating
 
getLoss() - Method in class PlayerSkills
returns number of Losses
getLosses() - Method in class SeriesRating
 
getMission() - Method in class VitalStatistics
 
getMoves() - Method in class PlayerSkills
Returns count of current number of moves in Current Game
getName() - Method in class MessageTemplate
 
getName() - Method in class Message
 
getPerformance() - Method in class PlayerSkills
returns most recent performance level
getRealName() - Method in class VitalStatistics
 
getRecipient() - Method in class MessageTemplate
 
getSignature() - Method in class MessageTemplate
 
getSkill() - Method in class PlayerSkills
 
getTimeLog() - Method in class PlayerSkills
returns current sum of times
getTotalMoves() - Method in class PlayerSkills
returns total number of Moves in a series
getVictories() - Method in class SeriesRating
 
getWin() - Method in class PlayerSkills
returns number of Victories
getWinner() - Method in class SeriesRating
 
getWorstMoves() - Method in class PlayerSkills
Returns moves representing worst SingleUserTestMode game
GoForIt - class GoForIt.
Main classes used to test your Player class, you may put your main in your player class or use goForIt.
GoForIt() - Constructor for class GoForIt
 

H

headToHead(BattleShip.PlayerType[], boolean) - Method in class BattleShip
 
headToHead(Player, Player) - Method in class BattleShip
 
headToHead(Player, Player, boolean, int) - Method in class BattleShip
 
headToHead(Player, Player, int) - Method in class BattleShip
 
HITCHAR - Static variable in class Board
Global constant represent the board character for a hit coordinate

I

IDHeadToHead - Static variable in class Message
 
IDHeadToHeadDone - Static variable in class Message
 
IDHit - Static variable in class Message
 
IDLost - Static variable in class Message
 
IDMiss - Static variable in class Message
 
IDNewGame - Static variable in class Message
 
IDPerformanceRating - Static variable in class Message
 
IDPlaceShips - Static variable in class Message
 
IDPlaceShipsFailed - Static variable in class Message
 
IDSeriesRating - Static variable in class Message
 
IDSingleUser - Static variable in class Message
 
IDSingleUserDone - Static variable in class Message
 
IDSunk - Static variable in class Message
 
IDTooManyMoves - Static variable in class Message
 
IDTournament - Static variable in class Message
 
IDTournamentDone - Static variable in class Message
 
IDUnknown - Static variable in class Message
 
IDWin - Static variable in class Message
 
IDYourOpponents - Static variable in class Message
 
IDYourShipHit - Static variable in class Message
 
IDYourShipNearHit - Static variable in class Message
 
IDYourShipSunk - Static variable in class Message
 
IDYourWorstBoard - Static variable in class Message
 
isGameOver() - Method in class Message
 
isHeadToHead() - Method in class Message
 
isHeadToHeadDone() - Method in class Message
 
isHit() - Method in class Message
 
isLegal() - Method in class Coordinates
 
isLegalCol() - Method in class Coordinates
 
isLegalRow() - Method in class Coordinates
 
isLost() - Method in class Message
 
isMiss() - Method in class Message
 
isNewGame() - Method in class Message
 
isPlaceShips() - Method in class Message
 
isSingleUser() - Method in class Message
 
isSingleUserDone() - Method in class Message
 
isSunk() - Method in class Message
 
isTooManyMoves() - Method in class Message
 
isTournament() - Method in class Message
 
isTournamentDone() - Method in class Message
 
isWin() - Method in class Message
 
isYourShipHit() - Method in class Message
 
isYourShipNearHit() - Method in class Message
 
isYourShipSunk() - Method in class Message
 

L

LEFT - Static variable in class Ships
 
left() - Method in class Coordinates
takes current coordinate object and moves it left one coordinate
loss - Variable in class PerformanceRating
 

M

main(String[]) - Static method in class BattleShip
 
main(String[]) - Static method in class Board
used for testing board and print method
main(String[]) - Static method in class GoForIt
 
makeMove(Message, Board) - Method in class Player
Abstract methods must be declared in all sub-class children
makeMove(Message, Board) - Method in class PlayerDJB
 
makeMove(Message, Board) - Method in class PlayerGM
 
makeMove(Message, Board) - Method in class PlayerGM1
 
makeMove(Message, Board) - Method in class PlayerTMD0
 
makeMove(Message, Board) - Method in class PlayerTMD1
 
makeMove(Message, Board) - Method in class PlayerTMD2
 
makeMove(Message, Board) - Method in class PlayerTMD3
 
makeMove(Message, Board) - Method in class PlayerTMD4
 
max(Coordinates) - Method in class Coordinates
 
MAXCOLS - Static variable in class Board
Global constant number of columns on each board
MAXROWS - Static variable in class Board
Global constant number of rows on each board a Coordinate is row, column
MAXSHIPS - Static variable in class Ships
Global constants defines The number of Ships
Message - class Message.
Used to by battleship simulator to send message to each player,
Message(int, Object, Player) - Constructor for class Message
 
MessageTemplate - class MessageTemplate.
Message SuperClass used by Battleship to send Message to Players
MessageTemplate() - Constructor for class MessageTemplate
 
min(Coordinates) - Method in class Coordinates
 
MISSCHAR - Static variable in class Board
Global constant represent the board character for a missed coordinate
moves - Variable in class PerformanceRating
Number of moves so far in a game
msgID - Variable in class MessageTemplate
 
multiUserTestMode(Player[], int, boolean, Player) - Method in class BattleShip
Creates same board and tests to see how long it takes each player to finish board
mutliUserTestMode(Player[]) - Method in class BattleShip
 

N

name - Static variable in class Ships
String array representing the name of each ship
next() - Method in class Coordinates
takes current coordinate object and moves it to the next location when coordinate reaches end of board is starts over at 0,0

P

performance - Variable in class PerformanceRating
 
PerformanceRating - class PerformanceRating.
Performance Rating Maintains key statistics for singleUserTestMode and headToHead combat
PerformanceRating() - Constructor for class PerformanceRating
 
placeShips(int, Coordinates, char) - Method in class Ships
 
placeShips(int, Coordinates, Coordinates) - Method in class Ships
Must be used by all Player's to place each ship individual
placeShips(Ships) - Method in class PlayerGM
 
placeShips(Ships) - Method in class PlayerGM1
 
Player - class Player.
parent class of all players, requires user to implement makeMove
Player() - Constructor for class Player
 
PlayerDJB - class PlayerDJB.
Palomar Teenage Came in first Place Regulation Contest Real Name: djb Performance 7.22
PlayerDJB() - Constructor for class PlayerDJB
 
PlayerGM - class PlayerGM.
Combat Name: Palomar College Hall of Framer Real Name: Greg Messer Performanc Rating 4.79
PlayerGM() - Constructor for class PlayerGM
 
PlayerGM1 - class PlayerGM1.
Combat Name: Palomar College Hall of Framer Enhanced Performance 10.54 Real Name: Greg Messer
PlayerGM1() - Constructor for class PlayerGM1
 
PlayerSkills - class PlayerSkills.
Performance rating is set by battleship simulator right after singleUserTest Mode
PlayerSkills() - Constructor for class PlayerSkills
set to true when VitalStatistics are set you may only set variables realName, alterEgo, mission once
PlayerTMD0 - class PlayerTMD0.
Combat name Linear Real Name Tom DeDonno Performance 4.54
PlayerTMD0() - Constructor for class PlayerTMD0
 
PlayerTMD1 - class PlayerTMD1.
Combat name: Random Real Name Tom DeDonno Performance -60
PlayerTMD1() - Constructor for class PlayerTMD1
 
PlayerTMD2 - class PlayerTMD2.
Combat name enhanced random player Real Name:Tom DeDonno Performance 7.5
PlayerTMD2() - Constructor for class PlayerTMD2
 
PlayerTMD3 - class PlayerTMD3.
Combat name: Ace in the Hole Real name: Tom DeDonno performance rating of 11.3
PlayerTMD3() - Constructor for class PlayerTMD3
 
PlayerTMD4 - class PlayerTMD4.
Combat name Linear Enhanced (Similiar to Palomar Strategy) Performance level 8.79
PlayerTMD4() - Constructor for class PlayerTMD4
 
print() - Method in class BattleShip
Print VitalStatistics off current active player list
print() - Method in class PrintSuperClass
 
print(PrintWriter) - Method in class PrintSuperClass
 
print(PrintWriter) - Method in class Board
prints the entire board, for subclass ship prints the ship character codes for a guessing board will print EMPTYCHAR, MISSCHAR and HITCHAR ar each coordinate
print(PrintWriter) - Method in class Coordinates
 
print(PrintWriter) - Method in class MessageTemplate
 
print(PrintWriter) - Method in class PerformanceRating
 
print(PrintWriter) - Method in class PlayerSkills
prints out vitalStatistics string variables
print(PrintWriter) - Method in class VitalStatistics
prints out vitalStatistics string variables
print(PrintWriter) - Method in class SeriesRating
 
print(PrintWriter) - Method in class Ships
Prints out current ship statistics index, code, name, placed and sunk and calls @see board#print
print(String) - Method in class PrintSuperClass
 
print(String, PrintWriter) - Method in class PrintSuperClass
 
printDistribution() - Method in class PerformanceRating
 
println() - Method in class PrintSuperClass
 
println(PrintWriter) - Method in class PrintSuperClass
 
println(PrintWriter) - Method in class Board
 
println(PrintWriter) - Method in class Coordinates
 
println(PrintWriter) - Method in class MessageTemplate
 
println(PrintWriter) - Method in class PerformanceRating
 
println(PrintWriter) - Method in class VitalStatistics
 
println(PrintWriter) - Method in class SeriesRating
 
println(PrintWriter) - Method in class Ships
 
println(String) - Method in class PrintSuperClass
 
println(String, PrintWriter) - Method in class PrintSuperClass
 
PrintSuperClass - class PrintSuperClass.
Base abstract class of all most battleship classes
PrintSuperClass() - Constructor for class PrintSuperClass
 
probability(int) - Method in class PerformanceRating
 
probability(int) - Method in class PlayerSkills
 

R

RIGHT - Static variable in class Ships
 
right() - Method in class Coordinates
takes current coordinate object and moves it right one coordinate
row - Variable in class Coordinates
public variables a Coordinates is row, column

S

score - Variable in class PerformanceRating
 
SeriesRating - class SeriesRating.
Link List Keeps Track of HeadToHead Combat Wins, Loss, Players
SeriesRating(double, Player, Player, long, long, long) - Constructor for class SeriesRating
 
seriesVictories - Variable in class PerformanceRating
number of victories in HeadtoHead competition
set(char, Coordinates) - Method in class Board
sets the coordinate p on board to the char c
set(Coordinates) - Method in class Coordinates
sets current Coordinate object to location c
set(int) - Method in class Coordinates
sets current Coordinate object to singleton i where i = row*MAXCOLS + col
set(int) - Method in class Message
Deprecated. replaces with setMessageName
set(int, int) - Method in class Coordinates
sets current Coordinate object to r, c
setAuthenication(Object, Object) - Method in class MessageTemplate
used by battleship simulator to setAuthenicatioon Set authenication between sender BattleShip$PlayerType and recipient player Authenicator called by constructor
setClassPointer(Object) - Method in class MessageTemplate
Deprecated. done by setMessageID
setComments(String) - Method in class VitalStatistics
sets current remarks made by player
setHeadToHead(int, Player) - Method in class Message
 
setHeadToHeadDone() - Method in class Message
at end of a head to head combat, IDHeadToHeadDone is sent to both players data from head to head combat is added to SeriesRating link list
setHit(int) - Method in class Message
 
setLegal(int, int) - Method in class Coordinates
sets Coordinate object's row and col to the closest boards legal values of r, c
setLost(int) - Method in class Message
 
setMiss(int) - Method in class Message
 
setNewGame(int, Player) - Method in class Message
Used by battleship simulator to set the message IDNewGame,
setPerformanceRating() - Method in class Message
Vital Statisitics Skill now has updated performance rating
setPerformanceRating() - Method in class PerformanceRating
 
setPlaceShips(Ships) - Method in class Message
 
setPlaceShipsFailed() - Method in class Message
Player is given five attempts to place ships
setSeriesRating() - Method in class Message
at End of HeadToHead tournament series, IDSeriesRating message is sent to each player
setSingleUser(int) - Method in class Message
 
setSingleUserDone() - Method in class Message
at end of singleUserTestMode, IDSingleUserDone is sent to player
setSkill(Message, PerformanceRating) - Method in class PlayerSkills
sets current skill level can be set more than once but only Battleship$PlayerType may set this Variable also, this method cannot be overridden in a higher level class
setSunk(int) - Method in class Message
 
setSunk(int) - Method in class Ships
called by BattleShip simulator when the ship corresponding to to the specified index is sunk
setTooManyMoves(int, Ships) - Method in class Message
 
setTournament(int) - Method in class Message
Start Tournament mode,
setTournamentDone() - Method in class Message
at End of tournament mode, IDTournamentDone is sent to each player
setUnknown() - Method in class Message
Used by battleship simulator to set an Unknown Message
setVitalStatistics(String, String, String) - Method in class VitalStatistics
 
setWin(int) - Method in class Message
Used by battleship simulator to set the message IDWin,
setYourShipHit(int, Ships) - Method in class Message
 
setYourShipNearHit(int, Ships) - Method in class Message
 
setYourShipSunk(int, Ships) - Method in class Message
 
setYourWorstBoard(int, Ships) - Method in class Message
 
Ships - class Ships.
Used to create and maintain ships at sea.
Ships() - Constructor for class Ships
Ship constructor creates sunk and place array, constructor board is called first
singleton() - Method in class Coordinates
 
singleUserTestMode(Player) - Method in class BattleShip
 
singleUserTestMode(Player, boolean) - Method in class BattleShip
 
singleUserTestMode(Player, int) - Method in class BattleShip
 
singleUserTestMode(Player, int, boolean) - Method in class BattleShip
 
singleUserTestMode(Player, int, boolean, Player) - Method in class BattleShip
 
size - Static variable in class Ships
int array representing the size of each ship
startTimer() - Method in class PerformanceRating
 
stopTimer() - Method in class PerformanceRating
Timer is stopped in checkGuess

T

timeLog - Variable in class PerformanceRating
time to make guesses stored as milliseconds
toString() - Method in class Coordinates
 
toString() - Method in class MessageTemplate
 
toString() - Method in class Message
 
totalMoves - Variable in class PerformanceRating
 
tournamentMode() - Method in class BattleShip
Call tournamentMode with current activePlayer list, fInteractive set to false and number of Games 500
tournamentMode(int) - Method in class BattleShip
Calls tournamentMode current activePlayer list, fInteractive set to false
tournamentMode(Player[]) - Method in class BattleShip
Call tournamentMode with fInteractive set to false and number of Games 500
tournamentMode(Player[], boolean, int) - Method in class BattleShip
Initial Tournament mode consists of Two Rounds: Round 1 SingleUserTestMode: Rankings for best Performance (Weighted x 2), most efficient time, fewest move victory Rount 2 headToHead combat: Rankings for most series victories, and most overall victories Final Tournament mode may consists of 5 rounds, each round can have multiple rankings points are assigned for place in each ranking: 1st place gets 5pts, 2nd 4, 3rd 3.., 5th 1Pth
Round one headToHead, rankings: most victories, most series victories
Round two singleUserTestMode, rankings: lowest moves to solve a board, best performance ranking, most efficient - best time
Round three headToHead, rankings: most victories, winner of most series
Rount four multiUserTestMode, users are rank 1 to 5 on each game series, points for best overall
Rount five headToHead, finals

U

UP - Static variable in class Ships
Four Codes for Ship Direction
up() - Method in class Coordinates
takes current coordinate object and moves it up one row
updateDistribution(int) - Method in class PerformanceRating
 

V

VitalStatistics - class VitalStatistics.
Contains Vital Statistics on Player
VitalStatistics() - Constructor for class VitalStatistics
 
VitalStatistics(String, String, String) - Constructor for class VitalStatistics
 

W

win - Variable in class PerformanceRating
 
worstMoves - Variable in class PerformanceRating
 

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