/*
* Created by SharpDevelop.
* User: allann
* Date: 31-10-2004
* Time: 17:40
*
*/
using System;
namespace DiceGame01
{
///
/// TODO - Add class summary
///
///
/// created by - allann
/// created on - 28-10-2004 09:40:26
///
public class Player : object {
///
/// Default constructor - initializes all fields to default values
///
public Player() : this("No name...") {
}
public Player(String name) {
this.name = name;
}
public override String ToString() {
return name + "\t" + highScore;
}
public String GetName() {
return name;
}
public int GetHighSore() {
return highScore;
}
public void SetHighScore(int newValue) {
this.highScore = newValue;
}
int highScore;
String name;
}
}