diff options
Diffstat (limited to 'DSALib/Characters')
-rw-r--r-- | DSALib/Characters/Being.cs | 19 | ||||
-rw-r--r-- | DSALib/Characters/Critter.cs | 86 | ||||
-rw-r--r-- | DSALib/Characters/Entity.cs | 12 | ||||
-rw-r--r-- | DSALib/Characters/ICharacter.cs | 15 | ||||
-rw-r--r-- | DSALib/Characters/ICombatant.cs | 26 |
5 files changed, 0 insertions, 158 deletions
diff --git a/DSALib/Characters/Being.cs b/DSALib/Characters/Being.cs deleted file mode 100644 index 7ac7341..0000000 --- a/DSALib/Characters/Being.cs +++ /dev/null @@ -1,19 +0,0 @@ -using DiscoBot.DSA_Game.Characters; - -namespace DSALib.Characters -{ - public class Being : Entity - { - public int Lebenspunkte_Basis { get; set; } = 30; - - public int Lebenspunkte_Aktuell { get; set; } = 30; - - public int Ausdauer_Basis { get; set; } = 30; - - public int Ausdauer_Aktuell { get; set; } = 30; - - public int Astralpunkte_Basis { get; set; } = 0; - - public int Astralpunkte_Aktuell { get; set; } = 0; - } -} diff --git a/DSALib/Characters/Critter.cs b/DSALib/Characters/Critter.cs deleted file mode 100644 index 8092101..0000000 --- a/DSALib/Characters/Critter.cs +++ /dev/null @@ -1,86 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace DSALib.Characters -{ - using System.IO; - - using DiscoBot.DSA_Game.Characters; - - using Newtonsoft.Json; - - public class Critter : Being, ICombatant - { - public int Rs { get; set; } - - public int Mr { get; set; } - - public int Ko { get; set; } - - public int Pa { get; set; } - - public int Gs { get; set; } - - public int Gw { get; set; } - - public string Ini { get; set; } - - public string Comment { get; set; } - - public List<CritterAttack> CritterAttacks { get; set; } - - public CritterAttack lastAttack; - - public Critter(int gw, int gs, int rs, int mr, int ko, int pa, string ini, List<CritterAttack> critterAttacks) - { - this.Gw = gw; - this.Gs = gs; - this.Rs = rs; - this.Mr = mr; - this.Ko = ko; - this.Pa = pa; - this.Ini = ini; - this.CritterAttacks = critterAttacks; - this.lastAttack = this.CritterAttacks[new Random().Next(critterAttacks.Count)]; - } - - public Critter() - { - } - - public static Critter Load(string path) - { - try - { - return JsonConvert.DeserializeObject<Critter>(File.ReadAllText(path)); // Deserialize Data and create Session Object - } - catch (Exception e) - { - Console.WriteLine($"Laden von Save-File {path} fehlgeschlagen." + e); - return null; - } - } - - public string Angriff(string talent, int erschwernis = 0) - { - throw new NotImplementedException(); - } - - public string Parade(string talent, int erschwernis = 0) - { - throw new NotImplementedException(); - } - - public void Save(string path = @"..\..\Critters\") - { - try - { - File.WriteAllText(path + this.Name + ".json", JsonConvert.SerializeObject(this, Formatting.Indented)); // Deserialize Data and create CommandInfo Struct - } - catch (Exception e) - { - Console.WriteLine($"Speichern von Save-File {path} fehlgeschlagen." + e); - } - } - } -} diff --git a/DSALib/Characters/Entity.cs b/DSALib/Characters/Entity.cs deleted file mode 100644 index 6b03e50..0000000 --- a/DSALib/Characters/Entity.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace DSALib.Characters -{ - public class Entity - { - public string Name { get; set; } - - public override string ToString() - { - return this.Name; - } - } -} diff --git a/DSALib/Characters/ICharacter.cs b/DSALib/Characters/ICharacter.cs deleted file mode 100644 index 83b53bf..0000000 --- a/DSALib/Characters/ICharacter.cs +++ /dev/null @@ -1,15 +0,0 @@ -using DiscoBot.DSA_Game.Characters; - -namespace DSALib.Characters -{ - public interface ICharacter : ICombatant - { - string TestTalent(string talent, int erschwernis = 0); - - string TestEigenschaft(string eigenschaft, int erschwernis = 0); - - string Fernkampf(string talent, int erschwernis = 0); - - string TestZauber(string waffe, int erschwernis); - } -} diff --git a/DSALib/Characters/ICombatant.cs b/DSALib/Characters/ICombatant.cs deleted file mode 100644 index a99bff9..0000000 --- a/DSALib/Characters/ICombatant.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace DiscoBot.DSA_Game.Characters -{ - public interface ICombatant - { - string Name { get; set; } - - int Lebenspunkte_Basis { get; set; } - int Lebenspunkte_Aktuell { get; set; } - - int Ausdauer_Basis { get; set; } - int Ausdauer_Aktuell { get; set; } - - int Astralpunkte_Basis { get; set; } - int Astralpunkte_Aktuell { get; set; } - - string Angriff(string talent, int erschwernis = 0); - - string Parade(string talent, int erschwernis = 0); - } -} |