diff options
Diffstat (limited to 'DSALib/Characters')
-rw-r--r-- | DSALib/Characters/Being.cs | 23 | ||||
-rw-r--r-- | DSALib/Characters/Critter.cs | 36 | ||||
-rw-r--r-- | DSALib/Characters/Entity.cs | 18 | ||||
-rw-r--r-- | DSALib/Characters/ICharacter.cs | 13 | ||||
-rw-r--r-- | DSALib/Characters/ICombatant.cs | 26 |
5 files changed, 116 insertions, 0 deletions
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); + } +} |