added some stuff
This commit is contained in:
@@ -6,5 +6,5 @@ public abstract class Character
|
||||
public bool dead {get; set;} = false;
|
||||
public string turnMarker = "*";
|
||||
public bool isTurn {get; set;} = false;
|
||||
public List<Actions>CharacterEnabledActions = new List<Actions>();
|
||||
public List<string>CharacterEnabledActions = new List<string>();
|
||||
}
|
||||
|
||||
@@ -24,10 +24,14 @@ public sealed class GameState
|
||||
IAction? ActionToPerform;
|
||||
}
|
||||
|
||||
public void BuildMenu()
|
||||
public void BuildMenu(Character character)
|
||||
{
|
||||
foreach (action in Character.EnabledActions)
|
||||
int number = 1;
|
||||
foreach (string action in character.CharacterEnabledActions)
|
||||
{
|
||||
Console.WriteLine($"{number}. {action}");
|
||||
number++;
|
||||
}
|
||||
}
|
||||
|
||||
public void Run()
|
||||
|
||||
@@ -5,8 +5,7 @@ public class Player : Character
|
||||
maxHP = 10;
|
||||
currentHP = maxHP;
|
||||
name = GetName();
|
||||
List<IherosAction>CharacterEnabledActions = new List<IAction>();
|
||||
CharacterEnabledActions.Add(Actions.Instance.DoNothing();
|
||||
CharacterEnabledActions.AddRange("Do Nothing", "Attack", "Items");
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("FinalBattle")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+8e458da61eba16c6d39aae3dd5cd598c2c6dd672")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+a1877e7ddb649a0bfdd178b7542ad52b6dca820e")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("FinalBattle")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("FinalBattle")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
f6b7a7ab732f52a370cbe5a75d1b3ae8b480c6570a0a83bd9d346d48237b0234
|
||||
c09c7b260214ced4ad1f8ef7f9de63fcbf763c569ec3ad6b676dfa19cb5cf7fc
|
||||
|
||||
Reference in New Issue
Block a user