diff options
author | TrueDoctor <d-kobert@web.de> | 2018-07-09 15:15:35 +0200 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-07-09 15:15:35 +0200 |
commit | 2503ca78d3e583cb1291cb9a99a6e79526a348ee (patch) | |
tree | 5be61d23d80c23422f68831b0862918dd4f5616c /DSALib/Talent.cs | |
parent | 4671e76af27446a74c1015bd76b52e48ea241e74 (diff) |
Created DSALib Created ZooBOTanica
Diffstat (limited to 'DSALib/Talent.cs')
-rw-r--r-- | DSALib/Talent.cs | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/DSALib/Talent.cs b/DSALib/Talent.cs new file mode 100644 index 0000000..7176194 --- /dev/null +++ b/DSALib/Talent.cs @@ -0,0 +1,51 @@ +namespace DiscoBot.DSA_Game +{ + using System; + + + 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; + } + } + } +} |