public class Partie
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.LinkedList<Joueur> |
Joueurs |
static boolean |
Leave |
static java.lang.String |
niveauBOT |
static boolean |
presenceBOT |
static boolean |
sens |
static Talon |
talon |
Constructor and Description |
---|
Partie() |
Modifier and Type | Method and Description |
---|---|
static void |
afficherJoueurEnCours(int i)
Methode qui permet d'afficher le joueur qui doit jouer
|
void |
ajouterBot()
Methode qui permet d'ajouter un BOT
|
void |
ajouterJoueur()
Methode qui permet d'ajouter un joueur
|
void |
carteTest(int valeur,
int couleur,
int i,
int carteAPoser) |
static void |
ChangementCouleur(int carteAPoser,
int i) |
static void |
ChangerTalon() |
void |
commencerJeu()
Methode qui lance le menu pour choisir d'ajouter des joueurs à la partie
|
static void |
commencerPartie()
Methode qui permet de commencer une partie
|
static void |
determinerSens()
Methode qui determine le sens dans lequel le jeu se déroule
|
static void |
Distribuer()
Methode qui permet de distribuer les 7 cartes initiales aux joueurs
|
static boolean |
nbCarteValide(int i)
Methode qui retourne le nombre de cartes valide du joueur
|
static void |
notifierJoueur(java.lang.String message) |
static boolean |
piocher(int i,
int n)
Methode qui permet de piocher une carte
|
static void |
regenererPioche()
Methode qui permet de regenerer une pioche
|
static void |
Score(int k)
Methode qui calcul le score
|
static void |
TestCarteAPoser(int carteAPoser,
int i) |
static void |
TestTalon() |
static void |
Tour(int i)
Methode qui représente un tour de jeu pour un joueur
|
static boolean |
verificationMainJoueur() |
public static boolean sens
public static boolean presenceBOT
public static java.lang.String niveauBOT
public static Talon talon
public static java.util.LinkedList<Joueur> Joueurs
public static boolean Leave
public void ajouterJoueur()
public void ajouterBot()
public void commencerJeu()
public static void commencerPartie()
public static void Tour(int i)
i
- qui réprésente le joueur en questionpublic static void Score(int k)
k
- qui représente le joueur en questionpublic static void ChangementCouleur(int carteAPoser, int i)
public static void regenererPioche()
public static boolean piocher(int i, int n)
i
- n
- public static void afficherJoueurEnCours(int i)
i
- représente le joueur en questionpublic static void determinerSens()
public static void Distribuer()
public void carteTest(int valeur, int couleur, int i, int carteAPoser)
public static void TestCarteAPoser(int carteAPoser, int i)
public static boolean verificationMainJoueur()
public static boolean nbCarteValide(int i)
i
- représente le joueur en questionpublic static void TestTalon()
public static void notifierJoueur(java.lang.String message)
public static void ChangerTalon()