diff --git a/CS_Projekt_Sem2.sln b/CS_Projekt_Sem2.sln new file mode 100644 index 0000000..923d53e --- /dev/null +++ b/CS_Projekt_Sem2.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35327.3 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CS_Projekt_Sem2", "CS_Projekt_Sem2\CS_Projekt_Sem2.csproj", "{BD2E44F6-A23F-4A5E-ACD6-F7E7A42632C2}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BD2E44F6-A23F-4A5E-ACD6-F7E7A42632C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BD2E44F6-A23F-4A5E-ACD6-F7E7A42632C2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BD2E44F6-A23F-4A5E-ACD6-F7E7A42632C2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BD2E44F6-A23F-4A5E-ACD6-F7E7A42632C2}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EBF4FDD4-8892-4040-AD4C-AE67E3DC276E} + EndGlobalSection +EndGlobal diff --git a/CS_Projekt_Sem2/App.xaml b/CS_Projekt_Sem2/App.xaml new file mode 100644 index 0000000..96401b9 --- /dev/null +++ b/CS_Projekt_Sem2/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/CS_Projekt_Sem2/App.xaml.cs b/CS_Projekt_Sem2/App.xaml.cs new file mode 100644 index 0000000..a914105 --- /dev/null +++ b/CS_Projekt_Sem2/App.xaml.cs @@ -0,0 +1,14 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace CS_Projekt_Sem2 +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } + +} diff --git a/CS_Projekt_Sem2/AssemblyInfo.cs b/CS_Projekt_Sem2/AssemblyInfo.cs new file mode 100644 index 0000000..b0ec827 --- /dev/null +++ b/CS_Projekt_Sem2/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/CS_Projekt_Sem2/Attribute.cs b/CS_Projekt_Sem2/Attribute.cs new file mode 100644 index 0000000..de871f1 --- /dev/null +++ b/CS_Projekt_Sem2/Attribute.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CS_Projekt_Sem2 +{ + public class Attribute + { + //Name des Attributs + public string AttributeName { get; } + //Konstruktor, in dem man den Namen übergeben muss + public Attribute(string name) + { + this.AttributeName = name; + } + //Aktuelles Level des Attributs + private int _level = 0; + //Öffentliche Sichtbarkeit des Levels + public int Level { get { return _level; } } + //Kosten für eine Erhöhung des Levels + public int CostsNextLevel { get { return (int)((_level == 0 ? 1 : _level + 1) * 1.1); } } + //Versuch, ein Level zu erhöhen + public bool PutNextLevel(int aviablePoints) + { + if (aviablePoints >= CostsNextLevel) + { + _level++; + return true; + } + else + return false; + } + + + } +} diff --git a/CS_Projekt_Sem2/CS_Projekt_Sem2.csproj b/CS_Projekt_Sem2/CS_Projekt_Sem2.csproj new file mode 100644 index 0000000..907cfbf --- /dev/null +++ b/CS_Projekt_Sem2/CS_Projekt_Sem2.csproj @@ -0,0 +1,46 @@ + + + + WinExe + net8.0-windows + enable + enable + true + + + + + + + + + + + + + + + + + + + + + + + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + diff --git a/CS_Projekt_Sem2/Charakterinfo.jpeg b/CS_Projekt_Sem2/Charakterinfo.jpeg new file mode 100644 index 0000000..0e72e92 Binary files /dev/null and b/CS_Projekt_Sem2/Charakterinfo.jpeg differ diff --git a/CS_Projekt_Sem2/MainWindow.xaml b/CS_Projekt_Sem2/MainWindow.xaml new file mode 100644 index 0000000..56c5c76 --- /dev/null +++ b/CS_Projekt_Sem2/MainWindow.xaml @@ -0,0 +1,249 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +