From 2503ca78d3e583cb1291cb9a99a6e79526a348ee Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Mon, 9 Jul 2018 15:15:35 +0200 Subject: Created DSALib Created ZooBOTanica --- DSALib/Characters/Being.cs | 23 +++++++++++++++++++++++ DSALib/Characters/Critter.cs | 36 ++++++++++++++++++++++++++++++++++++ DSALib/Characters/Entity.cs | 18 ++++++++++++++++++ DSALib/Characters/ICharacter.cs | 13 +++++++++++++ DSALib/Characters/ICombatant.cs | 26 ++++++++++++++++++++++++++ 5 files changed, 116 insertions(+) create mode 100644 DSALib/Characters/Being.cs create mode 100644 DSALib/Characters/Critter.cs create mode 100644 DSALib/Characters/Entity.cs create mode 100644 DSALib/Characters/ICharacter.cs create mode 100644 DSALib/Characters/ICombatant.cs (limited to 'DSALib/Characters') diff --git a/DSALib/Characters/Being.cs b/DSALib/Characters/Being.cs new file mode 100644 index 0000000..154e69e --- /dev/null +++ b/DSALib/Characters/Being.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DiscoBot.DSA_Game.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 new file mode 100644 index 0000000..5090b6b --- /dev/null +++ b/DSALib/Characters/Critter.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DSALib.Characters +{ + using DiscoBot.DSA_Game.Characters; + + public class Critter : Being, ICombatant + { + private int rs, mr, ko, pa, gs, gw; + + + public Critter(int gw, int gs, int rs, int mr, int ko, int pa) + { + this.gw = gw; + this.gs = gs; + this.rs = rs; + this.mr = mr; + this.ko = ko; + this.pa = pa; + } + + public string Angriff(string talent, int erschwernis = 0) + { + throw new NotImplementedException(); + } + + public string Parade(string talent, int erschwernis = 0) + { + throw new NotImplementedException(); + } + } +} diff --git a/DSALib/Characters/Entity.cs b/DSALib/Characters/Entity.cs new file mode 100644 index 0000000..f8e7a12 --- /dev/null +++ b/DSALib/Characters/Entity.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DiscoBot.DSA_Game.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 new file mode 100644 index 0000000..aabebe6 --- /dev/null +++ b/DSALib/Characters/ICharacter.cs @@ -0,0 +1,13 @@ +namespace DiscoBot.DSA_Game.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 new file mode 100644 index 0000000..a99bff9 --- /dev/null +++ b/DSALib/Characters/ICombatant.cs @@ -0,0 +1,26 @@ +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); + } +} -- cgit v1.3.1