Intial commit with working base game and game status.
This commit is contained in:
21
Player.cs
Normal file
21
Player.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
public class Player : Character
|
||||
{
|
||||
public Player()
|
||||
{
|
||||
maxHP = 10;
|
||||
currentHP = maxHP;
|
||||
name = GetName();
|
||||
//List<IherosAction>CharacterEnabledActions = new List<IAction>();
|
||||
//CharacterEnabledActions.Add(Actions.Instance.DoNothing()
|
||||
|
||||
}
|
||||
|
||||
public string GetName()
|
||||
{
|
||||
string? input;
|
||||
Console.Write("Enter your player's name: ");
|
||||
input = Console.ReadLine();
|
||||
return input;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user