summaryrefslogtreecommitdiff
path: root/dsa/DSALib/Models/Dsa
diff options
context:
space:
mode:
Diffstat (limited to 'dsa/DSALib/Models/Dsa')
-rw-r--r--dsa/DSALib/Models/Dsa/CritterAttack.cs19
-rw-r--r--dsa/DSALib/Models/Dsa/KampfTalent.cs16
-rw-r--r--dsa/DSALib/Models/Dsa/Talent.cs43
-rw-r--r--dsa/DSALib/Models/Dsa/Vorteil.cs16
-rw-r--r--dsa/DSALib/Models/Dsa/Zauber.cs16
5 files changed, 110 insertions, 0 deletions
diff --git a/dsa/DSALib/Models/Dsa/CritterAttack.cs b/dsa/DSALib/Models/Dsa/CritterAttack.cs
new file mode 100644
index 0000000..8cd8b09
--- /dev/null
+++ b/dsa/DSALib/Models/Dsa/CritterAttack.cs
@@ -0,0 +1,19 @@
+namespace DSALib.Models.Dsa
+{
+ public class CritterAttack : Database.DataObject
+ {
+ public CritterAttack(string name, int at, string tp, string comment = "")
+ {
+ Name = name;
+ At = at;
+ Tp = tp;
+ Comment = comment;
+ }
+
+ public int At { get; set; }
+
+ public string Tp { get; set; }
+
+ public string Comment { get; set; }
+ }
+} \ No newline at end of file
diff --git a/dsa/DSALib/Models/Dsa/KampfTalent.cs b/dsa/DSALib/Models/Dsa/KampfTalent.cs
new file mode 100644
index 0000000..51ad255
--- /dev/null
+++ b/dsa/DSALib/Models/Dsa/KampfTalent.cs
@@ -0,0 +1,16 @@
+namespace DSALib.Models.Dsa
+{
+ public class KampfTalent : Database.DataObject
+ {
+ public KampfTalent(string name, int at, int pa)
+ {
+ Name = name;
+ At = at;
+ Pa = pa;
+ }
+
+ public int At { get; set; }
+
+ public int Pa { get; set; }
+ }
+} \ No newline at end of file
diff --git a/dsa/DSALib/Models/Dsa/Talent.cs b/dsa/DSALib/Models/Dsa/Talent.cs
new file mode 100644
index 0000000..5771a74
--- /dev/null
+++ b/dsa/DSALib/Models/Dsa/Talent.cs
@@ -0,0 +1,43 @@
+namespace DSALib.Models.Dsa
+{
+ public class Talent : Database.DataObject // talent objekt
+ {
+ public Talent(string name, string probe, int value)
+ {
+ Name = name;
+ Probe = probe;
+ Value = value;
+ }
+
+ public string Probe { get; set; }
+
+ public int Value { get; set; }
+
+ public string[] GetEigenschaften() // turn XX/XX/XX into string[]{XX,XX,XX}
+ {
+ var temp = 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;
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/dsa/DSALib/Models/Dsa/Vorteil.cs b/dsa/DSALib/Models/Dsa/Vorteil.cs
new file mode 100644
index 0000000..e37af20
--- /dev/null
+++ b/dsa/DSALib/Models/Dsa/Vorteil.cs
@@ -0,0 +1,16 @@
+namespace DSALib.Models.Dsa
+{
+ public class Vorteil : Database.DataObject // talent objekt
+ {
+ public Vorteil(string name, string value = "")
+ {
+ Name = name;
+ Value = value;
+ // this.Choice = choice;
+ }
+
+ public string Value { get; set; }
+
+ //public string Choice { get; set; }
+ }
+} \ No newline at end of file
diff --git a/dsa/DSALib/Models/Dsa/Zauber.cs b/dsa/DSALib/Models/Dsa/Zauber.cs
new file mode 100644
index 0000000..e4387bf
--- /dev/null
+++ b/dsa/DSALib/Models/Dsa/Zauber.cs
@@ -0,0 +1,16 @@
+namespace DSALib.Models.Dsa
+{
+ public class Zauber : Talent
+ {
+ public Zauber(string name, string probe, int value, char complexity = 'A', string representation = "Magier")
+ : base(name, probe, value)
+ {
+ Complexity = complexity;
+ Representation = Representation;
+ }
+
+ public char Complexity { get; }
+
+ public string Representation { get; }
+ }
+} \ No newline at end of file