Removed commented interface code, as that will be in re-write.

This commit is contained in:
2025-08-29 10:55:53 -05:00
parent f294bc8f7c
commit abacb51a85
6 changed files with 3 additions and 41 deletions

View File

@@ -1,15 +1,4 @@
/*
public interface IAction
{
void GetAction(Character character);
void DoNothing(Character character);
void Attack();
void HealthPotion();
Item Items();
}
*/
public sealed class Actions //: IAction
public sealed class Actions
{
private static readonly Lazy<Actions> _instance = new Lazy<Actions>(() => new Actions());
private Actions() { }
@@ -20,14 +9,6 @@ public sealed class Actions //: IAction
public void GetAction(Character character)
{
/*
switch (MenuItem.Description)
{
default:
}
*/
while (true)
{
var type = character.GetType().ToString();

View File

@@ -6,5 +6,4 @@ 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>();
}

View File

@@ -17,21 +17,6 @@ public sealed class GameState
public bool monstersAIControl = true;
public bool lastRound = false;
/*
public record MenuItem
{
string? Description;
bool IsEnabled;
IAction? ActionToPerform;
}
public void BuildMenu()
{
foreach (action in Character.EnabledActions)
int number = 1;
}
*/
public void Run()
{
Rounds(currentRound);

View File

@@ -5,9 +5,6 @@ public class Player : Character
maxHP = 10;
currentHP = maxHP;
name = GetName();
//List<IherosAction>CharacterEnabledActions = new List<IAction>();
//CharacterEnabledActions.Add(Actions.Instance.DoNothing()
}
public string GetName()

View File

@@ -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+f294bc8f7ce5a7072e2a6108aa95ee1297a03713")]
[assembly: System.Reflection.AssemblyProductAttribute("FinalBattle")]
[assembly: System.Reflection.AssemblyTitleAttribute("FinalBattle")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@@ -1 +1 @@
f6b7a7ab732f52a370cbe5a75d1b3ae8b480c6570a0a83bd9d346d48237b0234
4d30831f652eb3e97a094dcf73b4593eaa947859dffb351a659bb0f8eea58b70