Merge branch 'multiplayer_view'

master
cldupland 6 years ago
commit 0f67a75c33

Binary file not shown.

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\NUnit.3.12.0\build\NUnit.props" Condition="Exists('..\packages\NUnit.3.12.0\build\NUnit.props')" />
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@ -27,13 +28,13 @@
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="nunit.framework"> <Reference Include="nunit.framework">
<HintPath>..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath> <HintPath>..\packages\NUnit.3.12.0\lib\net45\nunit.framework.dll</HintPath>
</Reference> </Reference>
<Reference Include="Xamarin.Essentials"> <Reference Include="Xamarin.Essentials">
<HintPath>..\..\..\Microsoft\Xamarin\NuGet\xamarin.essentials\1.2.0\lib\xamarinios10\Xamarin.Essentials.dll</HintPath> <HintPath>..\..\..\Microsoft\Xamarin\NuGet\xamarin.essentials\1.2.0\lib\xamarinios10\Xamarin.Essentials.dll</HintPath>
</Reference> </Reference>
<Reference Include="Xamarin.UITest"> <Reference Include="Xamarin.UITest">
<HintPath>..\packages\Xamarin.UITest.2.2.7\lib\net45\Xamarin.UITest.dll</HintPath> <HintPath>..\packages\Xamarin.UITest.3.0.3\lib\net45\Xamarin.UITest.dll</HintPath>
</Reference> </Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="NUnit" version="2.6.3" targetFramework="net472" /> <package id="NUnit" version="3.12.0" targetFramework="net472" />
<package id="Xamarin.UITest" version="2.2.7" targetFramework="net472" /> <package id="Xamarin.UITest" version="3.0.3" targetFramework="net472" />
</packages> </packages>

@ -1,11 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.uca.thegameextreme" android:installLocation="auto">
android:versionCode="1" android:versionName="1.0"
package="com.uca.thegameextreme"
android:installLocation="auto">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" /> <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="28" />
<application android:label="TheGameExtreme.Android" <application android:label="TheGameExtreme.Android" android:icon="@drawable/Apple"></application>
android:icon="@drawable/Apple"></application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest> </manifest>

@ -1,11 +1,11 @@
#pragma warning disable 1591 #pragma warning disable 1591
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// Ce code a été généré par un outil. // This code was generated by a tool.
// Version du runtime :4.0.30319.42000 // Runtime Version:4.0.30319.42000
// //
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si // Changes to this file may cause incorrect behavior and will be lost if
// le code est régénéré. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------

@ -52,9 +52,9 @@
<Reference Include="System.Numerics.Vectors" /> <Reference Include="System.Numerics.Vectors" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.2.0.709249" /> <PackageReference Include="Xamarin.Forms" Version="4.3.0.991211" />
<PackageReference Include="Xamarin.Android.Support.Core.Utils" Version="28.0.0.1" /> <PackageReference Include="Xamarin.Android.Support.Core.Utils" Version="28.0.0.3" />
<PackageReference Include="Xamarin.Essentials" Version="1.2.0" /> <PackageReference Include="Xamarin.Essentials" Version="1.3.1" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="MainActivity.cs" /> <Compile Include="MainActivity.cs" />

@ -130,8 +130,8 @@
<Reference Include="System.Numerics.Vectors" /> <Reference Include="System.Numerics.Vectors" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="4.2.0.709249" /> <PackageReference Include="Xamarin.Forms" Version="4.3.0.991211" />
<PackageReference Include="Xamarin.Essentials" Version="1.2.0" /> <PackageReference Include="Xamarin.Essentials" Version="1.3.1" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
<ItemGroup> <ItemGroup>

