edu.ou.pacman
Class PacmanRecord

java.lang.Object
  extended by edu.ou.mlfw.Record
      extended by edu.ou.pacman.PacmanRecord
All Implemented Interfaces:
java.lang.Comparable<Record>

public class PacmanRecord
extends Record

Author:
zack

Field Summary
static int GHOST_WORTH
           
static int PELLET_WORTH
           
 int totalBonusItem
           
 long totalCPUTime
           
 int totalDeaths
           
 int totalKills
           
 int totalPellets
           
 int totalScore
           
 float totalTurns
           
 
Constructor Summary
PacmanRecord(PacmanRecord r)
           
PacmanRecord(java.lang.String displayName)
           
 
Method Summary
 void addRecord(Record rhs)
           
 int compareTo(Record o)
           
 java.lang.String getCSVHeader()
           
 java.lang.String getHTMLFooter()
           
static java.lang.String getHTMLHeader_s()
           
 java.lang.String getHTMLHeader()
           
 void reset()
           
 java.lang.String toCSV()
           
 java.lang.String toHTML()
           
 java.lang.String toString()
           
 
Methods inherited from class edu.ou.mlfw.Record
equals, getDisplayName, getRank, getTotalGames, getWins, setDisplayName, setRank, setSortMethod, setWinner
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

totalKills

public int totalKills

totalDeaths

public int totalDeaths

totalPellets

public int totalPellets

totalBonusItem

public int totalBonusItem

totalCPUTime

public long totalCPUTime

totalScore

public int totalScore

totalTurns

public float totalTurns

GHOST_WORTH

public static final int GHOST_WORTH
See Also:
Constant Field Values

PELLET_WORTH

public static final int PELLET_WORTH
See Also:
Constant Field Values
Constructor Detail

PacmanRecord

public PacmanRecord(java.lang.String displayName)

PacmanRecord

public PacmanRecord(PacmanRecord r)
Method Detail

toString

public java.lang.String toString()
Specified by:
toString in class Record

toCSV

public java.lang.String toCSV()
Specified by:
toCSV in class Record

getCSVHeader

public java.lang.String getCSVHeader()
Specified by:
getCSVHeader in class Record

getHTMLHeader_s

public static java.lang.String getHTMLHeader_s()

toHTML

public java.lang.String toHTML()
Specified by:
toHTML in class Record

getHTMLHeader

public java.lang.String getHTMLHeader()
Specified by:
getHTMLHeader in class Record

getHTMLFooter

public java.lang.String getHTMLFooter()
Specified by:
getHTMLFooter in class Record

addRecord

public void addRecord(Record rhs)
Specified by:
addRecord in class Record

reset

public void reset()
Specified by:
reset in class Record

compareTo

public int compareTo(Record o)