Graphics Reference
In-Depth Information
private int score;
private int highScore;
private int level;
private int health;
private bool isFinished;
// this is the display name of the player
public string playerName ="Anon";
public virtual void GetDefaultData()
{
playerName="Anon";
score=0;
level=1;
health=3;
highScore=0;
isFinished=false;
}
public string GetName()
{
return playerName;
}
public void SetName(string aName)
{
playerName=aName;
}
public int GetLevel()
{
return level;
}
public void SetLevel(int num)
{
level=num;
}
public int GetHighScore()
{
return highScore;
}
public int GetScore()
{
return score;
}
public virtual void AddScore(int anAmount)
{
score+=anAmount;
}
public void LostScore(int num)
{
score-=num;
}
Search WWH ::




Custom Search