summaryrefslogtreecommitdiff
path: root/DSALib/Models/Dsa/Talent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'DSALib/Models/Dsa/Talent.cs')
-rw-r--r--DSALib/Models/Dsa/Talent.cs43
1 files changed, 43 insertions, 0 deletions
diff --git a/DSALib/Models/Dsa/Talent.cs b/DSALib/Models/Dsa/Talent.cs
new file mode 100644
index 0000000..5771a74
--- /dev/null
+++ b/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