Compare commits
2 Commits
e4b230a0ad
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| abacb51a85 | |||
| f294bc8f7c |
21
Actions.cs
21
Actions.cs
@@ -1,15 +1,4 @@
|
|||||||
/*
|
public sealed class Actions
|
||||||
public interface IAction
|
|
||||||
{
|
|
||||||
void GetAction(Character character);
|
|
||||||
void DoNothing(Character character);
|
|
||||||
void Attack();
|
|
||||||
void HealthPotion();
|
|
||||||
Item Items();
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
public sealed class Actions //: IAction
|
|
||||||
{
|
{
|
||||||
private static readonly Lazy<Actions> _instance = new Lazy<Actions>(() => new Actions());
|
private static readonly Lazy<Actions> _instance = new Lazy<Actions>(() => new Actions());
|
||||||
private Actions() { }
|
private Actions() { }
|
||||||
@@ -20,14 +9,6 @@ public sealed class Actions //: IAction
|
|||||||
|
|
||||||
public void GetAction(Character character)
|
public void GetAction(Character character)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
switch (MenuItem.Description)
|
|
||||||
{
|
|
||||||
|
|
||||||
default:
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
var type = character.GetType().ToString();
|
var type = character.GetType().ToString();
|
||||||
|
|||||||
@@ -6,5 +6,4 @@ public abstract class Character
|
|||||||
public bool dead {get; set;} = false;
|
public bool dead {get; set;} = false;
|
||||||
public string turnMarker = "*";
|
public string turnMarker = "*";
|
||||||
public bool isTurn {get; set;} = false;
|
public bool isTurn {get; set;} = false;
|
||||||
//public List<Actions>CharacterEnabledActions = new List<Actions>();
|
|
||||||
}
|
}
|
||||||
|
|||||||
17
GameState.cs
17
GameState.cs
@@ -17,21 +17,6 @@ public sealed class GameState
|
|||||||
public bool monstersAIControl = true;
|
public bool monstersAIControl = true;
|
||||||
public bool lastRound = false;
|
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()
|
public void Run()
|
||||||
{
|
{
|
||||||
Rounds(currentRound);
|
Rounds(currentRound);
|
||||||
@@ -170,7 +155,7 @@ public sealed class GameState
|
|||||||
Console.WriteLine("You are victorious in your first battle!");
|
Console.WriteLine("You are victorious in your first battle!");
|
||||||
Thread.Sleep(2000);
|
Thread.Sleep(2000);
|
||||||
Console.WriteLine("\nAs you make your way deeper into the Uncoded One's fortress"
|
Console.WriteLine("\nAs you make your way deeper into the Uncoded One's fortress"
|
||||||
+ "\nmore enemies appear to block your way to defeat their master...");
|
+ "\nmore enemies appear, blocking your way forward to defeat their master...");
|
||||||
Console.WriteLine("\n\nPress Enter to continue...");
|
Console.WriteLine("\n\nPress Enter to continue...");
|
||||||
Console.ReadLine();
|
Console.ReadLine();
|
||||||
Skeleton skeleton1 = new Skeleton();
|
Skeleton skeleton1 = new Skeleton();
|
||||||
|
|||||||
@@ -5,9 +5,6 @@ public class Player : Character
|
|||||||
maxHP = 10;
|
maxHP = 10;
|
||||||
currentHP = maxHP;
|
currentHP = maxHP;
|
||||||
name = GetName();
|
name = GetName();
|
||||||
//List<IherosAction>CharacterEnabledActions = new List<IAction>();
|
|
||||||
//CharacterEnabledActions.Add(Actions.Instance.DoNothing()
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public string GetName()
|
public string GetName()
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ using System.Reflection;
|
|||||||
[assembly: System.Reflection.AssemblyCompanyAttribute("FinalBattle")]
|
[assembly: System.Reflection.AssemblyCompanyAttribute("FinalBattle")]
|
||||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+f294bc8f7ce5a7072e2a6108aa95ee1297a03713")]
|
||||||
[assembly: System.Reflection.AssemblyProductAttribute("FinalBattle")]
|
[assembly: System.Reflection.AssemblyProductAttribute("FinalBattle")]
|
||||||
[assembly: System.Reflection.AssemblyTitleAttribute("FinalBattle")]
|
[assembly: System.Reflection.AssemblyTitleAttribute("FinalBattle")]
|
||||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
15175f65f6f63f0c4c3ae8d13187889e73fe451b685fbc2643b44dd8e1084a87
|
4d30831f652eb3e97a094dcf73b4593eaa947859dffb351a659bb0f8eea58b70
|
||||||
|
|||||||
Reference in New Issue
Block a user