From 2503ca78d3e583cb1291cb9a99a6e79526a348ee Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Mon, 9 Jul 2018 15:15:35 +0200 Subject: Created DSALib Created ZooBOTanica --- DSALib/Characters/Being.cs | 23 + DSALib/Characters/Critter.cs | 36 ++ DSALib/Characters/Entity.cs | 18 + DSALib/Characters/ICharacter.cs | 13 + DSALib/Characters/ICombatant.cs | 26 + DSALib/DSALib.csproj | 55 ++ DSALib/KampfTalent.cs | 18 + DSALib/Properties/AssemblyInfo.cs | 36 ++ DSALib/Talent.cs | 51 ++ DSALib/Vorteil.cs | 18 + DSALib/Zauber.cs | 22 + DiscoBot.sln | 12 + DiscoBot/Commands/FileHandler.cs | 4 +- DiscoBot/DSA_Game/Characters/Being.cs | 23 - DiscoBot/DSA_Game/Characters/Character.cs | 28 +- DiscoBot/DSA_Game/Characters/Combatant.cs | 26 - DiscoBot/DSA_Game/Characters/Entity.cs | 18 - DiscoBot/DSA_Game/Characters/ICharacter.cs | 13 - DiscoBot/DSA_Game/KampfTalent.cs | 18 - DiscoBot/DSA_Game/Talent.cs | 58 -- DiscoBot/DSA_Game/Vorteil.cs | 18 - DiscoBot/DSA_Game/Zauber.cs | 22 - DiscoBot/DiscoBot.csproj | 20 +- ZooBOTanica/App.config | 6 + ZooBOTanica/CritCreate.Designer.cs | 380 +++++++++++ ZooBOTanica/CritCreate.cs | 22 + ZooBOTanica/CritCreate.de-DE.resx | 139 ++++ ZooBOTanica/CritCreate.resx | 905 +++++++++++++++++++++++++++ ZooBOTanica/Program.cs | 22 + ZooBOTanica/Properties/AssemblyInfo.cs | 36 ++ ZooBOTanica/Properties/Resources.Designer.cs | 71 +++ ZooBOTanica/Properties/Resources.resx | 117 ++++ ZooBOTanica/Properties/Settings.Designer.cs | 30 + ZooBOTanica/Properties/Settings.settings | 7 + ZooBOTanica/TextBoxExtension.cs | 12 + ZooBOTanica/ZooBOTanica.csproj | 86 +++ 36 files changed, 2185 insertions(+), 224 deletions(-) create mode 100644 DSALib/Characters/Being.cs create mode 100644 DSALib/Characters/Critter.cs create mode 100644 DSALib/Characters/Entity.cs create mode 100644 DSALib/Characters/ICharacter.cs create mode 100644 DSALib/Characters/ICombatant.cs create mode 100644 DSALib/DSALib.csproj create mode 100644 DSALib/KampfTalent.cs create mode 100644 DSALib/Properties/AssemblyInfo.cs create mode 100644 DSALib/Talent.cs create mode 100644 DSALib/Vorteil.cs create mode 100644 DSALib/Zauber.cs delete mode 100644 DiscoBot/DSA_Game/Characters/Being.cs delete mode 100644 DiscoBot/DSA_Game/Characters/Combatant.cs delete mode 100644 DiscoBot/DSA_Game/Characters/Entity.cs delete mode 100644 DiscoBot/DSA_Game/Characters/ICharacter.cs delete mode 100644 DiscoBot/DSA_Game/KampfTalent.cs delete mode 100644 DiscoBot/DSA_Game/Talent.cs delete mode 100644 DiscoBot/DSA_Game/Vorteil.cs delete mode 100644 DiscoBot/DSA_Game/Zauber.cs create mode 100644 ZooBOTanica/App.config create mode 100644 ZooBOTanica/CritCreate.Designer.cs create mode 100644 ZooBOTanica/CritCreate.cs create mode 100644 ZooBOTanica/CritCreate.de-DE.resx create mode 100644 ZooBOTanica/CritCreate.resx create mode 100644 ZooBOTanica/Program.cs create mode 100644 ZooBOTanica/Properties/AssemblyInfo.cs create mode 100644 ZooBOTanica/Properties/Resources.Designer.cs create mode 100644 ZooBOTanica/Properties/Resources.resx create mode 100644 ZooBOTanica/Properties/Settings.Designer.cs create mode 100644 ZooBOTanica/Properties/Settings.settings create mode 100644 ZooBOTanica/TextBoxExtension.cs create mode 100644 ZooBOTanica/ZooBOTanica.csproj 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); + } +} diff --git a/DSALib/DSALib.csproj b/DSALib/DSALib.csproj new file mode 100644 index 0000000..db17bf7 --- /dev/null +++ b/DSALib/DSALib.csproj @@ -0,0 +1,55 @@ + + + + + Debug + AnyCPU + {33281E45-1D5C-4645-8D2B-DD05B40FDFD5} + Library + Properties + DSALib + DSALib + v4.6.1 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/DSALib/KampfTalent.cs b/DSALib/KampfTalent.cs new file mode 100644 index 0000000..79703d5 --- /dev/null +++ b/DSALib/KampfTalent.cs @@ -0,0 +1,18 @@ +namespace DiscoBot.DSA_Game +{ + 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/Properties/AssemblyInfo.cs b/DSALib/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..e4e18bb --- /dev/null +++ b/DSALib/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("DSALib")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("DSALib")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly +// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("33281e45-1d5c-4645-8d2b-dd05b40fdfd5")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, +// indem Sie "*" wie unten gezeigt eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] 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; + } + } + } +} diff --git a/DSALib/Vorteil.cs b/DSALib/Vorteil.cs new file mode 100644 index 0000000..493c4d1 --- /dev/null +++ b/DSALib/Vorteil.cs @@ -0,0 +1,18 @@ +namespace DiscoBot.DSA_Game +{ + 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 new file mode 100644 index 0000000..bf49a2e --- /dev/null +++ b/DSALib/Zauber.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DiscoBot.DSA_Game +{ + 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; } + } +} diff --git a/DiscoBot.sln b/DiscoBot.sln index 0dc4781..8ad177a 100644 --- a/DiscoBot.sln +++ b/DiscoBot.sln @@ -10,6 +10,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DiscoBot", "DiscoBot\DiscoBot.csproj", "{1186AF1C-BC46-4B3D-BEE0-CE478B8AEAC7}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DSALib", "DSALib\DSALib.csproj", "{33281E45-1D5C-4645-8D2B-DD05B40FDFD5}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZooBOTanica", "ZooBOTanica\ZooBOTanica.csproj", "{58917D99-DC94-4CDD-AD2B-C6E0BAFFCF47}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -20,6 +24,14 @@ Global {1186AF1C-BC46-4B3D-BEE0-CE478B8AEAC7}.Debug|Any CPU.Build.0 = Debug|Any CPU {1186AF1C-BC46-4B3D-BEE0-CE478B8AEAC7}.Release|Any CPU.ActiveCfg = Release|Any CPU {1186AF1C-BC46-4B3D-BEE0-CE478B8AEAC7}.Release|Any CPU.Build.0 = Release|Any CPU + {33281E45-1D5C-4645-8D2B-DD05B40FDFD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {33281E45-1D5C-4645-8D2B-DD05B40FDFD5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {33281E45-1D5C-4645-8D2B-DD05B40FDFD5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {33281E45-1D5C-4645-8D2B-DD05B40FDFD5}.Release|Any CPU.Build.0 = Release|Any CPU + {58917D99-DC94-4CDD-AD2B-C6E0BAFFCF47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {58917D99-DC94-4CDD-AD2B-C6E0BAFFCF47}.Debug|Any CPU.Build.0 = Debug|Any CPU + {58917D99-DC94-4CDD-AD2B-C6E0BAFFCF47}.Release|Any CPU.ActiveCfg = Release|Any CPU + {58917D99-DC94-4CDD-AD2B-C6E0BAFFCF47}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/DiscoBot/Commands/FileHandler.cs b/DiscoBot/Commands/FileHandler.cs index e1d9bc2..52c8476 100644 --- a/DiscoBot/Commands/FileHandler.cs +++ b/DiscoBot/Commands/FileHandler.cs @@ -4,9 +4,7 @@ using System.Linq; using System.Net; using System.Threading.Tasks; - - using DiscoBot.Auxiliary; - using DiscoBot.Characters; + using DiscoBot.DSA_Game; using DiscoBot.DSA_Game.Characters; diff --git a/DiscoBot/DSA_Game/Characters/Being.cs b/DiscoBot/DSA_Game/Characters/Being.cs deleted file mode 100644 index 154e69e..0000000 --- a/DiscoBot/DSA_Game/Characters/Being.cs +++ /dev/null @@ -1,23 +0,0 @@ -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/DiscoBot/DSA_Game/Characters/Character.cs b/DiscoBot/DSA_Game/Characters/Character.cs index c2d14eb..d14f28e 100644 --- a/DiscoBot/DSA_Game/Characters/Character.cs +++ b/DiscoBot/DSA_Game/Characters/Character.cs @@ -72,7 +72,7 @@ public List Vorteile { get; set; } = new List(); public Dictionary PropTable { get; set; } = new Dictionary(); // -> Körperkraft - + public string TestTalent(string talent, int erschwernis = 0) // Talentprobe { return this.Talente.ProbenTest(this, talent, erschwernis); @@ -89,8 +89,8 @@ var prop = this.PropTable[eigenschaft.ToUpper()]; int tap = this.Eigenschaften[prop]; output.AppendFormat( - "{0}-Eigenschaftsprobe ew:{1} {2} \n", - prop, + "{0}-Eigenschaftsprobe ew:{1} {2} \n", + prop, tap, erschwernis.Equals(0) ? string.Empty : "Erschwernis: " + erschwernis); int roll = Dice.Roll(); @@ -144,9 +144,9 @@ int tap = attack.Pa; output.AppendFormat( - "{0}-Parade taw:{1} {2}\n", - attack.Name, - tap, + "{0}-Parade taw:{1} {2}\n", + attack.Name, + tap, erschwernis.Equals(0) ? string.Empty : "Erschwernis: " + erschwernis); int temp = Dice.Roll(); @@ -172,8 +172,8 @@ int tap = attack.Value; output.AppendFormat( - "{0} taw:{1} {2} \n", - attack.Name, + "{0} taw:{1} {2} \n", + attack.Name, tap, erschwernis.Equals(0) ? string.Empty : "Erschwernis: " + erschwernis); tap -= erschwernis; @@ -199,7 +199,7 @@ this.Ausdauer_Basis = 0; - this.Lebenspunkte_Basis = LE_Wert + (int)(KO__Wert + (KK_Wert/2.0) + 0.5); + this.Lebenspunkte_Basis = LE_Wert + (int)(KO__Wert + (KK_Wert / 2.0) + 0.5); if (this.Vorteile.Exists(x => x.Name.ToLower().Contains("zauberer"))) { @@ -209,11 +209,11 @@ this.Lebenspunkte_Aktuell = this.Lebenspunkte_Basis; this.Astralpunkte_Aktuell = this.Astralpunkte_Basis; this.Ausdauer_Aktuell = this.Ausdauer_Basis; - + } - - private void Load(string path) + + private void Load(string path) { var reader = new XmlTextReader(path); while (reader.Read()) @@ -245,7 +245,7 @@ { this.Vorteile.Add(new Vorteil( reader.GetAttribute("name"), - // Convert.ToInt32(reader.GetAttribute("value")))); + // Convert.ToInt32(reader.GetAttribute("value")))); reader.GetAttribute("value"))); } catch @@ -297,4 +297,4 @@ } } } -} +} \ No newline at end of file diff --git a/DiscoBot/DSA_Game/Characters/Combatant.cs b/DiscoBot/DSA_Game/Characters/Combatant.cs deleted file mode 100644 index a99bff9..0000000 --- a/DiscoBot/DSA_Game/Characters/Combatant.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/DiscoBot/DSA_Game/Characters/Entity.cs b/DiscoBot/DSA_Game/Characters/Entity.cs deleted file mode 100644 index f8e7a12..0000000 --- a/DiscoBot/DSA_Game/Characters/Entity.cs +++ /dev/null @@ -1,18 +0,0 @@ -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/DiscoBot/DSA_Game/Characters/ICharacter.cs b/DiscoBot/DSA_Game/Characters/ICharacter.cs deleted file mode 100644 index aabebe6..0000000 --- a/DiscoBot/DSA_Game/Characters/ICharacter.cs +++ /dev/null @@ -1,13 +0,0 @@ -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/DiscoBot/DSA_Game/KampfTalent.cs b/DiscoBot/DSA_Game/KampfTalent.cs deleted file mode 100644 index 79703d5..0000000 --- a/DiscoBot/DSA_Game/KampfTalent.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace DiscoBot.DSA_Game -{ - 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/DiscoBot/DSA_Game/Talent.cs b/DiscoBot/DSA_Game/Talent.cs deleted file mode 100644 index ff91742..0000000 --- a/DiscoBot/DSA_Game/Talent.cs +++ /dev/null @@ -1,58 +0,0 @@ -namespace DiscoBot.DSA_Game -{ - using System; - - using DiscoBot.Auxiliary; - - 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 int CheckName(string quarry) - { - var sc = (StringComparer)new SpellCorrect(); - return sc.Compare(quarry, this.Name); - } - - 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/DiscoBot/DSA_Game/Vorteil.cs b/DiscoBot/DSA_Game/Vorteil.cs deleted file mode 100644 index 493c4d1..0000000 --- a/DiscoBot/DSA_Game/Vorteil.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace DiscoBot.DSA_Game -{ - 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/DiscoBot/DSA_Game/Zauber.cs b/DiscoBot/DSA_Game/Zauber.cs deleted file mode 100644 index bf49a2e..0000000 --- a/DiscoBot/DSA_Game/Zauber.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace DiscoBot.DSA_Game -{ - 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; } - } -} diff --git a/DiscoBot/DiscoBot.csproj b/DiscoBot/DiscoBot.csproj index efadae4..4560755 100644 --- a/DiscoBot/DiscoBot.csproj +++ b/DiscoBot/DiscoBot.csproj @@ -99,16 +99,14 @@ + + + - - - - - @@ -116,9 +114,6 @@ - - - @@ -127,11 +122,8 @@ - - - @@ -149,6 +141,12 @@ Settings.Designer.cs + + + {33281e45-1d5c-4645-8d2b-dd05b40fdfd5} + DSALib + + diff --git a/ZooBOTanica/App.config b/ZooBOTanica/App.config new file mode 100644 index 0000000..731f6de --- /dev/null +++ b/ZooBOTanica/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ZooBOTanica/CritCreate.Designer.cs b/ZooBOTanica/CritCreate.Designer.cs new file mode 100644 index 0000000..0129815 --- /dev/null +++ b/ZooBOTanica/CritCreate.Designer.cs @@ -0,0 +1,380 @@ +namespace ZooBOTanica +{ + partial class CritCreateForm + { + /// + /// Erforderliche Designervariable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Verwendete Ressourcen bereinigen. + /// + /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Windows Form-Designer generierter Code + + /// + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CritCreateForm)); + this.NameLabel = new System.Windows.Forms.Label(); + this.NameEdit = new System.Windows.Forms.TextBox(); + this.LeLabel = new System.Windows.Forms.Label(); + this.LeEdit = new System.Windows.Forms.NumericUpDown(); + this.GrundwerteGroup = new System.Windows.Forms.GroupBox(); + this.AeLabel = new System.Windows.Forms.Label(); + this.AeEdit = new System.Windows.Forms.NumericUpDown(); + this.AuLabel = new System.Windows.Forms.Label(); + this.AuEdit = new System.Windows.Forms.NumericUpDown(); + this.VerteidugungGroup = new System.Windows.Forms.GroupBox(); + this.KoLabel = new System.Windows.Forms.Label(); + this.KoEdit = new System.Windows.Forms.NumericUpDown(); + this.MRLabel = new System.Windows.Forms.Label(); + this.MREdit = new System.Windows.Forms.NumericUpDown(); + this.RSLAbel = new System.Windows.Forms.Label(); + this.RSEdit = new System.Windows.Forms.NumericUpDown(); + this.PALabel = new System.Windows.Forms.Label(); + this.PAEdit = new System.Windows.Forms.NumericUpDown(); + this.SecondGroup = new System.Windows.Forms.GroupBox(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.GWLabel = new System.Windows.Forms.Label(); + this.GWEdit = new System.Windows.Forms.NumericUpDown(); + this.INILabel = new System.Windows.Forms.Label(); + this.GsLabel = new System.Windows.Forms.Label(); + this.GsEdit = new System.Windows.Forms.NumericUpDown(); + this.AttackGroup = new System.Windows.Forms.GroupBox(); + this.AttackList = new System.Windows.Forms.DataGridView(); + this.NameCollum = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ATCollum = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.TPCollum = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.KommentarCollum = new System.Windows.Forms.DataGridViewTextBoxColumn(); + ((System.ComponentModel.ISupportInitialize)(this.LeEdit)).BeginInit(); + this.GrundwerteGroup.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.AeEdit)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.AuEdit)).BeginInit(); + this.VerteidugungGroup.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.KoEdit)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.MREdit)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.RSEdit)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.PAEdit)).BeginInit(); + this.SecondGroup.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.GWEdit)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.GsEdit)).BeginInit(); + this.AttackGroup.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.AttackList)).BeginInit(); + this.SuspendLayout(); + // + // NameLabel + // + resources.ApplyResources(this.NameLabel, "NameLabel"); + this.NameLabel.Name = "NameLabel"; + // + // NameEdit + // + resources.ApplyResources(this.NameEdit, "NameEdit"); + this.NameEdit.ForeColor = System.Drawing.SystemColors.WindowText; + this.NameEdit.Name = "NameEdit"; + // + // LeLabel + // + resources.ApplyResources(this.LeLabel, "LeLabel"); + this.LeLabel.Name = "LeLabel"; + // + // LeEdit + // + resources.ApplyResources(this.LeEdit, "LeEdit"); + this.LeEdit.Name = "LeEdit"; + this.LeEdit.Value = new decimal(new int[] { + 30, + 0, + 0, + 0}); + // + // GrundwerteGroup + // + resources.ApplyResources(this.GrundwerteGroup, "GrundwerteGroup"); + this.GrundwerteGroup.Controls.Add(this.AeLabel); + this.GrundwerteGroup.Controls.Add(this.AeEdit); + this.GrundwerteGroup.Controls.Add(this.AuLabel); + this.GrundwerteGroup.Controls.Add(this.AuEdit); + this.GrundwerteGroup.Controls.Add(this.LeLabel); + this.GrundwerteGroup.Controls.Add(this.LeEdit); + this.GrundwerteGroup.Name = "GrundwerteGroup"; + this.GrundwerteGroup.TabStop = false; + // + // AeLabel + // + resources.ApplyResources(this.AeLabel, "AeLabel"); + this.AeLabel.Name = "AeLabel"; + // + // AeEdit + // + resources.ApplyResources(this.AeEdit, "AeEdit"); + this.AeEdit.Name = "AeEdit"; + // + // AuLabel + // + resources.ApplyResources(this.AuLabel, "AuLabel"); + this.AuLabel.Name = "AuLabel"; + // + // AuEdit + // + resources.ApplyResources(this.AuEdit, "AuEdit"); + this.AuEdit.Name = "AuEdit"; + this.AuEdit.Value = new decimal(new int[] { + 30, + 0, + 0, + 0}); + // + // VerteidugungGroup + // + resources.ApplyResources(this.VerteidugungGroup, "VerteidugungGroup"); + this.VerteidugungGroup.Controls.Add(this.KoLabel); + this.VerteidugungGroup.Controls.Add(this.KoEdit); + this.VerteidugungGroup.Controls.Add(this.MRLabel); + this.VerteidugungGroup.Controls.Add(this.MREdit); + this.VerteidugungGroup.Controls.Add(this.RSLAbel); + this.VerteidugungGroup.Controls.Add(this.RSEdit); + this.VerteidugungGroup.Name = "VerteidugungGroup"; + this.VerteidugungGroup.TabStop = false; + // + // KoLabel + // + resources.ApplyResources(this.KoLabel, "KoLabel"); + this.KoLabel.Name = "KoLabel"; + // + // KoEdit + // + resources.ApplyResources(this.KoEdit, "KoEdit"); + this.KoEdit.Name = "KoEdit"; + this.KoEdit.Value = new decimal(new int[] { + 10, + 0, + 0, + 0}); + // + // MRLabel + // + resources.ApplyResources(this.MRLabel, "MRLabel"); + this.MRLabel.Name = "MRLabel"; + // + // MREdit + // + resources.ApplyResources(this.MREdit, "MREdit"); + this.MREdit.Name = "MREdit"; + this.MREdit.Value = new decimal(new int[] { + 5, + 0, + 0, + 0}); + // + // RSLAbel + // + resources.ApplyResources(this.RSLAbel, "RSLAbel"); + this.RSLAbel.Name = "RSLAbel"; + // + // RSEdit + // + resources.ApplyResources(this.RSEdit, "RSEdit"); + this.RSEdit.Name = "RSEdit"; + // + // PALabel + // + resources.ApplyResources(this.PALabel, "PALabel"); + this.PALabel.Name = "PALabel"; + // + // PAEdit + // + resources.ApplyResources(this.PAEdit, "PAEdit"); + this.PAEdit.Name = "PAEdit"; + this.PAEdit.Value = new decimal(new int[] { + 6, + 0, + 0, + 0}); + // + // SecondGroup + // + resources.ApplyResources(this.SecondGroup, "SecondGroup"); + this.SecondGroup.Controls.Add(this.textBox1); + this.SecondGroup.Controls.Add(this.GWLabel); + this.SecondGroup.Controls.Add(this.GWEdit); + this.SecondGroup.Controls.Add(this.INILabel); + this.SecondGroup.Controls.Add(this.GsLabel); + this.SecondGroup.Controls.Add(this.GsEdit); + this.SecondGroup.Name = "SecondGroup"; + this.SecondGroup.TabStop = false; + // + // textBox1 + // + resources.ApplyResources(this.textBox1, "textBox1"); + this.textBox1.Name = "textBox1"; + // + // GWLabel + // + resources.ApplyResources(this.GWLabel, "GWLabel"); + this.GWLabel.Name = "GWLabel"; + // + // GWEdit + // + resources.ApplyResources(this.GWEdit, "GWEdit"); + this.GWEdit.Name = "GWEdit"; + this.GWEdit.Value = new decimal(new int[] { + 3, + 0, + 0, + 0}); + // + // INILabel + // + resources.ApplyResources(this.INILabel, "INILabel"); + this.INILabel.Name = "INILabel"; + // + // GsLabel + // + resources.ApplyResources(this.GsLabel, "GsLabel"); + this.GsLabel.Name = "GsLabel"; + // + // GsEdit + // + resources.ApplyResources(this.GsEdit, "GsEdit"); + this.GsEdit.Name = "GsEdit"; + this.GsEdit.Value = new decimal(new int[] { + 8, + 0, + 0, + 0}); + // + // AttackGroup + // + resources.ApplyResources(this.AttackGroup, "AttackGroup"); + this.AttackGroup.Controls.Add(this.AttackList); + this.AttackGroup.Controls.Add(this.PALabel); + this.AttackGroup.Controls.Add(this.PAEdit); + this.AttackGroup.Name = "AttackGroup"; + this.AttackGroup.TabStop = false; + // + // AttackList + // + resources.ApplyResources(this.AttackList, "AttackList"); + this.AttackList.AllowUserToResizeRows = false; + this.AttackList.BackgroundColor = System.Drawing.Color.PeachPuff; + this.AttackList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.AttackList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.NameCollum, + this.ATCollum, + this.TPCollum, + this.KommentarCollum}); + this.AttackList.Name = "AttackList"; + // + // NameCollum + // + resources.ApplyResources(this.NameCollum, "NameCollum"); + this.NameCollum.Name = "NameCollum"; + // + // ATCollum + // + this.ATCollum.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader; + resources.ApplyResources(this.ATCollum, "ATCollum"); + this.ATCollum.Name = "ATCollum"; + // + // TPCollum + // + this.TPCollum.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader; + resources.ApplyResources(this.TPCollum, "TPCollum"); + this.TPCollum.Name = "TPCollum"; + // + // KommentarCollum + // + resources.ApplyResources(this.KommentarCollum, "KommentarCollum"); + this.KommentarCollum.Name = "KommentarCollum"; + // + // CritCreateForm + // + resources.ApplyResources(this, "$this"); + this.AllowDrop = true; + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.SandyBrown; + this.Controls.Add(this.AttackGroup); + this.Controls.Add(this.SecondGroup); + this.Controls.Add(this.VerteidugungGroup); + this.Controls.Add(this.GrundwerteGroup); + this.Controls.Add(this.NameEdit); + this.Controls.Add(this.NameLabel); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; + this.MaximizeBox = false; + this.Name = "CritCreateForm"; + this.ShowIcon = false; + this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; + ((System.ComponentModel.ISupportInitialize)(this.LeEdit)).EndInit(); + this.GrundwerteGroup.ResumeLayout(false); + this.GrundwerteGroup.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.AeEdit)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.AuEdit)).EndInit(); + this.VerteidugungGroup.ResumeLayout(false); + this.VerteidugungGroup.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.KoEdit)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.MREdit)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.RSEdit)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.PAEdit)).EndInit(); + this.SecondGroup.ResumeLayout(false); + this.SecondGroup.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.GWEdit)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.GsEdit)).EndInit(); + this.AttackGroup.ResumeLayout(false); + this.AttackGroup.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.AttackList)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label NameLabel; + private System.Windows.Forms.TextBox NameEdit; + private System.Windows.Forms.Label LeLabel; + private System.Windows.Forms.NumericUpDown LeEdit; + private System.Windows.Forms.GroupBox GrundwerteGroup; + private System.Windows.Forms.Label AeLabel; + private System.Windows.Forms.NumericUpDown AeEdit; + private System.Windows.Forms.Label AuLabel; + private System.Windows.Forms.NumericUpDown AuEdit; + private System.Windows.Forms.GroupBox VerteidugungGroup; + private System.Windows.Forms.Label MRLabel; + private System.Windows.Forms.NumericUpDown MREdit; + private System.Windows.Forms.Label RSLAbel; + private System.Windows.Forms.NumericUpDown RSEdit; + private System.Windows.Forms.Label PALabel; + private System.Windows.Forms.NumericUpDown PAEdit; + private System.Windows.Forms.Label KoLabel; + private System.Windows.Forms.NumericUpDown KoEdit; + private System.Windows.Forms.GroupBox SecondGroup; + private System.Windows.Forms.Label GWLabel; + private System.Windows.Forms.NumericUpDown GWEdit; + private System.Windows.Forms.Label INILabel; + private System.Windows.Forms.Label GsLabel; + private System.Windows.Forms.NumericUpDown GsEdit; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.GroupBox AttackGroup; + private System.Windows.Forms.DataGridView AttackList; + private System.Windows.Forms.DataGridViewTextBoxColumn NameCollum; + private System.Windows.Forms.DataGridViewTextBoxColumn ATCollum; + private System.Windows.Forms.DataGridViewTextBoxColumn TPCollum; + private System.Windows.Forms.DataGridViewTextBoxColumn KommentarCollum; + } +} + diff --git a/ZooBOTanica/CritCreate.cs b/ZooBOTanica/CritCreate.cs new file mode 100644 index 0000000..7285a78 --- /dev/null +++ b/ZooBOTanica/CritCreate.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace ZooBOTanica +{ + public partial class CritCreateForm : Form + { + public CritCreateForm() + { + InitializeComponent(); + + } + + } +} diff --git a/ZooBOTanica/CritCreate.de-DE.resx b/ZooBOTanica/CritCreate.de-DE.resx new file mode 100644 index 0000000..1b630fc --- /dev/null +++ b/ZooBOTanica/CritCreate.de-DE.resx @@ -0,0 +1,139 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Name + + + At + + + + 42 + + + TP + + + 46 + + + Kommentar + + \ No newline at end of file diff --git a/ZooBOTanica/CritCreate.resx b/ZooBOTanica/CritCreate.resx new file mode 100644 index 0000000..d213fe9 --- /dev/null +++ b/ZooBOTanica/CritCreate.resx @@ -0,0 +1,905 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + 45, 20 + + + VerteidugungGroup + + + 279, 150 + + + $this + + + Le: + + + SecondGroup + + + System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrundwerteGroup + + + SecondGroup + + + AttackGroup + + + + True + + + True + + + MRLabel + + + Sekundäre Werte + + + 185, 21 + + + GWLabel + + + 27, 13 + + + 14 + + + Kommentar + + + Ae: + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 5 + + + 22, 32 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 2 + + + 314, 173 + + + AttackList + + + 8 + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + At + + + KoLabel + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 121, 19 + + + 10 + + + True + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 3 + + + INILabel + + + 12, 55 + + + NameEdit + + + True + + + 3 + + + VerteidugungGroup + + + System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 8 + + + 2 + + + 0 + + + SecondGroup + + + System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GS: + + + $this + + + 4 + + + 277, 53 + + + 80, 29 + + + 6, 13 + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 0 + + + GrundwerteGroup + + + $this + + + 38, 13 + + + 131, 23 + + + 6 + + + 11 + + + AuEdit + + + 0 + + + $this + + + 2w6+5 + + + 3 + + + 0 + + + 8, 21 + + + $this + + + Grundwerte + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + GrundwerteGroup + + + 42 + + + 4 + + + AttackGroup + + + 4 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + INI: + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 296, 218 + + + 2 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 2 + + + 45, 20 + + + 121, 18 + + + Gegner + + + 6 + + + 5 + + + CritCreateForm + + + VerteidugungGroup + + + GrundwerteGroup + + + GrundwerteGroup + + + TP + + + 10 + + + 314, 55 + + + 45, 20 + + + SecondGroup + + + KO: + + + GrundwerteGroup + + + Name + + + 8, 189 + + + 3 + + + 213, 19 + + + 7 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 10 + + + 5 + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + RS: + + + 4 + + + 9 + + + PA: + + + VerteidugungGroup + + + 45, 20 + + + 45, 20 + + + 2 + + + AT + + + VerteidugungGroup + + + 93, 21 + + + 100, 20 + + + True + + + Attacke(n) + + + NameCollum + + + GsEdit + + + Verteidigung + + + 213, 19 + + + 25, 13 + + + 45, 20 + + + 3 + + + AuLabel + + + Au: + + + AeLabel + + + CritCreate + + + GrundwerteGroup + + + 7 + + + KommentarCollum + + + True + + + RSLAbel + + + ATCollum + + + LeEdit + + + 3 + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 25, 13 + + + 39, 23 + + + 1 + + + 3 + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 277, 53 + + + 22, 13 + + + RSEdit + + + 2 + + + 23, 13 + + + 0 + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + SecondGroup + + + 221, 23 + + + 36, 19 + + + textBox1 + + + 10 + + + MR: + + + 4 + + + True + + + 46 + + + GWEdit + + + 1 + + + System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 0 + + + 42 + + + MREdit + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 11, 19 + + + 36, 19 + + + KoEdit + + + 45, 20 + + + Kommentar + + + 6 + + + AttackGroup + + + 24, 13 + + + True + + + 9 + + + 1 + + + 103, 25 + + + True + + + 29, 13 + + + TP + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 5 + + + 1 + + + 185, 21 + + + GW: + + + NameLabel + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Kommentar + + + AeEdit + + + TPCollum + + + AttackGroup + + + 1 + + + 45, 20 + + + PALabel + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + At + + + Name + + + 600, 284 + + + 12 + + + System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + SecondGroup + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 11, 25 + + + 25, 13 + + + 93, 21 + + + PAEdit + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 46 + + + 8 + + + Name + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + 2 + + + $this + + + 314, 114 + + + Name: + + + 2 + + + 8, 21 + + + 277, 53 + + + TP + + + System.Windows.Forms.DataGridView, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 45, 20 + + + 9 + + + 24, 13 + + + SecondGroup + + + 23, 13 + + + LeLabel + + + System.Windows.Forms.DataGridViewTextBoxColumn, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 193, 25 + + + VerteidugungGroup + + + 1 + + + True + + + VerteidugungGroup + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 36, 187 + + + GsLabel + + + 58, 20 + + + de-DE + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + \ No newline at end of file diff --git a/ZooBOTanica/Program.cs b/ZooBOTanica/Program.cs new file mode 100644 index 0000000..e67b591 --- /dev/null +++ b/ZooBOTanica/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace ZooBOTanica +{ + static class Program + { + /// + /// Der Haupteinstiegspunkt für die Anwendung. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new CritCreateForm()); + } + } +} diff --git a/ZooBOTanica/Properties/AssemblyInfo.cs b/ZooBOTanica/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..c29729b --- /dev/null +++ b/ZooBOTanica/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("ZooBOTanica")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ZooBOTanica")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly +// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("58917d99-dc94-4cdd-ad2b-c6e0baffcf47")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, +// übernehmen, indem Sie "*" eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ZooBOTanica/Properties/Resources.Designer.cs b/ZooBOTanica/Properties/Resources.Designer.cs new file mode 100644 index 0000000..877b16a --- /dev/null +++ b/ZooBOTanica/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion: 4.0.30319.42000 +// +// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn +// der Code neu generiert wird. +// +//------------------------------------------------------------------------------ + +namespace ZooBOTanica.Properties +{ + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse + // über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ZooBOTanica.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/ZooBOTanica/Properties/Resources.resx b/ZooBOTanica/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/ZooBOTanica/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ZooBOTanica/Properties/Settings.Designer.cs b/ZooBOTanica/Properties/Settings.Designer.cs new file mode 100644 index 0000000..a8ccad5 --- /dev/null +++ b/ZooBOTanica/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ZooBOTanica.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/ZooBOTanica/Properties/Settings.settings b/ZooBOTanica/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/ZooBOTanica/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/ZooBOTanica/TextBoxExtension.cs b/ZooBOTanica/TextBoxExtension.cs new file mode 100644 index 0000000..cc50dac --- /dev/null +++ b/ZooBOTanica/TextBoxExtension.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ZooBOTanica +{ + class FormExtension + { + } +} diff --git a/ZooBOTanica/ZooBOTanica.csproj b/ZooBOTanica/ZooBOTanica.csproj new file mode 100644 index 0000000..e4d3980 --- /dev/null +++ b/ZooBOTanica/ZooBOTanica.csproj @@ -0,0 +1,86 @@ + + + + + Debug + AnyCPU + {58917D99-DC94-4CDD-AD2B-C6E0BAFFCF47} + WinExe + ZooBOTanica + ZooBOTanica + v4.6.1 + 512 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + CritCreate.cs + + + + + + CritCreate.cs + + + CritCreate.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file -- cgit v1.2.3-70-g09d2