summaryrefslogtreecommitdiff
path: root/DSALib
diff options
context:
space:
mode:
Diffstat (limited to 'DSALib')
-rw-r--r--DSALib/Characters/Being.cs19
-rw-r--r--DSALib/Characters/Critter.cs86
-rw-r--r--DSALib/Characters/Entity.cs12
-rw-r--r--DSALib/Characters/ICharacter.cs15
-rw-r--r--DSALib/Characters/ICombatant.cs26
-rw-r--r--DSALib/CritterAttack.cs27
-rw-r--r--DSALib/DSALib.csproj11
-rw-r--r--DSALib/KampfTalent.cs18
-rw-r--r--DSALib/Talent.cs48
-rw-r--r--DSALib/Vorteil.cs18
-rw-r--r--DSALib/Zauber.cs16
11 files changed, 0 insertions, 296 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);
- }
-}
diff --git a/DSALib/CritterAttack.cs b/DSALib/CritterAttack.cs
deleted file mode 100644
index 0ad4a66..0000000
--- a/DSALib/CritterAttack.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace DSALib
-{
- public class CritterAttack
- {
- public CritterAttack(string name, int at, string tp, string comment = "")
- {
- this.Name = name;
- this.At = at;
- this.Tp = tp;
- this.Comment = comment;
- }
-
- public string Name { get; set; }
-
- public int At { get; set; }
-
- public string Tp { get; set; }
-
- public string Comment { get; set; }
- }
-}
diff --git a/DSALib/DSALib.csproj b/DSALib/DSALib.csproj
deleted file mode 100644
index afada82..0000000
--- a/DSALib/DSALib.csproj
+++ /dev/null
@@ -1,11 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- <TargetFramework>netstandard2.0</TargetFramework>
- </PropertyGroup>
-
- <ItemGroup>
- <PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
- </ItemGroup>
-
-</Project>
diff --git a/DSALib/KampfTalent.cs b/DSALib/KampfTalent.cs
deleted file mode 100644
index 7e4e9be..0000000
--- a/DSALib/KampfTalent.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-namespace DSALib
-{
- public class KampfTalent
- {
- public KampfTalent(string name, int at, int pa)
- {
- this.Name = name;
- this.At = at;
- this.Pa = pa;
- }
-
- public string Name { get; set; }
-
- public int At { get; set; }
-
- public int Pa { get; set; }
- }
-}
diff --git a/DSALib/Talent.cs b/DSALib/Talent.cs
deleted file mode 100644
index bf1e52d..0000000
--- a/DSALib/Talent.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-namespace DSALib
-{
- public class Talent // talent objekt
- {
- public Talent(string name, string probe, int value)
- {
- this.Name = name;
- this.Probe = probe;
- this.Value = value;
- }
-
- public string Name { get; set; }
-
- public string Probe { get; set; }
-
- public int Value { get; set; }
-
- public string[] GetEigenschaften() // turn XX/XX/XX into string[]{XX,XX,XX}
- {
- var temp = this.Probe.Split('/');
- for (var index = 0; index < temp.Length; index++)
- {
- temp[index] = temp[index].Replace("/", string.Empty);
- }
-
- return temp;
- }
-
- public bool IstFernkampftalent()
- {
- switch (Name)
- {
- case "Armbrust":
- case "Belagerungswaffen":
- case "Blasrohr":
- case "Bogen":
- case "Diskus":
- case "Schleuder":
- case "Wurfbeile":
- case "Wurfmesser":
- case "Wurfspeere":
- return true;
- default:
- return false;
- }
- }
- }
-}
diff --git a/DSALib/Vorteil.cs b/DSALib/Vorteil.cs
deleted file mode 100644
index bf698d8..0000000
--- a/DSALib/Vorteil.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-namespace DSALib
-{
- public class Vorteil // talent objekt
- {
- public Vorteil(string name, string value = "")
- {
- this.Name = name;
- this.Value = value;
- // this.Choice = choice;
- }
-
- public string Name { get; set; }
-
- public string Value { get; set; }
-
- //public string Choice { get; set; }
- }
-}
diff --git a/DSALib/Zauber.cs b/DSALib/Zauber.cs
deleted file mode 100644
index 3c7533f..0000000
--- a/DSALib/Zauber.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-namespace DSALib
-{
- public class Zauber : Talent
- {
- public Zauber(string name, string probe, int value, char complexity = 'A', string representation = "Magier")
- : base(name, probe, value)
- {
- this.Complexity = complexity;
- this.Representation = this.Representation;
- }
-
- public char Complexity { get; }
-
- public string Representation { get; }
- }
-}