19 lines
317 B
C#
19 lines
317 B
C#
public class Player : Character
|
|
{
|
|
public Player()
|
|
{
|
|
maxHP = 10;
|
|
currentHP = maxHP;
|
|
name = GetName();
|
|
}
|
|
|
|
public string GetName()
|
|
{
|
|
string? input;
|
|
Console.Write("Enter your player's name: ");
|
|
input = Console.ReadLine();
|
|
return input;
|
|
}
|
|
}
|
|
|