examples.tictactoe
Class HighScoreEntry

java.lang.Object
  extended byexamples.tictactoe.HighScoreEntry
All Implemented Interfaces:
Comparable, Serializable

class HighScoreEntry
extends Object
implements Serializable, Comparable

Version:
"$Id: HighScoreEntry.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Daniel Bachmann

Field Summary
private  String location_
           
private  String name_
           
private  int played_
           
private  int won_
           
 
Constructor Summary
HighScoreEntry(String name, String location)
           
HighScoreEntry(String name, String location, int won, int played)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 String getLocation()
           
 String getName()
           
 int getPlayed()
           
 double getRank()
           
 int getWon()
           
 void loose()
           
 void update(Object o)
           
 void won()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name_

private String name_

location_

private String location_

won_

private int won_

played_

private int played_
Constructor Detail

HighScoreEntry

public HighScoreEntry(String name,
                      String location)
Parameters:
name -
location -

HighScoreEntry

public HighScoreEntry(String name,
                      String location,
                      int won,
                      int played)
Parameters:
name -
location -
won -
played -
Method Detail

getPlayed

public int getPlayed()
Returns:

getWon

public int getWon()
Returns:

won

public void won()

loose

public void loose()

getName

public String getName()
Returns:

getLocation

public String getLocation()
Returns:

equals

public boolean equals(Object o)

update

public void update(Object o)
Parameters:
o -

getRank

public double getRank()
Returns:

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable
Parameters:
o -
Returns:


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.