diff --git a/AppsLab.CSharp.Exercises.sln b/AppsLab.CSharp.Exercises.sln index 58bbf6b5..1d73cc9c 100644 --- a/AppsLab.CSharp.Exercises.sln +++ b/AppsLab.CSharp.Exercises.sln @@ -93,10 +93,31 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-033-NuGet", "src\Ap EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppsLab-034-Debug", "src\AppsLab-034-Debug\AppsLab-034-Debug.csproj", "{83C963FD-DC23-46E8-9545-F56197164810}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cvicenie_cykly", "Cvicenie_cykly\Cvicenie_cykly.csproj", "{C852237E-6FE2-4507-953F-77FD72962445}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cvicenia_poli", "cvicenia_poli\cvicenia_poli.csproj", "{D89F9F5D-C56A-4412-AEC1-9AD018322387}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{D2FF1F08-A167-4272-A0E9-4460A5D7468F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cvicenie_objekty", "cvicenie_objekty\cvicenie_objekty.csproj", "{66026C75-AC39-4F61-B53C-AE11FFCB3DB1}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bettlesimulator", "Bettlesimulator\Bettlesimulator.csproj", "{D6206AD6-9E73-4BC0-B737-485F31648DDA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cvicenie_idlefarmer", "Cvicenie_idlefarmer\Cvicenie_idlefarmer.csproj", "{E6AFBC85-C0F4-4A80-BC34-03982E3D658C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cvicenie_pravdepodobnosť", "Cvicenie_pravdepodobnosť\Cvicenie_pravdepodobnosť.csproj", "{B6B66F97-A22F-4A00-A770-4FF4136D8F8D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cvicenie_gameshop", "cvicenie_gameshop\cvicenie_gameshop.csproj", "{F440743E-383A-45A7-93FC-CC0D81666B47}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cvicenie_sims", "Cvicenie_sims\Cvicenie_sims.csproj", "{9813755E-3759-4D95-9794-F213C4535129}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfAppGuess", "WpfAppGuess\WpfAppGuess.csproj", "{199E8E42-CF0C-4DA1-B70B-597C4016BDEC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfAppStopky", "WpfAppStopky\WpfAppStopky.csproj", "{ECEE5974-6A92-4FC5-B7D4-A08971EF3B56}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cvicenie_pokemon", "Cvicenie_pokemon\Cvicenie_pokemon.csproj", "{A76AE26C-607F-4877-B7BD-E69814BBA8A1}" +EndProject Global - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Debug|x64 = Debug|x64 @@ -226,18 +247,6 @@ Global {A6659FD2-5F11-432B-91B7-C64EAEAF669C}.Release|x64.Build.0 = Release|Any CPU {A6659FD2-5F11-432B-91B7-C64EAEAF669C}.Release|x86.ActiveCfg = Release|Any CPU {A6659FD2-5F11-432B-91B7-C64EAEAF669C}.Release|x86.Build.0 = Release|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Debug|x64.ActiveCfg = Debug|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Debug|x64.Build.0 = Debug|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Debug|x86.ActiveCfg = Debug|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Debug|x86.Build.0 = Debug|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Release|Any CPU.Build.0 = Release|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Release|x64.ActiveCfg = Release|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Release|x64.Build.0 = Release|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Release|x86.ActiveCfg = Release|Any CPU - {B141B973-9C0B-4512-B8B4-1237B596A8D2}.Release|x86.Build.0 = Release|Any CPU {FD645D4C-9DC8-4603-A77B-8A4782F175F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {FD645D4C-9DC8-4603-A77B-8A4782F175F4}.Debug|Any CPU.Build.0 = Debug|Any CPU {FD645D4C-9DC8-4603-A77B-8A4782F175F4}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -634,6 +643,153 @@ Global {83C963FD-DC23-46E8-9545-F56197164810}.Release|x64.Build.0 = Release|Any CPU {83C963FD-DC23-46E8-9545-F56197164810}.Release|x86.ActiveCfg = Release|Any CPU {83C963FD-DC23-46E8-9545-F56197164810}.Release|x86.Build.0 = Release|Any CPU + {C852237E-6FE2-4507-953F-77FD72962445}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C852237E-6FE2-4507-953F-77FD72962445}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C852237E-6FE2-4507-953F-77FD72962445}.Debug|x64.ActiveCfg = Debug|Any CPU + {C852237E-6FE2-4507-953F-77FD72962445}.Debug|x64.Build.0 = Debug|Any CPU + {C852237E-6FE2-4507-953F-77FD72962445}.Debug|x86.ActiveCfg = Debug|Any CPU + {C852237E-6FE2-4507-953F-77FD72962445}.Debug|x86.Build.0 = Debug|Any CPU + {C852237E-6FE2-4507-953F-77FD72962445}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C852237E-6FE2-4507-953F-77FD72962445}.Release|Any CPU.Build.0 = Release|Any CPU + {C852237E-6FE2-4507-953F-77FD72962445}.Release|x64.ActiveCfg = Release|Any CPU + {C852237E-6FE2-4507-953F-77FD72962445}.Release|x64.Build.0 = Release|Any CPU + {C852237E-6FE2-4507-953F-77FD72962445}.Release|x86.ActiveCfg = Release|Any CPU + {C852237E-6FE2-4507-953F-77FD72962445}.Release|x86.Build.0 = Release|Any CPU + {D89F9F5D-C56A-4412-AEC1-9AD018322387}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D89F9F5D-C56A-4412-AEC1-9AD018322387}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D89F9F5D-C56A-4412-AEC1-9AD018322387}.Debug|x64.ActiveCfg = Debug|Any CPU + {D89F9F5D-C56A-4412-AEC1-9AD018322387}.Debug|x64.Build.0 = Debug|Any CPU + {D89F9F5D-C56A-4412-AEC1-9AD018322387}.Debug|x86.ActiveCfg = Debug|Any CPU + {D89F9F5D-C56A-4412-AEC1-9AD018322387}.Debug|x86.Build.0 = Debug|Any CPU + {D89F9F5D-C56A-4412-AEC1-9AD018322387}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D89F9F5D-C56A-4412-AEC1-9AD018322387}.Release|Any CPU.Build.0 = Release|Any CPU + {D89F9F5D-C56A-4412-AEC1-9AD018322387}.Release|x64.ActiveCfg = Release|Any CPU + {D89F9F5D-C56A-4412-AEC1-9AD018322387}.Release|x64.Build.0 = Release|Any CPU + {D89F9F5D-C56A-4412-AEC1-9AD018322387}.Release|x86.ActiveCfg = Release|Any CPU + {D89F9F5D-C56A-4412-AEC1-9AD018322387}.Release|x86.Build.0 = Release|Any CPU + {D2FF1F08-A167-4272-A0E9-4460A5D7468F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D2FF1F08-A167-4272-A0E9-4460A5D7468F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D2FF1F08-A167-4272-A0E9-4460A5D7468F}.Debug|x64.ActiveCfg = Debug|Any CPU + {D2FF1F08-A167-4272-A0E9-4460A5D7468F}.Debug|x64.Build.0 = Debug|Any CPU + {D2FF1F08-A167-4272-A0E9-4460A5D7468F}.Debug|x86.ActiveCfg = Debug|Any CPU + {D2FF1F08-A167-4272-A0E9-4460A5D7468F}.Debug|x86.Build.0 = Debug|Any CPU + {D2FF1F08-A167-4272-A0E9-4460A5D7468F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D2FF1F08-A167-4272-A0E9-4460A5D7468F}.Release|Any CPU.Build.0 = Release|Any CPU + {D2FF1F08-A167-4272-A0E9-4460A5D7468F}.Release|x64.ActiveCfg = Release|Any CPU + {D2FF1F08-A167-4272-A0E9-4460A5D7468F}.Release|x64.Build.0 = Release|Any CPU + {D2FF1F08-A167-4272-A0E9-4460A5D7468F}.Release|x86.ActiveCfg = Release|Any CPU + {D2FF1F08-A167-4272-A0E9-4460A5D7468F}.Release|x86.Build.0 = Release|Any CPU + {66026C75-AC39-4F61-B53C-AE11FFCB3DB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {66026C75-AC39-4F61-B53C-AE11FFCB3DB1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {66026C75-AC39-4F61-B53C-AE11FFCB3DB1}.Debug|x64.ActiveCfg = Debug|Any CPU + {66026C75-AC39-4F61-B53C-AE11FFCB3DB1}.Debug|x64.Build.0 = Debug|Any CPU + {66026C75-AC39-4F61-B53C-AE11FFCB3DB1}.Debug|x86.ActiveCfg = Debug|Any CPU + {66026C75-AC39-4F61-B53C-AE11FFCB3DB1}.Debug|x86.Build.0 = Debug|Any CPU + {66026C75-AC39-4F61-B53C-AE11FFCB3DB1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {66026C75-AC39-4F61-B53C-AE11FFCB3DB1}.Release|Any CPU.Build.0 = Release|Any CPU + {66026C75-AC39-4F61-B53C-AE11FFCB3DB1}.Release|x64.ActiveCfg = Release|Any CPU + {66026C75-AC39-4F61-B53C-AE11FFCB3DB1}.Release|x64.Build.0 = Release|Any CPU + {66026C75-AC39-4F61-B53C-AE11FFCB3DB1}.Release|x86.ActiveCfg = Release|Any CPU + {66026C75-AC39-4F61-B53C-AE11FFCB3DB1}.Release|x86.Build.0 = Release|Any CPU + {D6206AD6-9E73-4BC0-B737-485F31648DDA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D6206AD6-9E73-4BC0-B737-485F31648DDA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D6206AD6-9E73-4BC0-B737-485F31648DDA}.Debug|x64.ActiveCfg = Debug|Any CPU + {D6206AD6-9E73-4BC0-B737-485F31648DDA}.Debug|x64.Build.0 = Debug|Any CPU + {D6206AD6-9E73-4BC0-B737-485F31648DDA}.Debug|x86.ActiveCfg = Debug|Any CPU + {D6206AD6-9E73-4BC0-B737-485F31648DDA}.Debug|x86.Build.0 = Debug|Any CPU + {D6206AD6-9E73-4BC0-B737-485F31648DDA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D6206AD6-9E73-4BC0-B737-485F31648DDA}.Release|Any CPU.Build.0 = Release|Any CPU + {D6206AD6-9E73-4BC0-B737-485F31648DDA}.Release|x64.ActiveCfg = Release|Any CPU + {D6206AD6-9E73-4BC0-B737-485F31648DDA}.Release|x64.Build.0 = Release|Any CPU + {D6206AD6-9E73-4BC0-B737-485F31648DDA}.Release|x86.ActiveCfg = Release|Any CPU + {D6206AD6-9E73-4BC0-B737-485F31648DDA}.Release|x86.Build.0 = Release|Any CPU + {E6AFBC85-C0F4-4A80-BC34-03982E3D658C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E6AFBC85-C0F4-4A80-BC34-03982E3D658C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E6AFBC85-C0F4-4A80-BC34-03982E3D658C}.Debug|x64.ActiveCfg = Debug|Any CPU + {E6AFBC85-C0F4-4A80-BC34-03982E3D658C}.Debug|x64.Build.0 = Debug|Any CPU + {E6AFBC85-C0F4-4A80-BC34-03982E3D658C}.Debug|x86.ActiveCfg = Debug|Any CPU + {E6AFBC85-C0F4-4A80-BC34-03982E3D658C}.Debug|x86.Build.0 = Debug|Any CPU + {E6AFBC85-C0F4-4A80-BC34-03982E3D658C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E6AFBC85-C0F4-4A80-BC34-03982E3D658C}.Release|Any CPU.Build.0 = Release|Any CPU + {E6AFBC85-C0F4-4A80-BC34-03982E3D658C}.Release|x64.ActiveCfg = Release|Any CPU + {E6AFBC85-C0F4-4A80-BC34-03982E3D658C}.Release|x64.Build.0 = Release|Any CPU + {E6AFBC85-C0F4-4A80-BC34-03982E3D658C}.Release|x86.ActiveCfg = Release|Any CPU + {E6AFBC85-C0F4-4A80-BC34-03982E3D658C}.Release|x86.Build.0 = Release|Any CPU + {B6B66F97-A22F-4A00-A770-4FF4136D8F8D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B6B66F97-A22F-4A00-A770-4FF4136D8F8D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B6B66F97-A22F-4A00-A770-4FF4136D8F8D}.Debug|x64.ActiveCfg = Debug|Any CPU + {B6B66F97-A22F-4A00-A770-4FF4136D8F8D}.Debug|x64.Build.0 = Debug|Any CPU + {B6B66F97-A22F-4A00-A770-4FF4136D8F8D}.Debug|x86.ActiveCfg = Debug|Any CPU + {B6B66F97-A22F-4A00-A770-4FF4136D8F8D}.Debug|x86.Build.0 = Debug|Any CPU + {B6B66F97-A22F-4A00-A770-4FF4136D8F8D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B6B66F97-A22F-4A00-A770-4FF4136D8F8D}.Release|Any CPU.Build.0 = Release|Any CPU + {B6B66F97-A22F-4A00-A770-4FF4136D8F8D}.Release|x64.ActiveCfg = Release|Any CPU + {B6B66F97-A22F-4A00-A770-4FF4136D8F8D}.Release|x64.Build.0 = Release|Any CPU + {B6B66F97-A22F-4A00-A770-4FF4136D8F8D}.Release|x86.ActiveCfg = Release|Any CPU + {B6B66F97-A22F-4A00-A770-4FF4136D8F8D}.Release|x86.Build.0 = Release|Any CPU + {F440743E-383A-45A7-93FC-CC0D81666B47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F440743E-383A-45A7-93FC-CC0D81666B47}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F440743E-383A-45A7-93FC-CC0D81666B47}.Debug|x64.ActiveCfg = Debug|Any CPU + {F440743E-383A-45A7-93FC-CC0D81666B47}.Debug|x64.Build.0 = Debug|Any CPU + {F440743E-383A-45A7-93FC-CC0D81666B47}.Debug|x86.ActiveCfg = Debug|Any CPU + {F440743E-383A-45A7-93FC-CC0D81666B47}.Debug|x86.Build.0 = Debug|Any CPU + {F440743E-383A-45A7-93FC-CC0D81666B47}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F440743E-383A-45A7-93FC-CC0D81666B47}.Release|Any CPU.Build.0 = Release|Any CPU + {F440743E-383A-45A7-93FC-CC0D81666B47}.Release|x64.ActiveCfg = Release|Any CPU + {F440743E-383A-45A7-93FC-CC0D81666B47}.Release|x64.Build.0 = Release|Any CPU + {F440743E-383A-45A7-93FC-CC0D81666B47}.Release|x86.ActiveCfg = Release|Any CPU + {F440743E-383A-45A7-93FC-CC0D81666B47}.Release|x86.Build.0 = Release|Any CPU + {9813755E-3759-4D95-9794-F213C4535129}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9813755E-3759-4D95-9794-F213C4535129}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9813755E-3759-4D95-9794-F213C4535129}.Debug|x64.ActiveCfg = Debug|Any CPU + {9813755E-3759-4D95-9794-F213C4535129}.Debug|x64.Build.0 = Debug|Any CPU + {9813755E-3759-4D95-9794-F213C4535129}.Debug|x86.ActiveCfg = Debug|Any CPU + {9813755E-3759-4D95-9794-F213C4535129}.Debug|x86.Build.0 = Debug|Any CPU + {9813755E-3759-4D95-9794-F213C4535129}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9813755E-3759-4D95-9794-F213C4535129}.Release|Any CPU.Build.0 = Release|Any CPU + {9813755E-3759-4D95-9794-F213C4535129}.Release|x64.ActiveCfg = Release|Any CPU + {9813755E-3759-4D95-9794-F213C4535129}.Release|x64.Build.0 = Release|Any CPU + {9813755E-3759-4D95-9794-F213C4535129}.Release|x86.ActiveCfg = Release|Any CPU + {9813755E-3759-4D95-9794-F213C4535129}.Release|x86.Build.0 = Release|Any CPU + {199E8E42-CF0C-4DA1-B70B-597C4016BDEC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {199E8E42-CF0C-4DA1-B70B-597C4016BDEC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {199E8E42-CF0C-4DA1-B70B-597C4016BDEC}.Debug|x64.ActiveCfg = Debug|Any CPU + {199E8E42-CF0C-4DA1-B70B-597C4016BDEC}.Debug|x64.Build.0 = Debug|Any CPU + {199E8E42-CF0C-4DA1-B70B-597C4016BDEC}.Debug|x86.ActiveCfg = Debug|Any CPU + {199E8E42-CF0C-4DA1-B70B-597C4016BDEC}.Debug|x86.Build.0 = Debug|Any CPU + {199E8E42-CF0C-4DA1-B70B-597C4016BDEC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {199E8E42-CF0C-4DA1-B70B-597C4016BDEC}.Release|Any CPU.Build.0 = Release|Any CPU + {199E8E42-CF0C-4DA1-B70B-597C4016BDEC}.Release|x64.ActiveCfg = Release|Any CPU + {199E8E42-CF0C-4DA1-B70B-597C4016BDEC}.Release|x64.Build.0 = Release|Any CPU + {199E8E42-CF0C-4DA1-B70B-597C4016BDEC}.Release|x86.ActiveCfg = Release|Any CPU + {199E8E42-CF0C-4DA1-B70B-597C4016BDEC}.Release|x86.Build.0 = Release|Any CPU + {ECEE5974-6A92-4FC5-B7D4-A08971EF3B56}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ECEE5974-6A92-4FC5-B7D4-A08971EF3B56}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ECEE5974-6A92-4FC5-B7D4-A08971EF3B56}.Debug|x64.ActiveCfg = Debug|Any CPU + {ECEE5974-6A92-4FC5-B7D4-A08971EF3B56}.Debug|x64.Build.0 = Debug|Any CPU + {ECEE5974-6A92-4FC5-B7D4-A08971EF3B56}.Debug|x86.ActiveCfg = Debug|Any CPU + {ECEE5974-6A92-4FC5-B7D4-A08971EF3B56}.Debug|x86.Build.0 = Debug|Any CPU + {ECEE5974-6A92-4FC5-B7D4-A08971EF3B56}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ECEE5974-6A92-4FC5-B7D4-A08971EF3B56}.Release|Any CPU.Build.0 = Release|Any CPU + {ECEE5974-6A92-4FC5-B7D4-A08971EF3B56}.Release|x64.ActiveCfg = Release|Any CPU + {ECEE5974-6A92-4FC5-B7D4-A08971EF3B56}.Release|x64.Build.0 = Release|Any CPU + {ECEE5974-6A92-4FC5-B7D4-A08971EF3B56}.Release|x86.ActiveCfg = Release|Any CPU + {ECEE5974-6A92-4FC5-B7D4-A08971EF3B56}.Release|x86.Build.0 = Release|Any CPU + {A76AE26C-607F-4877-B7BD-E69814BBA8A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A76AE26C-607F-4877-B7BD-E69814BBA8A1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A76AE26C-607F-4877-B7BD-E69814BBA8A1}.Debug|x64.ActiveCfg = Debug|Any CPU + {A76AE26C-607F-4877-B7BD-E69814BBA8A1}.Debug|x64.Build.0 = Debug|Any CPU + {A76AE26C-607F-4877-B7BD-E69814BBA8A1}.Debug|x86.ActiveCfg = Debug|Any CPU + {A76AE26C-607F-4877-B7BD-E69814BBA8A1}.Debug|x86.Build.0 = Debug|Any CPU + {A76AE26C-607F-4877-B7BD-E69814BBA8A1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A76AE26C-607F-4877-B7BD-E69814BBA8A1}.Release|Any CPU.Build.0 = Release|Any CPU + {A76AE26C-607F-4877-B7BD-E69814BBA8A1}.Release|x64.ActiveCfg = Release|Any CPU + {A76AE26C-607F-4877-B7BD-E69814BBA8A1}.Release|x64.Build.0 = Release|Any CPU + {A76AE26C-607F-4877-B7BD-E69814BBA8A1}.Release|x86.ActiveCfg = Release|Any CPU + {A76AE26C-607F-4877-B7BD-E69814BBA8A1}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {57860CA2-0054-465E-BD1E-024FF8D81354} = {56555FB0-B513-49EF-9002-A5AF135EA090} @@ -679,5 +835,17 @@ Global {7BEA7878-B5BA-4480-BC56-2F7B836F64B9} = {56555FB0-B513-49EF-9002-A5AF135EA090} {38FFE1DF-4B49-40C1-9908-51860BCF2D3E} = {56555FB0-B513-49EF-9002-A5AF135EA090} {83C963FD-DC23-46E8-9545-F56197164810} = {56555FB0-B513-49EF-9002-A5AF135EA090} + {C852237E-6FE2-4507-953F-77FD72962445} = {56555FB0-B513-49EF-9002-A5AF135EA090} + {D89F9F5D-C56A-4412-AEC1-9AD018322387} = {56555FB0-B513-49EF-9002-A5AF135EA090} + {D2FF1F08-A167-4272-A0E9-4460A5D7468F} = {56555FB0-B513-49EF-9002-A5AF135EA090} + {66026C75-AC39-4F61-B53C-AE11FFCB3DB1} = {56555FB0-B513-49EF-9002-A5AF135EA090} + {D6206AD6-9E73-4BC0-B737-485F31648DDA} = {56555FB0-B513-49EF-9002-A5AF135EA090} + {E6AFBC85-C0F4-4A80-BC34-03982E3D658C} = {56555FB0-B513-49EF-9002-A5AF135EA090} + {B6B66F97-A22F-4A00-A770-4FF4136D8F8D} = {56555FB0-B513-49EF-9002-A5AF135EA090} + {F440743E-383A-45A7-93FC-CC0D81666B47} = {56555FB0-B513-49EF-9002-A5AF135EA090} + {9813755E-3759-4D95-9794-F213C4535129} = {56555FB0-B513-49EF-9002-A5AF135EA090} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4F4D9113-B761-4ACA-A622-94EE662BFFA9} EndGlobalSection EndGlobal diff --git a/Bettlesimulator/Bettlesimulator.csproj b/Bettlesimulator/Bettlesimulator.csproj new file mode 100644 index 00000000..2150e379 --- /dev/null +++ b/Bettlesimulator/Bettlesimulator.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/Bettlesimulator/Program.cs b/Bettlesimulator/Program.cs new file mode 100644 index 00000000..50f275d2 --- /dev/null +++ b/Bettlesimulator/Program.cs @@ -0,0 +1,51 @@ +namespace Cvicenie_BattleSimulator +{ + internal class Program + { + static void Main(string[] args) + { + Hero ourHero = new Hero(); + Monster monster1 = new Monster("Goblin", 150, 3); + Monster monster2 = new Monster("Ork", 200, 5); + Monster monster3 = new Monster("Dragon", 300, 10); + List cisla = new List(); + List monsters = new List(); + monsters.Add(monster1); + monsters.Add(monster2); + monsters.Add(monster3); + + + + while (true) + { + //Hero dostal utok od monstra + monster1.MonsterAttack(ourHero); + monster2.MonsterAttack(ourHero); + monster3.MonsterAttack(ourHero); + Console.WriteLine("HERO:HP " + ourHero.HP); + + //Monster dostal utok od hrdinu + bool wasAttack = ourHero.HeroAttack(monster1); + if (wasAttack) + { + { + Console.WriteLine("---Not enough energy to attack! Restoring energy..."); + Console.WriteLine("HERO:energy " + ourHero.Eng); + } + + if (ourHero.HP <= 0) + { + Console.WriteLine("Hero is dead!"); + break; + } + + if (monster1.HP <= 0) + { + Console.WriteLine("Monster is dead!"); + break; + } + } + } + } + } +} \ No newline at end of file diff --git a/Bettlesimulator/hero.cs b/Bettlesimulator/hero.cs new file mode 100644 index 00000000..278f073d --- /dev/null +++ b/Bettlesimulator/hero.cs @@ -0,0 +1,94 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using static Cvicenie_BattleSimulator.Monster; + +namespace Cvicenie_BattleSimulator +{ + internal class Hero + { + public string Name { get; set; } = "Gumkac"; + public int HP { get; set; } = 100; + public int DMG { get; set; } = 10; + + public int Eng { get; set; } = 100; + public int Armor { get; set; } = 15; + + public bool HeroAttack(Monster monster) + { + if (Eng - 20 >= 0) + { + Eng -= 20; + monster.HP -= this.DMG; + return true; + } + else + + { + Eng = Eng + 50; + return false; + } + } + public bool HeroAttack2(MonsterSpecial monster2) + { + if (Eng - 20 >= 0) + { + Eng -= 20; + monster2.HP -= this.DMG; + return true; + } + else + + { + Eng = Eng + 50; + return false; + } + } + public void TakeDamage(int damage) + { + int finalDamage = damage - Armor; + + if (finalDamage < 0) + finalDamage = 0; + + HP -= finalDamage; + } + + public bool HeroDMG(Monster monster) + { + if (Eng - 20 >= 0) + { + Eng -= 20; + monster.HP -= this.DMG; + return true; + } + else + { + Eng += 50; + return false; + } + } + + public bool HeroDMG2(MonsterSpecial monster2) + { + if (Eng - 20 >= 0) + { + Eng -= 20; + monster2.HP -= this.DMG; + return true; + } + else + { + Eng += 50; + return false; + } + } + + + + + + } +} \ No newline at end of file diff --git a/Bettlesimulator/monster.cs b/Bettlesimulator/monster.cs new file mode 100644 index 00000000..02e629ba --- /dev/null +++ b/Bettlesimulator/monster.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Cvicenie_BattleSimulator +{ + internal class Monster + { + + public string RaceType { get; set; } + public int HP { get; set; } + public int DMG { get; set; } + + public Monster(string raceType, int hP, int dMG) + { + RaceType = raceType; + HP = hP; + DMG = dMG; + } + + public void MonsterAttack(Hero hero) + { + hero.HP -= this.DMG; + } + + } +} \ No newline at end of file diff --git a/Bettlesimulator/monsterspecial.cs b/Bettlesimulator/monsterspecial.cs new file mode 100644 index 00000000..b8030b18 --- /dev/null +++ b/Bettlesimulator/monsterspecial.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Cvicenie_BattleSimulator +{ + internal class MonsterSpecial + { + public string RaceType { get; set; } + public int HP { get; set; } + public int DMG { get; set; } + + public MonsterSpecial(string raceType, int hp, int dmg) + { + RaceType = raceType; + HP = hp; + DMG = dmg; + } + + public void MonsterAttack(Hero hero) + { + hero.TakeDamage(this.DMG); + this.DMG += 1; + } + } + +} \ No newline at end of file diff --git a/ConsoleApp1/ConsoleApp1.csproj b/ConsoleApp1/ConsoleApp1.csproj new file mode 100644 index 00000000..2150e379 --- /dev/null +++ b/ConsoleApp1/ConsoleApp1.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/ConsoleApp1/Program.cs b/ConsoleApp1/Program.cs new file mode 100644 index 00000000..153a6f95 --- /dev/null +++ b/ConsoleApp1/Program.cs @@ -0,0 +1,171 @@ +using System.Diagnostics.CodeAnalysis; +using System.Globalization; + +namespace cvicenie_8._10_ +{ + internal class Program + { + static void Main(string[] args) + { + List numbers = new List(); + + + while (true) + { + string command = Console.ReadLine(); + if (command == "ADD") + { + string numberText = Console.ReadLine(); + int number = int.Parse(numberText); + numbers.Add(number); + } + + if (command == "DEL") + { + string numberText = Console.ReadLine(); + int number = int.Parse(numberText); + numbers.Remove(number); + + } + + if (command == "DELI") + { + string numberText = Console.ReadLine(); + int number = int.Parse(numberText); + + int MaxIndex = numbers.Count - 1; + if (number <= MaxIndex) + { + numbers.RemoveAt(number); + } + else + { + Console.WriteLine("zly index"); + } + + } + + if (command == "HAS") + { + string numberText = Console.ReadLine(); + int number = int.Parse(numberText); + bool Contains = numbers.Contains(number); + if (Contains) + { + Console.WriteLine("ANO"); + } + + else + { + Console.WriteLine("NIE"); + } + + } + + if (command == "LIST") + { + foreach (int number in numbers) + { + Console.WriteLine(number); + } + } + if (command == "COUNT") + + { + int sum = numbers.Sum(); + Console.WriteLine(sum); + } + + else if (command == "END") + { + break; + } + + } + + + string command = Console.ReadLine(); + switch (command) + { + case "ADD": + { + string numberText = Console.ReadLine(); + int number = int.Parse(numberText); + numbers.Add(number); + break; + } + case "DEL": + { + string numberText = Console.ReadLine(); + int number = int.Parse(numberText); + numbers.Remove(number); + break; + } + case "DELI": + { + string numberText = Console.ReadLine(); + int number = int.Parse(numberText); + + int MaxIndex = numbers.Count - 1; + if (number <= MaxIndex) + { + numbers.RemoveAt(number); + } + else + { + Console.WriteLine("zly index"); + } + + break; + } + case "HAS": + { + string numberText = Console.ReadLine(); + int number = int.Parse(numberText); + bool Contains = numbers.Contains(number); + if (Contains) + { + Console.WriteLine("ANO"); + } + + else + { + Console.WriteLine("NIE"); + } + + break; + } + case "LIST": + { + foreach (int number in numbers) + { + Console.WriteLine(number); + + } + break; + } + case "COUNT": + { + int sum = numbers.Sum(); + Console.WriteLine(sum); + } + } + + + + + + + } + + } +} + + + + + + + + + diff --git a/Cvicenie_cykly/Cvicenie_cykly.csproj b/Cvicenie_cykly/Cvicenie_cykly.csproj new file mode 100644 index 00000000..2150e379 --- /dev/null +++ b/Cvicenie_cykly/Cvicenie_cykly.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/Cvicenie_cykly/Program.cs b/Cvicenie_cykly/Program.cs new file mode 100644 index 00000000..108974cf --- /dev/null +++ b/Cvicenie_cykly/Program.cs @@ -0,0 +1,131 @@ +using System.Data; +using System.Threading.Channels; + +namespace Cvicenie_cykly +{ + internal class Program + { + static void Main(string[] args) + { + /* + Console.WriteLine("1"); + Console.WriteLine("2"); + Console.WriteLine("3"); + Console.WriteLine("4"); + Console.WriteLine("5"); + Console.WriteLine("6"); + Console.WriteLine("7"); + Console.WriteLine("8"); + Console.WriteLine("9"); + Console.WriteLine("10");*/ + /*for (int i = 100; i >= 0; i--) + { + Console.WriteLine(i); + } + */ + + /* + while (true) + { + string input = Console.ReadLine(); + + if (input == "okej") + { + Console.WriteLine("ahoj"); + } + else if (input == "exit") + { + break; + } + + + + + + while (true) + { + string input = Console.ReadLine(); + + if (input == "pozdrav") + { + Console.WriteLine("ahoj"); + } + else if (input == "exit") + { + break; + } + + + } + + + }*/ + + /* + while (true) + { + while (true) + { + string input = Console.ReadLine(); + + if (input == "exit") + { + break; + } + + Console.WriteLine("michal"); + + + + + string inputdva = Console.ReadLine(); + + + + if (inputdva == "exit2") + { + break; + } + + Console.WriteLine("igor"); + + + + } + + + + } + + */ + + Console.Write("znak "); + string znak = Console.ReadLine(); + + Console.Write("aky velky "); + int pocetRiadkov = int.Parse(Console.ReadLine()); + + for (int i = 1; i <= pocetRiadkov; i++) + { + string row = ""; + for (int j = 1; j <= i; j++) + { + row += znak; + } + Console.WriteLine(row); + + + + + + + + + + + + } + + } + } +} diff --git a/Cvicenie_idlefarmer/Cvicenie_idlefarmer.csproj b/Cvicenie_idlefarmer/Cvicenie_idlefarmer.csproj new file mode 100644 index 00000000..2150e379 --- /dev/null +++ b/Cvicenie_idlefarmer/Cvicenie_idlefarmer.csproj @@ -0,0 +1,10 @@ + + + + Exe + net8.0 + enable + enable + + + diff --git a/Cvicenie_idlefarmer/Idlefarmer.cs b/Cvicenie_idlefarmer/Idlefarmer.cs new file mode 100644 index 00000000..d1cdbcd5 --- /dev/null +++ b/Cvicenie_idlefarmer/Idlefarmer.cs @@ -0,0 +1,156 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlTypes; +using System.Drawing; +using System.Linq; +using System.Numerics; +using System.Security.Authentication.ExtendedProtection; +using System.Text; +using System.Threading.Channels; +using System.Threading.Tasks; +using System.Transactions; + +namespace Cvicenie_idlefarmer +{ + public class Idlefarmer + { + + public int plantprice { get; set; } = 5; + public int Money { get; set; } + public Random Randomgenerator { get; set; } = new Random(); + public int Day { get; set; } + public List Field { get; set; } =new List(); + public List storage { get; set; } = new List(); + + + public void startgame() + { + Console.WriteLine("Zacala sa hra"); + Plant cibula = new Plant ("cibula", 5, 10); + Plant pes = new Plant("pes", 40, 8); + Plant uhorka = new Plant("uhorka", 20, 5); + Field.Add(cibula); + Field.Add(pes); + Field.Add(uhorka); + + + while (true) + { + + + Day++; + foreach (Plant plant in Field) + { + plant.Timeinground++; + + + + } + foreach (Plant plant in Field) + { + Console.WriteLine(plant); + + + + } + Listharvest = new List(); + foreach (Plant plant in Field) + { + if (plant.Timeinground >= plant.Timeforharvest) + { + Console.WriteLine("rastlina nam vyrastla:"+plant); + harvest.Add(plant); + } + } + + foreach(Plant plant in harvest) + { + Field.Remove(plant); + storage.Add(plant); + } + Console.WriteLine("koniec dna" + Day); + Console.WriteLine("stav uctu" + Money + "$"); + Console.WriteLine("menu"); + Console.WriteLine("novyden=enter"); + Console.WriteLine("1 pridanie rastlinky" + "(" + plantprice +")"); + Console.WriteLine("2 cely storage"); + Console.WriteLine("predaj vsetko(3)"); + + + string input = Console.ReadLine(); + switch (input) + { + case "1": + if (Money < plantprice) + { + Console.WriteLine("si chudobny jak kkt maš iba: " + Money + "$"); + Console.ReadLine(); + break; + } + + + Money -= plantprice; + + Plant plant1 = new Plant("zelenina", Randomgenerator.Next(10, 15), Randomgenerator.Next(20, 30)); + Field.Add(plant1); + + plantprice++; + Console.WriteLine("kúpil si rastlinku, zostavajúce peniaze: " + Money + "$"); + Console.ReadLine(); + break; + case "2": + foreach (Plant plant in storage) + { + Console.WriteLine(plant); + } + Console.ReadLine(); /*stav += plant.Price;|pomoc chatgpt(prompt:ako to hodim do toho aby mi to case vypisal) */ + break; + /* Money += stav; + break;*/ + case "3": + int stav = 0; + foreach (Plant plant in storage) + { + stav += plant.Price; + } + + Money += stav * storage.Count; + storage.Clear(); + + Console.WriteLine("predal si storage"); + Console.WriteLine("Stav učtu:" + Money + "$" ); + Console.ReadLine(); + break; + + default: + break; + + } + + + + + + + + Console.Clear(); + + + + + + + } + + + + + + + + + + } + + } +} diff --git a/Cvicenie_idlefarmer/Plant.cs b/Cvicenie_idlefarmer/Plant.cs new file mode 100644 index 00000000..6da15963 --- /dev/null +++ b/Cvicenie_idlefarmer/Plant.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Cvicenie_idlefarmer +{ + public class Plant + { + private string v1; + private int v2; + private int v3; + + public string PlantType { get; set; } + public int Timeforharvest { get; set; } + public int Timeinground { get; set; } + public int Price { get; set; } + + public Plant(string plantType, int timeforharvest, int price) + { + PlantType = plantType; + Timeforharvest = timeforharvest; + + Price = price; + + + + } + + + + public override string ToString() + { + return $"{PlantType} {Timeinground}/{Timeforharvest}({Price}e)"; + { } + + + + + } + + + + } + +} diff --git a/Cvicenie_idlefarmer/Program.cs b/Cvicenie_idlefarmer/Program.cs new file mode 100644 index 00000000..1fb5906c --- /dev/null +++ b/Cvicenie_idlefarmer/Program.cs @@ -0,0 +1,16 @@ +namespace Cvicenie_idlefarmer +{ + internal class Program + { + static void Main(string[] args) + { + Idlefarmer hra = new Idlefarmer(); + hra.startgame(); + + + + + + } + } +} diff --git a/Cvicenie_minecraft Wpf/App.xaml b/Cvicenie_minecraft Wpf/App.xaml new file mode 100644 index 00000000..04dc4dfa --- /dev/null +++ b/Cvicenie_minecraft Wpf/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/Cvicenie_minecraft Wpf/App.xaml.cs b/Cvicenie_minecraft Wpf/App.xaml.cs new file mode 100644 index 00000000..cd847b54 --- /dev/null +++ b/Cvicenie_minecraft Wpf/App.xaml.cs @@ -0,0 +1,14 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace Cvicenie_minecraft_Wpf +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } + +} diff --git a/Cvicenie_minecraft Wpf/AssemblyInfo.cs b/Cvicenie_minecraft Wpf/AssemblyInfo.cs new file mode 100644 index 00000000..b0ec8275 --- /dev/null +++ b/Cvicenie_minecraft Wpf/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/Cvicenie_minecraft Wpf/Cvicenie_minecraft Wpf.csproj b/Cvicenie_minecraft Wpf/Cvicenie_minecraft Wpf.csproj new file mode 100644 index 00000000..2f4044d1 --- /dev/null +++ b/Cvicenie_minecraft Wpf/Cvicenie_minecraft Wpf.csproj @@ -0,0 +1,12 @@ + + + + WinExe + net8.0-windows + Cvicenie_minecraft_Wpf + enable + enable + true + + + diff --git a/Cvicenie_minecraft Wpf/EArmorPartName.cs b/Cvicenie_minecraft Wpf/EArmorPartName.cs new file mode 100644 index 00000000..6a2edbc6 --- /dev/null +++ b/Cvicenie_minecraft Wpf/EArmorPartName.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Cvicenie_minecraft_Wpf +{ + public enum EArmorPartName + { + Helmet,Chestplate,nohavice,Leg + + + } +} diff --git a/Cvicenie_minecraft Wpf/EArmorType.cs b/Cvicenie_minecraft Wpf/EArmorType.cs new file mode 100644 index 00000000..06c38f27 --- /dev/null +++ b/Cvicenie_minecraft Wpf/EArmorType.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Cvicenie_minecraft_Wpf +{ + public enum EArmorType + { + none,lether,chain,iron,gold,diamond + + + + } +} diff --git a/Cvicenie_minecraft Wpf/MainWindow.xaml b/Cvicenie_minecraft Wpf/MainWindow.xaml new file mode 100644 index 00000000..5a503068 --- /dev/null +++ b/Cvicenie_minecraft Wpf/MainWindow.xaml @@ -0,0 +1,77 @@ + + + + + diff --git a/Cvicenie_minecraft Wpf/MainWindow.xaml.cs b/Cvicenie_minecraft Wpf/MainWindow.xaml.cs new file mode 100644 index 00000000..ab1bc9b2 --- /dev/null +++ b/Cvicenie_minecraft Wpf/MainWindow.xaml.cs @@ -0,0 +1,206 @@ +using System.Text; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Cvicenie_minecraft_Wpf +{ + + public partial class MainWindow : Window + { + public string ImagePath { get; set; } = "C:\\Users\\Moskalm25\\Source\\Repos\\csharp\\Cvicenie_minecraft Wpf\\obrazky\\d8ebr67-ccb9b1ec-1d6e-4ffe-9552-9397c34a99c1 .png"; + + List Armors_Helm = new List(); + List ArmorParts_Body = new List(); + List ArmorParts_Pant = new List(); + List ArmorParts_Leg = new List(); + public armorpart Head { get; set; } + public armorpart Body { get; set; } + public armorpart Pant { get; set; } + public armorpart Leg { get; set; } + private void UpdateLabels() + { + var playerSet = new List(); + + if (Head != null) + playerSet.Add(Head); + if (Body != null) + playerSet.Add(Body); + if (Pant != null) + playerSet.Add(Pant); + if (Leg != null) + playerSet.Add(Leg); + + int totalArmor = playerSet.Sum(x => x.Armorpower); + + Label_ActualArmor.Content = totalArmor; + //PRepocitavanie a zapousivabnie do lablu + var groupedItems = playerSet.GroupBy(p => p.ArmorType, (key, g) => new { ArmorType = key, Items = g.ToList() }).ToList(); + var multiplaierValue = groupedItems.OrderByDescending(x => x.Items.Count).First().Items.Count; + Label_ArmorMultiplier.Content = multiplaierValue; + + var numberOfArmor = playerSet.Sum(x => x.Armorpower); + Label_ArmorPowerValue.Content = $"{numberOfArmor} (+{multiplaierValue * numberOfArmor})"; + } + public MainWindow() + { + InitializeComponent(); + + Armors_Helm.Add(new armorpart("Plesinka", 0, EArmorType.none, EArmorPartName.Helmet, 28, 29, 100, 90)); + Armors_Helm.Add(new armorpart("Helma bronzova", 1, EArmorType.lether, EArmorPartName.Helmet, 28, 29, 100, 90)); + Armors_Helm.Add(new armorpart("Helma retiazkova", 2, EArmorType.chain, EArmorPartName.Helmet, 177, 29, 100, 90)); + Armors_Helm.Add(new armorpart("Helma zelezna", 5, EArmorType.iron, EArmorPartName.Helmet, 338, 29, 100, 90)); + Armors_Helm.Add(new armorpart("Helma zlata", 10, EArmorType.gold, EArmorPartName.Helmet, 505, 29, 100, 90)); + Armors_Helm.Add(new armorpart("Helma diamantova", 20, EArmorType.diamond, EArmorPartName.Helmet, 659, 29, 100, 90)); + + combox_Helmpicker.ItemsSource = Armors_Helm; + + ArmorParts_Body.Add(new armorpart("Hola hrud", 0, EArmorType.none, EArmorPartName.Chestplate , 0, 0, 0, 0)); + ArmorParts_Body.Add(new armorpart("Body bronzove", 5, EArmorType.lether , EArmorPartName.Chestplate, 7, 136, 139, 130)); + ArmorParts_Body.Add(new armorpart("Body retiazkove", 10, EArmorType.chain, EArmorPartName.Chestplate, 159, 136, 139, 130)); + ArmorParts_Body.Add(new armorpart("Body zelezne", 15, EArmorType.iron, EArmorPartName.Chestplate, 321, 136, 139, 130)); + ArmorParts_Body.Add(new armorpart("Body zlate", 30, EArmorType.gold, EArmorPartName.Chestplate, 486, 136, 139, 130)); + ArmorParts_Body.Add(new armorpart("Body diamantove", 50, EArmorType.diamond, EArmorPartName.Chestplate, 639, 136, 139, 130)); + ComboBox_BodyPicker.ItemsSource = ArmorParts_Body; + + ArmorParts_Pant.Add(new armorpart("Trenky", 0, EArmorType.none, EArmorPartName.nohavice, 0, 0, 0, 0)); + ArmorParts_Pant.Add(new armorpart("Nohavice bronzove", 2, EArmorType.lether, EArmorPartName.nohavice, 26, 279, 100, 131)); + ArmorParts_Pant.Add(new armorpart("Nohavice retiazkove", 4, EArmorType.chain, EArmorPartName.nohavice, 179, 279, 100, 131)); + ArmorParts_Pant.Add(new armorpart("Nohavice zelezne", 8, EArmorType.iron, EArmorPartName.nohavice, 339, 279, 100, 131)); + ArmorParts_Pant.Add(new armorpart("Nohavice zlate", 15, EArmorType.gold, EArmorPartName.nohavice, 506, 279, 100, 131)); + ArmorParts_Pant.Add(new armorpart("Nohavice diamantove", 22, EArmorType.diamond, EArmorPartName.nohavice, 657, 279, 100, 131)); + ComboBox_PantPicker.ItemsSource = ArmorParts_Pant; + + ArmorParts_Leg.Add(new armorpart("Sandale", 0, EArmorType.none, EArmorPartName.Leg, 0, 0, 0, 0)); + ArmorParts_Leg.Add(new armorpart("Topanky bronzove", 2, EArmorType.lether, EArmorPartName.Leg, 2, 425, 140, 100)); + ArmorParts_Leg.Add(new armorpart("Topanky retiazkove", 4, EArmorType.chain, EArmorPartName.Leg, 159, 425, 140, 100)); + ArmorParts_Leg.Add(new armorpart("Topanky zelezne", 8, EArmorType.iron, EArmorPartName.Leg, 319, 425, 140, 100)); + ArmorParts_Leg.Add(new armorpart("Topanky zlate", 15, EArmorType.gold, EArmorPartName.Leg, 484, 425, 140, 100)); + ArmorParts_Leg.Add(new armorpart("Topanky diamantove", 22, EArmorType.diamond, EArmorPartName.Leg, 636, 425, 140, 100)); + ComboBox_LegPicker.ItemsSource = ArmorParts_Leg; + } + + private void combox_Helmpicker_SelectionChanged(object sender, SelectionChangedEventArgs e) + { + armorpart armorPart=(armorpart)combox_Helmpicker.SelectedItem as armorpart; + Head = armorPart; + if (armorPart.ArmorType != EArmorType.none) + { + var bitmap = new BitmapImage(); + bitmap.BeginInit(); + bitmap.UriSource = new Uri(ImagePath, UriKind.Absolute); + bitmap.CacheOption = BitmapCacheOption.OnLoad; // aby sa súbor neu lockol + bitmap.EndInit(); + bitmap.Freeze(); + + var cropped = new CroppedBitmap(bitmap, new Int32Rect(armorPart.XLeft, armorPart.YTop, armorPart.Width, armorPart.Height)); + cropped.Freeze(); + + Image_HelmetPlaceHolder.Source = cropped; + Image_HelmetPlaceHolder.Visibility = Visibility.Visible; + + } + + else + { + + Image_HelmetPlaceHolder.Visibility= Visibility.Collapsed; + } + + UpdateLabels(); + } + + private void ComboBox_BodyPicker_SelectionChanged(object sender, SelectionChangedEventArgs e) + { + armorpart armorPart = (armorpart)ComboBox_BodyPicker.SelectedItem as armorpart; + Body = armorPart; + if (armorPart.ArmorType != EArmorType.none) + { + var bitmap = new BitmapImage(); + bitmap.BeginInit(); + bitmap.UriSource = new Uri(ImagePath, UriKind.Absolute); + bitmap.CacheOption = BitmapCacheOption.OnLoad; // aby sa súbor neu lockol + bitmap.EndInit(); + bitmap.Freeze(); + + var cropped = new CroppedBitmap(bitmap, new Int32Rect(armorPart.XLeft, armorPart.YTop, armorPart.Width, armorPart.Height)); + cropped.Freeze(); + + Image_chestPlaceHolder.Source = cropped; + Image_chestPlaceHolder.Visibility = Visibility.Visible; + } + + else + { + + Image_chestPlaceHolder.Visibility = Visibility.Collapsed; + } + + UpdateLabels(); + } + + private void ComboBox_PantPicker_SelectionChanged(object sender, SelectionChangedEventArgs e) + { + armorpart armorPart = (armorpart)ComboBox_PantPicker.SelectedItem as armorpart; + Pant = armorPart; + if (armorPart.ArmorType != EArmorType.none) + { + var bitmap = new BitmapImage(); + bitmap.BeginInit(); + bitmap.UriSource = new Uri(ImagePath, UriKind.Absolute); + bitmap.CacheOption = BitmapCacheOption.OnLoad; // aby sa súbor neu lockol + bitmap.EndInit(); + bitmap.Freeze(); + + var cropped = new CroppedBitmap(bitmap, new Int32Rect(armorPart.XLeft, armorPart.YTop, armorPart.Width, armorPart.Height)); + cropped.Freeze(); + + Image_nohavicePlaceHolder.Source = cropped; + Image_nohavicePlaceHolder.Visibility = Visibility.Visible; + } + + else + { + + Image_nohavicePlaceHolder.Visibility = Visibility.Collapsed; + } + UpdateLabels(); + + } + + private void ComboBox_LegPicker_SelectionChanged(object sender, SelectionChangedEventArgs e) + { + armorpart armorPart = (armorpart)ComboBox_LegPicker.SelectedItem as armorpart; + Leg = armorPart; + if (armorPart.ArmorType != EArmorType.none) + { + var bitmap = new BitmapImage(); + bitmap.BeginInit(); + bitmap.UriSource = new Uri(ImagePath, UriKind.Absolute); + bitmap.CacheOption = BitmapCacheOption.OnLoad; // aby sa súbor neu lockol + bitmap.EndInit(); + bitmap.Freeze(); + + var cropped = new CroppedBitmap(bitmap, new Int32Rect(armorPart.XLeft, armorPart.YTop, armorPart.Width, armorPart.Height)); + cropped.Freeze(); + + Image_legPlaceHolder.Source = cropped; + Image_legPlaceHolder.Visibility = Visibility.Visible; + } + + else + { + + Image_legPlaceHolder.Visibility = Visibility.Collapsed; + } + UpdateLabels(); + + } + } +} \ No newline at end of file diff --git a/Cvicenie_minecraft Wpf/armorpart.cs b/Cvicenie_minecraft Wpf/armorpart.cs new file mode 100644 index 00000000..5944cc57 --- /dev/null +++ b/Cvicenie_minecraft Wpf/armorpart.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Controls; +using System.Xml.Linq; + +namespace Cvicenie_minecraft_Wpf +{ + public class armorpart + { + + public string DisplayName { get; set; } + public int Armorpower { get; set; } + + public EArmorType ArmorType { get; set; } + public EArmorPartName PartName { get; set; } + public int XLeft { get; set; } + public int YTop { get; set; } + public int Width { get; set; } + public int Height { get; set; } + + public armorpart(string displayName, int armorpower, EArmorType armorType, EArmorPartName partName, int xLeft, int yTop, int width, int height) + { + DisplayName = displayName; + Armorpower = armorpower; + ArmorType = armorType; + PartName = partName; + XLeft = xLeft; + YTop = yTop; + Width = width; + Height = height; + } + + public override string ToString() + { + return DisplayName; // or whatever property you want to show + } + + } +} diff --git a/Cvicenie_minecraft Wpf/obrazky/d8ebr67-ccb9b1ec-1d6e-4ffe-9552-9397c34a99c1 .png b/Cvicenie_minecraft Wpf/obrazky/d8ebr67-ccb9b1ec-1d6e-4ffe-9552-9397c34a99c1 .png new file mode 100644 index 00000000..4bd7028b Binary files /dev/null and b/Cvicenie_minecraft Wpf/obrazky/d8ebr67-ccb9b1ec-1d6e-4ffe-9552-9397c34a99c1 .png differ diff --git a/Cvicenie_pokemon/App.xaml b/Cvicenie_pokemon/App.xaml new file mode 100644 index 00000000..009ac322 --- /dev/null +++ b/Cvicenie_pokemon/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/Cvicenie_pokemon/App.xaml.cs b/Cvicenie_pokemon/App.xaml.cs new file mode 100644 index 00000000..0e9f5a9d --- /dev/null +++ b/Cvicenie_pokemon/App.xaml.cs @@ -0,0 +1,14 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace Cvicenie_pokemon +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } + +} diff --git a/Cvicenie_pokemon/AssemblyInfo.cs b/Cvicenie_pokemon/AssemblyInfo.cs new file mode 100644 index 00000000..b0ec8275 --- /dev/null +++ b/Cvicenie_pokemon/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/Cvicenie_pokemon/Cvicenie_pokemon.csproj b/Cvicenie_pokemon/Cvicenie_pokemon.csproj new file mode 100644 index 00000000..a4beecbc --- /dev/null +++ b/Cvicenie_pokemon/Cvicenie_pokemon.csproj @@ -0,0 +1,25 @@ + + + + WinExe + net8.0-windows + enable + enable + true + + + + + + + + + + Always + + + Always + + + + diff --git a/Cvicenie_pokemon/Hero.cs b/Cvicenie_pokemon/Hero.cs new file mode 100644 index 00000000..3c118a24 --- /dev/null +++ b/Cvicenie_pokemon/Hero.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Cvicenie_pokemon +{ + public class Hero + { + + + public int Helth { get; set; } + public int MaximumHelth { get; set; } + public int Demage { get; set; } + public int ActualEnergy { get; set; } + public int MaxEnergy { get; set; } + public Hero(int helth, int maximumHelth, int demage,int actualenergy, int maxenegry) + { + Helth = helth; + MaximumHelth = maximumHelth; + Demage = demage; + ActualEnergy = actualenergy; + MaxEnergy = maxenegry; + } + } +} diff --git a/Cvicenie_pokemon/MainWindow.xaml b/Cvicenie_pokemon/MainWindow.xaml new file mode 100644 index 00000000..d6ceafdf --- /dev/null +++ b/Cvicenie_pokemon/MainWindow.xaml @@ -0,0 +1,10 @@ + + + diff --git a/Cvicenie_pokemon/MainWindow.xaml.cs b/Cvicenie_pokemon/MainWindow.xaml.cs new file mode 100644 index 00000000..fcae98fc --- /dev/null +++ b/Cvicenie_pokemon/MainWindow.xaml.cs @@ -0,0 +1,35 @@ +using System.Text; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Cvicenie_pokemon +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + Hero myhero=new Hero(100,100,10,100,200); + Priserkabojimbojim myenemy = new Priserkabojimbojim(200, 200, 1 ); + + + Window_fight fight_window = new Window_fight( myhero, myenemy); + fight_window.Show(); + } + + + + + + } +} \ No newline at end of file diff --git a/Cvicenie_pokemon/Priserkabojimbojim.cs b/Cvicenie_pokemon/Priserkabojimbojim.cs new file mode 100644 index 00000000..56bd8f02 --- /dev/null +++ b/Cvicenie_pokemon/Priserkabojimbojim.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Cvicenie_pokemon +{ + public class Priserkabojimbojim + { + + public int Helth { get; set; } + public int MaximumHelth { get; set; } + public int Demage { get; set; } + + public Priserkabojimbojim(int helth , int maximumHelth, int demage ) + { + Helth = helth; + MaximumHelth = maximumHelth; + Demage = demage; + } + } +} diff --git a/Cvicenie_pokemon/Window_fight.xaml b/Cvicenie_pokemon/Window_fight.xaml new file mode 100644 index 00000000..14700c6f --- /dev/null +++ b/Cvicenie_pokemon/Window_fight.xaml @@ -0,0 +1,65 @@ + + + + + +