@ -1,57 +1,44 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// Ce code a été généré par un outil. // This code was generated by a tool.
// Version du runtime :4.0.30319.42000 // Runtime Version:4.0.30319.42000
// //
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si // Changes to this file may cause incorrect behavior and will be lost if
// le code est régénéré. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace TheGameExtreme { namespace TheGameExtreme {
using System; using System;
using System.Reflection;
/// <summary> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
/// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées. [System.Diagnostics.DebuggerNonUserCodeAttribute()]
/// </summary> [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
// Cette classe a été générée automatiquement par la classe StronglyTypedResourceBuilder
// à l'aide d'un outil, tel que ResGen ou Visual Studio.
// Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen
// avec l'option /str ou régénérez votre projet VS.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class AppRessource { internal class AppRessource {
private static global::System.Resources.ResourceManager resourceMan; private static System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture; private static System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal AppRessource() { internal AppRessource() {
} }
/// <summary> [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
/// Retourne l'instance ResourceManager mise en cache utilisée par cette classe. internal static System.Resources.ResourceManager ResourceManager {
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get { get {
if (object.ReferenceEquals(resourceMan, null)) { if (object.Equals(null, resourceMan)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TheGameExtreme.AppRessource", typeof(AppRessource).Assembly); System.Resources.ResourceManager temp = new System.Resources.ResourceManager("TheGameExtreme.AppRessource", typeof(AppRessource).Assembly);
resourceMan = temp; resourceMan = temp;
} }
return resourceMan; return resourceMan;
} }
} }
/// <summary> [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
/// Remplace la propriété CurrentUICulture du thread actuel pour toutes internal static System.Globalization.CultureInfo Culture {
/// les recherches de ressources à l'aide de cette classe de ressource fortement typée.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get { get {
return resourceCulture; return resourceCulture;
} }
@ -60,99 +47,66 @@ namespace TheGameExtreme {
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à Pile ascendante.
/// </summary>
internal static string StrAcendingStack { internal static string StrAcendingStack {
get { get {
return ResourceManager.GetString("StrAcendingStack", resourceCulture); return ResourceManager.GetString("StrAcendingStack", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à La pile choisie n&apos;existe pas!.
/// </summary>
internal static string StrCantGetStack { internal static string StrCantGetStack {
get { get {
return ResourceManager.GetString("StrCantGetStack", resourceCulture); return ResourceManager.GetString("StrCantGetStack", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à Vous n&apos;avez pas joué assez de carte! essaye encore.
/// </summary>
internal static string StrCardPlayedLessThanTwo { internal static string StrCardPlayedLessThanTwo {
get { get {
return ResourceManager.GetString("StrCardPlayedLessThanTwo", resourceCulture); return ResourceManager.GetString("StrCardPlayedLessThanTwo", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à Veuillez selectionner une carte à placer sur une pile.
/// </summary>
internal static string StrChooseCardToPlay { internal static string StrChooseCardToPlay {
get { get {
return ResourceManager.GetString("StrChooseCardToPlay", resourceCulture); return ResourceManager.GetString("StrChooseCardToPlay", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à Selectionner la pile sur laquelle vous souhaitez poser la carte.
/// </summary>
internal static string StrChooseStack { internal static string StrChooseStack {
get { get {
return ResourceManager.GetString("StrChooseStack", resourceCulture); return ResourceManager.GetString("StrChooseStack", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à Pile Descendante.
/// </summary>
internal static string StrDownStack { internal static string StrDownStack {
get { get {
return ResourceManager.GetString("StrDownStack", resourceCulture); return ResourceManager.GetString("StrDownStack", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à Le jeu est fini! Veuillez lancer une nouvelle partie!.
/// </summary>
internal static string StrEndOfGame { internal static string StrEndOfGame {
get { get {
return ResourceManager.GetString("StrEndOfGame", resourceCulture); return ResourceManager.GetString("StrEndOfGame", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à Fin de tour.
/// </summary>
internal static string StrEndTurn { internal static string StrEndTurn {
get { get {
return ResourceManager.GetString("StrEndTurn", resourceCulture); return ResourceManager.GetString("StrEndTurn", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à Le jeu est terminé! Désolé, vous avez perdu... Essayez encore!.
/// </summary>
internal static string StrLose { internal static string StrLose {
get { get {
return ResourceManager.GetString("StrLose", resourceCulture); return ResourceManager.GetString("StrLose", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à Le jeu est terminé! Désolé, vous avez perdu... Vous deviez jouer trois cartes à cause de l&apos;effet \&quot;Trois cartes joué\&quot; hors votre jeu ne permet pas d&apos;en jouer autant! Essayez encore!.
/// </summary>
internal static string StrLose3CardEffect { internal static string StrLose3CardEffect {
get { get {
return ResourceManager.GetString("StrLose3CardEffect", resourceCulture); return ResourceManager.GetString("StrLose3CardEffect", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à Le joueur n&apos;a plus de carte dans sa main.
/// </summary>
internal static string StrNoMoreCardOnHand { internal static string StrNoMoreCardOnHand {
get { get {
return ResourceManager.GetString("StrNoMoreCardOnHand", resourceCulture); return ResourceManager.GetString("StrNoMoreCardOnHand", resourceCulture);
@ -187,22 +141,22 @@ namespace TheGameExtreme {
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à Le jeu est terminé!\n Bravo vous avez gagné!.
/// </summary>
internal static string StrWin { internal static string StrWin {
get { get {
return ResourceManager.GetString("StrWin", resourceCulture); return ResourceManager.GetString("StrWin", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à La carte ne rentre pas dans la pile sectionné!.
/// </summary>
internal static string StrWrongStack { internal static string StrWrongStack {
get { get {
return ResourceManager.GetString("StrWrongStack", resourceCulture); return ResourceManager.GetString("StrWrongStack", resourceCulture);
} }
} }
internal static string StrPlayerSelection {
get {
return ResourceManager.GetString("StrPlayerSelection", resourceCulture);
}
}
} }
} }

@ -0,0 +1,165 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
namespace TheGameExtreme {
using System;
using System.Reflection;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class AppRessource {
private static System.Resources.ResourceManager resourceMan;
private static System.Globalization.CultureInfo resourceCulture;
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal AppRessource() {
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
internal static System.Resources.ResourceManager ResourceManager {
get {
if (object.Equals(null, resourceMan)) {
System.Resources.ResourceManager temp = new System.Resources.ResourceManager("TheGameExtreme.AppRessource", typeof(AppRessource).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
internal static System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
internal static string StrAcendingStack {
get {
return ResourceManager.GetString("StrAcendingStack", resourceCulture);
}
}
internal static string StrCantGetStack {
get {
return ResourceManager.GetString("StrCantGetStack", resourceCulture);
}
}
internal static string StrCardPlayedLessThanTwo {
get {
return ResourceManager.GetString("StrCardPlayedLessThanTwo", resourceCulture);
}
}
internal static string StrChooseCardToPlay {
get {
return ResourceManager.GetString("StrChooseCardToPlay", resourceCulture);
}
}
internal static string StrChooseStack {
get {
return ResourceManager.GetString("StrChooseStack", resourceCulture);
}
}
internal static string StrDownStack {
get {
return ResourceManager.GetString("StrDownStack", resourceCulture);
}
}
internal static string StrEndOfGame {
get {
return ResourceManager.GetString("StrEndOfGame", resourceCulture);
}
}
internal static string StrEndTurn {
get {
return ResourceManager.GetString("StrEndTurn", resourceCulture);
}
}
internal static string StrLose {
get {
return ResourceManager.GetString("StrLose", resourceCulture);
}
}
internal static string StrLose3CardEffect {
get {
return ResourceManager.GetString("StrLose3CardEffect", resourceCulture);
}
}
internal static string StrNoMoreCardOnHand {
get {
return ResourceManager.GetString("StrNoMoreCardOnHand", resourceCulture);
}
}
<<<<<<< HEAD
=======
/// <summary>
/// Recherche une chaîne localisée semblable à -L&apos;objectif est de battre le jeu !
///
///-99 cartes numérotés de 2 à 99.
///
///-4 piles sont à votre disposition, deux ascendantes et deux descendantes.
///
///-L&apos;objectif est de pourvoir poser toute les cartes de la pioches sur les différentes piles à votre disposition.
///
///-Si vous arrivé a vider toute la pioche et de poser tout les cartes sur les piles, vous gagné, sinon vous perdez.
///
///-Quelques suprise pourrait aussi vous surprendre..
/// </summary>
internal static string StrRules {
get {
return ResourceManager.GetString("StrRules", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à Désolé, vous n&apos;avez pas recouvert la tête de mort... Réessayez ;).
/// </summary>
>>>>>>> master
internal static string StrSkullEffect {
get {
return ResourceManager.GetString("StrSkullEffect", resourceCulture);
}
}
internal static string StrWin {
get {
return ResourceManager.GetString("StrWin", resourceCulture);
}
}
internal static string StrWrongStack {
get {
return ResourceManager.GetString("StrWrongStack", resourceCulture);
}
}
internal static string StrPlayerSelection {
get {
return ResourceManager.GetString("StrPlayerSelection", resourceCulture);
}
}
}
}

@ -175,6 +175,9 @@
<value>Le jeu est terminé!\n Bravo vous avez gagné!</value> <value>Le jeu est terminé!\n Bravo vous avez gagné!</value>
</data> </data>
<data name="StrWrongStack" xml:space="preserve"> <data name="StrWrongStack" xml:space="preserve">
<value>La carte ne rentre pas dans la pile sectionné!</value> <value>La carte ne rentre pas dans la pile sectionnée!</value>
</data>
<data name="StrPlayerSelection" xml:space="preserve">
<value>Veuillez choisir un nombre de joueur et leur(s) nom(s)</value>
</data> </data>
</root> </root>

@ -1,57 +1,44 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// Ce code a été généré par un outil. // This code was generated by a tool.
// Version du runtime :4.0.30319.42000 // Runtime Version:4.0.30319.42000
// //
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si // Changes to this file may cause incorrect behavior and will be lost if
// le code est régénéré. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace TheGameExtreme { namespace TheGameExtreme {
using System; using System;
using System.Reflection;
/// <summary> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
/// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées. [System.Diagnostics.DebuggerNonUserCodeAttribute()]
/// </summary> [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
// Cette classe a été générée automatiquement par la classe StronglyTypedResourceBuilder
// à l'aide d'un outil, tel que ResGen ou Visual Studio.
// Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen
// avec l'option /str ou régénérez votre projet VS.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class AppRessources_br { internal class AppRessources_br {
private static global::System.Resources.ResourceManager resourceMan; private static System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture; private static System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal AppRessources_br() { internal AppRessources_br() {
} }
/// <summary> [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
/// Retourne l'instance ResourceManager mise en cache utilisée par cette classe. internal static System.Resources.ResourceManager ResourceManager {
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get { get {
if (object.ReferenceEquals(resourceMan, null)) { if (object.Equals(null, resourceMan)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TheGameExtreme.AppRessources-br", typeof(AppRessources_br).Assembly); System.Resources.ResourceManager temp = new System.Resources.ResourceManager("TheGameExtreme.AppRessources-br", typeof(AppRessources_br).Assembly);
resourceMan = temp; resourceMan = temp;
} }
return resourceMan; return resourceMan;
} }
} }
/// <summary> [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
/// Remplace la propriété CurrentUICulture du thread actuel pour toutes internal static System.Globalization.CultureInfo Culture {
/// les recherches de ressources à l'aide de cette classe de ressource fortement typée.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get { get {
return resourceCulture; return resourceCulture;
} }
@ -60,126 +47,84 @@ namespace TheGameExtreme {
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à rising stack.
/// </summary>
internal static string StrAcendingStack { internal static string StrAcendingStack {
get { get {
return ResourceManager.GetString("StrAcendingStack", resourceCulture); return ResourceManager.GetString("StrAcendingStack", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à the chosen pile does not exist.
/// </summary>
internal static string StrCantGetStack { internal static string StrCantGetStack {
get { get {
return ResourceManager.GetString("StrCantGetStack", resourceCulture); return ResourceManager.GetString("StrCantGetStack", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à You have not played enough cards!.
/// </summary>
internal static string StrCardPlayedLessThanTwo { internal static string StrCardPlayedLessThanTwo {
get { get {
return ResourceManager.GetString("StrCardPlayedLessThanTwo", resourceCulture); return ResourceManager.GetString("StrCardPlayedLessThanTwo", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à Please select a card to place on a stack.
/// </summary>
internal static string StrChooseCardToPlay { internal static string StrChooseCardToPlay {
get { get {
return ResourceManager.GetString("StrChooseCardToPlay", resourceCulture); return ResourceManager.GetString("StrChooseCardToPlay", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à Select the stack on which you want to put the card.
/// </summary>
internal static string StrChooseStack { internal static string StrChooseStack {
get { get {
return ResourceManager.GetString("StrChooseStack", resourceCulture); return ResourceManager.GetString("StrChooseStack", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à Down stack.
/// </summary>
internal static string StrDownStack { internal static string StrDownStack {
get { get {
return ResourceManager.GetString("StrDownStack", resourceCulture); return ResourceManager.GetString("StrDownStack", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à End of turn.
/// </summary>
internal static string StrEndTurn { internal static string StrEndTurn {
get { get {
return ResourceManager.GetString("StrEndTurn", resourceCulture); return ResourceManager.GetString("StrEndTurn", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à .
/// </summary>
internal static string String1 { internal static string String1 {
get { get {
return ResourceManager.GetString("String1", resourceCulture); return ResourceManager.GetString("String1", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à The game is over! Sorry, you lost ... Try again!.
/// </summary>
internal static string StrLose { internal static string StrLose {
get { get {
return ResourceManager.GetString("StrLose", resourceCulture); return ResourceManager.GetString("StrLose", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à The game is over! Sorry, you lost ... You had to play three cards because of the effect \ &quot;Three cards played \&quot; off your game does not play as much! Try again!.
/// </summary>
internal static string StrLose3CardEffect { internal static string StrLose3CardEffect {
get { get {
return ResourceManager.GetString("StrLose3CardEffect", resourceCulture); return ResourceManager.GetString("StrLose3CardEffect", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à The player has no more cards in his hand.
/// </summary>
internal static string StrNoMoreCardOnHand { internal static string StrNoMoreCardOnHand {
get { get {
return ResourceManager.GetString("StrNoMoreCardOnHand", resourceCulture); return ResourceManager.GetString("StrNoMoreCardOnHand", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à Sorry, you did not cover the skull ... Try again;).
/// </summary>
internal static string StrSkullEffect { internal static string StrSkullEffect {
get { get {
return ResourceManager.GetString("StrSkullEffect", resourceCulture); return ResourceManager.GetString("StrSkullEffect", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à The game is over! Well done you won!.
/// </summary>
internal static string StrWin { internal static string StrWin {
get { get {
return ResourceManager.GetString("StrWin", resourceCulture); return ResourceManager.GetString("StrWin", resourceCulture);
} }
} }
/// <summary>
/// Recherche une chaîne localisée semblable à The card does not fit in the selected stack!.
/// </summary>
internal static string StrWrongStack { internal static string StrWrongStack {
get { get {
return ResourceManager.GetString("StrWrongStack", resourceCulture); return ResourceManager.GetString("StrWrongStack", resourceCulture);

@ -3,6 +3,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework> <TargetFramework>netstandard2.0</TargetFramework>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly> <ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<SynchReleaseVersion>false</SynchReleaseVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
@ -24,6 +25,7 @@
<Compile Remove="model\effect\StopCom.cs" /> <Compile Remove="model\effect\StopCom.cs" />
<Compile Remove="model\manager.cs" /> <Compile Remove="model\manager.cs" />
<Compile Remove="model\manager\GameManagerSolo.cs" /> <Compile Remove="model\manager\GameManagerSolo.cs" />
<Compile Remove="view\AppRessources-br.Designer.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Remove="AppRessources.config" /> <None Remove="AppRessources.config" />
@ -50,14 +52,12 @@
</EmbeddedResource> </EmbeddedResource>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Update="AppRessource.Designer.cs"> <Compile Condition=" '$(EnableDefaultCompileItems)' == 'true' " Update="AppRessource.Designer.cs">
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DependentUpon>AppRessource.resx</DependentUpon> <DependentUpon>AppRessource.resx</DependentUpon>
</Compile> </Compile>
<Compile Update="AppRessources-br.Designer.cs"> <Compile Update="AppRessources-br.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>AppRessources-br.resx</DependentUpon> <DependentUpon>AppRessources-br.resx</DependentUpon>
</Compile> </Compile>
</ItemGroup> </ItemGroup>

@ -0,0 +1,74 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<SynchReleaseVersion>false</SynchReleaseVersion>
</PropertyGroup>
<ItemGroup>
<<<<<<< HEAD
<PackageReference Include="Xamarin.Forms" Version="4.3.0.991211" />
=======
<PackageReference Include="Xamarin.Forms" Version="4.3.0.947036" />
>>>>>>> master
<PackageReference Include="Xamarin.Essentials" Version="1.3.1" />
</ItemGroup>
<ItemGroup>
<Folder Include="model\event\" />
<Folder Include="viewmodel\" />
<Folder Include="model\card\" />
<Folder Include="model\deck\" />
<Folder Include="model\Card\rapidCard\" />
<Folder Include="model\gameActions\" />
<Folder Include="model\gameActions\extreme\" />
<Folder Include="model\gameActions\classic\" />
</ItemGroup>
<ItemGroup>
<Compile Remove="model\effect\StopColm.cs" />
<Compile Remove="model\effect\StopCom.cs" />
<Compile Remove="model\manager.cs" />
<Compile Remove="model\manager\GameManagerSolo.cs" />
<Compile Remove="view\AppRessources-br.Designer.cs" />
</ItemGroup>
<ItemGroup>
<None Remove="AppRessources.config" />
<None Remove="view\Image\thegame.jpg" />
<None Remove="view\MultiPlayerMode.xaml" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="view\Image\thegame.jpg" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Rules.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
<EmbeddedResource Condition=" '$(EnableDefaultEmbeddedResourceItems)' == 'true' " Update="AppRessource.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>AppRessource.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Condition=" '$(EnableDefaultEmbeddedResourceItems)' == 'true' " Update="AppRessources-br.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>AppRessources-br.Designer.cs</LastGenOutput>
</EmbeddedResource>
<<<<<<< HEAD
=======
<EmbeddedResource Update="DictionnaireBGCBLACK.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
<EmbeddedResource Update="DictionnaireBGCWhite.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource>
>>>>>>> master
</ItemGroup>
<ItemGroup>
<Compile Condition=" '$(EnableDefaultCompileItems)' == 'true' " Update="AppRessource.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>AppRessource.resx</DependentUpon>
</Compile>
<Compile Update="AppRessources-br.Designer.cs">
<DependentUpon>AppRessources-br.resx</DependentUpon>
</Compile>
</ItemGroup>
</Project>

@ -1,9 +1,8 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using TheGameExtreme.model;
using TheGameExtreme.model.gameActions.classic; using TheGameExtreme.model.gameActions.classic;
namespace TheGameExtreme namespace TheGameExtreme.model
{ {
public class Parametreur public class Parametreur
{ {

@ -3,7 +3,6 @@ using System.Collections.Generic;
using TheGameExtreme.model.card; using TheGameExtreme.model.card;
using TheGameExtreme.model.deck; using TheGameExtreme.model.deck;
using TheGameExtreme.model.@event; using TheGameExtreme.model.@event;
using TheGameExtreme.model.gameActions;
namespace TheGameExtreme.model.gameActions.classic namespace TheGameExtreme.model.gameActions.classic
{ {
@ -12,10 +11,10 @@ namespace TheGameExtreme.model.gameActions.classic
protected List<GameAction> gameActions; protected List<GameAction> gameActions;
protected Piles piles; protected Piles piles;
protected int nbCardAtBeginOfTurn = 7; public int NbCardAtBeginOfTurn { get; set; }
protected Deck deck; protected Deck deck;
private int nbMaxCard; protected int nbMaxCard;
public String Message { get; set; } public string Message { get; set; }
#region #region
@ -72,12 +71,15 @@ namespace TheGameExtreme.model.gameActions.classic
{ {
case 1: case 1:
nbMaxCard = 8; nbMaxCard = 8;
NbCardAtBeginOfTurn = 8;
break; break;
case 2: case 2:
nbMaxCard = 7; nbMaxCard = 7;
NbCardAtBeginOfTurn = 7;
break; break;
default: default:
nbMaxCard = 6; nbMaxCard = 6;
NbCardAtBeginOfTurn = 6;
break; break;
} }
} }
@ -117,10 +119,9 @@ namespace TheGameExtreme.model.gameActions.classic
public bool endTurn(List<Card> currentHand, List<Card> CurrentCardPlayed, Player player) public bool endTurn(List<Card> currentHand, List<Card> CurrentCardPlayed, Player player)
{ {
Message = null; Message = null;
if (((TerminerSonTour)gameActions[2]).end(currentHand, nbCardAtBeginOfTurn, CurrentCardPlayed)) if (((TerminerSonTour)gameActions[2]).end(currentHand, NbCardAtBeginOfTurn, CurrentCardPlayed))
{ {
pioche(currentHand, player); pioche(currentHand, player);
nbCardAtBeginOfTurn = currentHand.Count;
CurrentCardPlayed.Clear(); CurrentCardPlayed.Clear();
OnPlayerChanged(null); OnPlayerChanged(null);

@ -4,7 +4,6 @@ using System.ComponentModel;
using TheGameExtreme.model.card; using TheGameExtreme.model.card;
using TheGameExtreme.model.@event; using TheGameExtreme.model.@event;
using TheGameExtreme.model.gameActions; using TheGameExtreme.model.gameActions;
using TheGameExtreme.model.gameActions.classic;
namespace TheGameExtreme.model.manager namespace TheGameExtreme.model.manager
{ {
@ -13,7 +12,7 @@ namespace TheGameExtreme.model.manager
/* GameMaster implémente un mode de jeu (classe fille de gameMode qui connait les actions a effectué en fonction du mode de jeu */ /* GameMaster implémente un mode de jeu (classe fille de gameMode qui connait les actions a effectué en fonction du mode de jeu */
protected Parametreur preparateur; protected Parametreur parametreur;
public Piles ListOrderedStacks { get; set; } public Piles ListOrderedStacks { get; set; }
protected List<Card> CurrentCardPlayed = new List<Card>(); protected List<Card> CurrentCardPlayed = new List<Card>();
public String EndMessage { get; set; } public String EndMessage { get; set; }
@ -47,12 +46,13 @@ namespace TheGameExtreme.model.manager
protected internal void OnPlayerChanged(object source, PlayerChangedEventArgs args) protected internal void OnPlayerChanged(object source, PlayerChangedEventArgs args)
{ {
currentIndexPlayer += 1; currentIndexPlayer += 1;
if (currentIndexPlayer == preparateur.players.Count) if (currentIndexPlayer == parametreur.players.Count)
{ {
currentIndexPlayer = 0; currentIndexPlayer = 0;
} }
CurrentHand = preparateur.players[currentIndexPlayer].getCardList(); CurrentHand = parametreur.players[currentIndexPlayer].getCardList();
PlayerChanged?.Invoke(this, new PlayerChangedEventArgs(CurrentHand, preparateur.players[currentIndexPlayer].Pseudo)); PlayerChanged?.Invoke(this, new PlayerChangedEventArgs(CurrentHand, parametreur.players[currentIndexPlayer].Pseudo));
parametreur.GameMode.NbCardAtBeginOfTurn = CurrentHand.Count;
} }
#endregion #endregion
@ -61,7 +61,7 @@ namespace TheGameExtreme.model.manager
protected GameManager(Parametreur parametreur) protected GameManager(Parametreur parametreur)
{ {
this.preparateur = parametreur; this.parametreur = parametreur;
parametreur.Prepare(); parametreur.Prepare();
@ -76,18 +76,18 @@ namespace TheGameExtreme.model.manager
public void joue(int valueCard, int orderedStackSelected) public void joue(int valueCard, int orderedStackSelected)
{ {
preparateur.GameMode.playCard(valueCard, currentHand, orderedStackSelected, preparateur.players[currentIndexPlayer], CurrentCardPlayed); // Mettre le joueur actif parametreur.GameMode.playCard(valueCard, currentHand, orderedStackSelected, parametreur.players[currentIndexPlayer], CurrentCardPlayed); // Mettre le joueur actif
EndMessage = preparateur.GameMode.Message; EndMessage = parametreur.GameMode.Message;
} }
public bool endTurn() public bool endTurn()
{ {
if(preparateur.GameMode.endTurn(currentHand, CurrentCardPlayed, preparateur.players[currentIndexPlayer])) if(parametreur.GameMode.endTurn(currentHand, CurrentCardPlayed, parametreur.players[currentIndexPlayer]))
{ {
EndMessage = preparateur.GameMode.Message; EndMessage = parametreur.GameMode.Message;
if (isEndGame()) if (isEndGame())
{ {
EndMessage = preparateur.GameMode.Message; EndMessage = parametreur.GameMode.Message;
return true; return true;
} }
else else
@ -103,7 +103,7 @@ namespace TheGameExtreme.model.manager
private bool isEndGame() private bool isEndGame()
{ {
return preparateur.GameMode.isEndGame(currentHand); return parametreur.GameMode.isEndGame(currentHand);
} }

@ -0,0 +1,189 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.42000
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le code est régénéré.
// </auto-generated>
//------------------------------------------------------------------------------
namespace TheGameExtreme {
using System;
/// <summary>
/// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées.
/// </summary>
// Cette classe a été générée automatiquement par la classe StronglyTypedResourceBuilder
// à l'aide d'un outil, tel que ResGen ou Visual Studio.
// Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen
// avec l'option /str ou régénérez votre projet VS.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class AppRessources_br {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal AppRessources_br() {
}
/// <summary>
/// Retourne l'instance ResourceManager mise en cache utilisée par cette classe.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TheGameExtreme.AppRessources-br", typeof(AppRessources_br).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Remplace la propriété CurrentUICulture du thread actuel pour toutes
/// les recherches de ressources à l'aide de cette classe de ressource fortement typée.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à rising stack.
/// </summary>
internal static string StrAcendingStack {
get {
return ResourceManager.GetString("StrAcendingStack", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à the chosen pile does not exist.
/// </summary>
internal static string StrCantGetStack {
get {
return ResourceManager.GetString("StrCantGetStack", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à You have not played enough cards!.
/// </summary>
internal static string StrCardPlayedLessThanTwo {
get {
return ResourceManager.GetString("StrCardPlayedLessThanTwo", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à Please select a card to place on a stack.
/// </summary>
internal static string StrChooseCardToPlay {
get {
return ResourceManager.GetString("StrChooseCardToPlay", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à Select the stack on which you want to put the card.
/// </summary>
internal static string StrChooseStack {
get {
return ResourceManager.GetString("StrChooseStack", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à Down stack.
/// </summary>
internal static string StrDownStack {
get {
return ResourceManager.GetString("StrDownStack", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à End of turn.
/// </summary>
internal static string StrEndTurn {
get {
return ResourceManager.GetString("StrEndTurn", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à .
/// </summary>
internal static string String1 {
get {
return ResourceManager.GetString("String1", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à The game is over! Sorry, you lost ... Try again!.
/// </summary>
internal static string StrLose {
get {
return ResourceManager.GetString("StrLose", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à The game is over! Sorry, you lost ... You had to play three cards because of the effect \ &quot;Three cards played \&quot; off your game does not play as much! Try again!.
/// </summary>
internal static string StrLose3CardEffect {
get {
return ResourceManager.GetString("StrLose3CardEffect", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à The player has no more cards in his hand.
/// </summary>
internal static string StrNoMoreCardOnHand {
get {
return ResourceManager.GetString("StrNoMoreCardOnHand", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à Sorry, you did not cover the skull ... Try again;).
/// </summary>
internal static string StrSkullEffect {
get {
return ResourceManager.GetString("StrSkullEffect", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à The game is over! Well done you won!.
/// </summary>
internal static string StrWin {
get {
return ResourceManager.GetString("StrWin", resourceCulture);
}
}
/// <summary>
/// Recherche une chaîne localisée semblable à The card does not fit in the selected stack!.
/// </summary>
internal static string StrWrongStack {
get {
return ResourceManager.GetString("StrWrongStack", resourceCulture);
}
}
}
}

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
BackgroundColor="{DynamicResource BlackColor}"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TheGameExtreme.view.GamePreparationPage">
<Grid
Margin="5,5,5,5">
<Grid.RowDefinitions>
<RowDefinition Height="10*" />
<RowDefinition Height="25*" />
<RowDefinition Height="55*" />
<RowDefinition Height="10*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50*" />
<ColumnDefinition Width="50*" />
</Grid.ColumnDefinitions>
<StackLayout
Grid.Row="0"
Grid.Column="0">
<ImageButton Source="ArrowSettingsBack.png"
VerticalOptions="Start"
HorizontalOptions="StartAndExpand"
HeightRequest="40"
WidthRequest="50"
Clicked="Back"
BackgroundColor="Transparent"
Margin="10,0,0,0"/>
</StackLayout>
<StackLayout
Grid.Row="1"
Grid.Column="0"
Grid.ColumnSpan="1">
<Label x:Name="Instruction"/>
</StackLayout>
<StackLayout
Grid.Row="2"
Grid.Column="0">
</StackLayout>
<StackLayout
Grid.Row="2"
Grid.Column="1">
</StackLayout>
<StackLayout
Grid.Row="3"
Grid.Column="0"
Grid.ColumnSpan="1">
<Button
Text="Play"
Clicked="Play"/>
</StackLayout>
</Grid>
</ContentPage>

@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using Xamarin.Forms;
namespace TheGameExtreme.view
{
public partial class GamePreparationPage : ContentPage
{
private string instructionText;
public string InstructionText
{
get { return instructionText; }
set
{
instructionText = value;
OnPropertyChanged("InstructionText");
}
}
public GamePreparationPage()
{
InitializeComponent();
NavigationPage.SetHasNavigationBar(this, false);
Instruction.SetBinding(Label.TextProperty, new Binding("InstructionText", source: this));
InstructionText = AppRessource.StrPlayerSelection;
}
private async void Back(object sender, EventArgs e)
{
await Navigation.PopAsync();
}
private async void Play(object sender, EventArgs args)
{
await Navigation.PushAsync(new MainPage());
}
}
}

@ -15,7 +15,7 @@ namespace TheGameExtreme.view
} }
private async void OpenGame(object sender, EventArgs args) private async void OpenGame(object sender, EventArgs args)
{ {
await Navigation.PushAsync(new MainPage()); await Navigation.PushAsync(new GamePreparationPage());
} }
private async void OpenMultiPlayerMode(object sender, EventArgs args) private async void OpenMultiPlayerMode(object sender, EventArgs args)

@ -8,85 +8,101 @@
mc:Ignorable="d" mc:Ignorable="d"
x:Class="TheGameExtreme.view.MainPage"> x:Class="TheGameExtreme.view.MainPage">
<ScrollView <StackLayout
Orientation="Vertical"> Margin="5,5,5,5">
<StackLayout> <StackLayout>
<ImageButton Source="ArrowSettingsBack.png"
VerticalOptions="Start"
HorizontalOptions="StartAndExpand"
HeightRequest="40"
WidthRequest="50"
Clicked="Back"
BackgroundColor="Transparent"
Margin="10,0,0,0"/>
</StackLayout>
<ScrollView
Orientation="Vertical">
<StackLayout> <StackLayout>
<StackLayout
Orientation="Vertical" <StackLayout>
Margin="10,20,10,20">
<Label x:Name="pseudo" Text="Pseudo" />
<Label Text="Selectionner la pile sur laquel vous souhaitez poser la carte:" />
<StackLayout <StackLayout
Orientation="Horizontal" Orientation="Vertical"
Margin="0,0,0,40"> Margin="10,20,10,20">
<Label x:Name="pseudo" Text="Pseudo" />
<Label Text="Selectionner la pile sur laquel vous souhaitez poser la carte:" />
<StackLayout <StackLayout
Orientation="Vertical"> Orientation="Horizontal"
<Label HorizontalTextAlignment="Center" x:Name="pile0" Text="1" /> Margin="0,0,0,40">
<StackLayout <StackLayout
Orientation="Horizontal"> Orientation="Vertical">
<CheckBox x:Name="checkbox0" CheckedChanged="radioButton" /> <Label HorizontalTextAlignment="Center" x:Name="pile0" Text="1" />
<Label VerticalTextAlignment="Center" Text="Pile Ascendante" /> <StackLayout
Orientation="Horizontal">
<CheckBox x:Name="checkbox0" CheckedChanged="radioButton" />
<Label VerticalTextAlignment="Center" Text="Pile Ascendante" />
</StackLayout>
</StackLayout> </StackLayout>
</StackLayout>
<StackLayout
Orientation="Vertical">
<Label HorizontalTextAlignment="Center" x:Name="pile1" Text="1" />
<StackLayout <StackLayout
Orientation="Horizontal"> Orientation="Vertical">
<CheckBox x:Name="checkbox1" CheckedChanged="radioButton" /> <Label HorizontalTextAlignment="Center" x:Name="pile1" Text="1" />
<Label VerticalTextAlignment="Center" Text="Pile Ascendante" /> <StackLayout
Orientation="Horizontal">
<CheckBox x:Name="checkbox1" CheckedChanged="radioButton" />
<Label VerticalTextAlignment="Center" Text="Pile Ascendante" />
</StackLayout>
</StackLayout> </StackLayout>
</StackLayout>
<StackLayout
Orientation="Vertical">
<Label HorizontalTextAlignment="Center" x:Name="pile2" Text="100" />
<StackLayout <StackLayout
Orientation="Horizontal"> Orientation="Vertical">
<CheckBox x:Name="checkbox2" CheckedChanged="radioButton" /> <Label HorizontalTextAlignment="Center" x:Name="pile2" Text="100" />
<Label VerticalTextAlignment="Center" Text="Pile Descendante" /> <StackLayout
Orientation="Horizontal">
<CheckBox x:Name="checkbox2" CheckedChanged="radioButton" />
<Label VerticalTextAlignment="Center" Text="Pile Descendante" />
</StackLayout>
</StackLayout> </StackLayout>
</StackLayout>
<StackLayout
Orientation="Vertical">
<Label HorizontalTextAlignment="Center" x:Name="pile3" Text="100" />
<StackLayout <StackLayout
Orientation="Horizontal"> Orientation="Vertical">
<CheckBox x:Name="checkbox3" CheckedChanged="radioButton" /> <Label HorizontalTextAlignment="Center" x:Name="pile3" Text="100" />
<Label VerticalTextAlignment="Center" Text="Pile Descendante" /> <StackLayout
Orientation="Horizontal">
<CheckBox x:Name="checkbox3" CheckedChanged="radioButton" />
<Label VerticalTextAlignment="Center" Text="Pile Descendante" />
</StackLayout>
</StackLayout> </StackLayout>
</StackLayout> </StackLayout>
</StackLayout> <Label Text="Veuillez selectionner une carte à placer:" />
<Label Text="Veuillez selectionner une carte à placer:" /> <ScrollView
<ScrollView
Orientation="Horizontal"
Padding="0,5,0,5">
<StackLayout
Orientation="Horizontal" Orientation="Horizontal"
x:Name="Hand"> Padding="0,5,0,5">
<Button x:Name="card1" Clicked="played" /> <StackLayout
<Button x:Name="card2" Clicked="played" /> Orientation="Horizontal"
<Button x:Name="card3" Clicked="played" /> x:Name="Hand">
<Button x:Name="card4" Clicked="played" /> <Button x:Name="card1" Clicked="played" />
<Button x:Name="card5" Clicked="played" /> <Button x:Name="card2" Clicked="played" />
<Button x:Name="card6" Clicked="played" /> <Button x:Name="card3" Clicked="played" />
<Button x:Name="card7" Clicked="played" /> <Button x:Name="card4" Clicked="played" />
</StackLayout> <Button x:Name="card5" Clicked="played" />
</ScrollView> <Button x:Name="card6" Clicked="played" />
</StackLayout> <Button x:Name="card7" Clicked="played" />
<StackLayout </StackLayout>
x:Name="botPanel" </ScrollView>
Orientation="Vertical" </StackLayout>
Margin="20"> <StackLayout
<Button Text="End Turn" Clicked="endTurn" /> x:Name="botPanel"
<Label x:Name="Alert" /> Orientation="Vertical"
Margin="20">
<Button Text="End Turn" Clicked="endTurn" />
<Label x:Name="Alert" />
</StackLayout>
</StackLayout> </StackLayout>
</StackLayout> </StackLayout>
</StackLayout> </ScrollView>
</ScrollView> </StackLayout>
</ContentPage> </ContentPage>

@ -21,6 +21,7 @@ namespace TheGameExtreme.view
public MainPage() public MainPage()
{ {
InitializeComponent(); InitializeComponent();
NavigationPage.SetHasNavigationBar(this, false);
stacks.Add(checkbox0); stacks.Add(checkbox0);
stacks.Add(checkbox1); stacks.Add(checkbox1);
@ -162,5 +163,10 @@ namespace TheGameExtreme.view
inflateHand(); inflateHand();
} }
} }
private async void Back(object sender, EventArgs args)
{
await Navigation.PopToRootAsync();
}
} }
} }

@ -15,7 +15,7 @@ namespace TheGameExtreme.view
private async void BackMulti_Clicked(object sender, EventArgs e) private async void BackMulti_Clicked(object sender, EventArgs e)
{ {
await Navigation.PushAsync(new HomePage()); await Navigation.PopAsync();
} }
} }
} }

@ -63,7 +63,7 @@ namespace TheGameExtreme.view
private async void SettingToHomePage(object sender, EventArgs e) private async void SettingToHomePage(object sender, EventArgs e)
{ {
await Navigation.PushAsync(new HomePage()); await Navigation.PopAsync();
} }
} }
} }

@ -9,7 +9,17 @@ namespace TheGameExtreme.viewmodel
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
public Card View { get; set; } public Card View { get; set; }
private int value; protected string image;
public string Image
{
get { return image; }
set
{
image = value;
OnPropertyChanged("Image");
}
}
protected int value;
public int Value { public int Value {
get { return value; } get { return value; }
set set

Loading…
Cancel
Save