examples.tictactoe
Class HighScoreEntry
java.lang.Object
examples.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
name_
private String name_
location_
private String location_
won_
private int won_
played_
private int played_
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
-
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.