Package fr.formiko.formiko
Class Partie
java.lang.Object
fr.formiko.formiko.Partie
- All Implemented Interfaces:
Serializable
All informations about a Game in the Game Formiko.
There is no word for "a game in the Game Formiko" in english so I use the french word Partie.
All map value are in Carte var.
There is no word for "a game in the Game Formiko" in english so I use the french word Partie.
All map value are in Carte var.
- Author:
- Hydrolien
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private boolean
private boolean
private int[]
private boolean
private LocalDateTime
private boolean
private byte
private int[]
private boolean
private static GEspece
private GEtiquetteJoueur
private GInsecte
private GJoueur
private boolean
private Carte
private int
private int
private int
private boolean
private Fourmi
private static String
private static final long
private int
private double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTour()
void
addTour
(int x) boolean
Standard equals function.void
void
finDePartie
(int x) void
finDePartie
(int x, boolean withButton, int nextLevel) int
boolean
boolean
int[]
getCarte()
boolean
boolean
boolean
static Partie
Load the default Partie.byte
boolean
getGc()
static GEspece
getGe()
getGi()
getGj()
boolean
int
int
boolean
static Partie
getPartieSave
(String nom) Load the default Partie.private static Partie
create a new Partie to launch Tuto.static String
int
getTour()
double
static void
iniGe()
Load the GEspece.void
void
void
iniJoueurEtIa
(Carte mapo) private void
Initializes the tutorial parameters.void
void
initialisationElément
(int a, int b) void
initialisationElément
(int nbrDeJoueur, int nbrDIa, int nbrDeFourmi) boolean
boolean
isSolo()
boolean
jeu()
boolean
void
setAntIdToPlay
(int x) void
setAppartionGraine
(boolean b) void
setAppartionInsecte
(boolean b) void
setAviableSpecies
(int[] t) void
setContinuerLeJeu
(boolean b) void
setDifficulté
(byte x) void
setElément
(int a, int b, int c) void
setEnCours
(boolean b) void
setGej
(GEtiquetteJoueur gej) void
void
void
setLaunchingFromSave
(boolean launchingFromSave) void
setNbrDeTour
(int x) void
setPartieFinie
(boolean b) static void
private boolean
setPlayingAnt
(int id) change the value of the playing ant with and id.boolean
change the value of the playing ant.static void
void
setTour
(int x) void
setVitesseDeJeu
(double v) void
toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
script
-
gi
-
gj
-
ge
-
mapo
-
nbrDeTour
private int nbrDeTour -
tour
private int tour -
niveauDeLimitationDesinsectes
private int niveauDeLimitationDesinsectes -
difficulté
private byte difficulté -
dateDeCréation
-
partieFinie
private boolean partieFinie -
avaibleSpecies
private int[] avaibleSpecies -
nbrDeJoueurDansLaPartie
private int nbrDeJoueurDansLaPartie -
enCours
private boolean enCours -
elément
private int[] elément -
gej
-
vitesseDeJeu
private double vitesseDeJeu -
continerLeJeu
private boolean continerLeJeu -
appartionInsecte
private boolean appartionInsecte -
appartionGraine
private boolean appartionGraine -
dejaIni
private boolean dejaIni -
playingAnt
-
antIdToPlay
private int antIdToPlay -
launchingFromSave
private boolean launchingFromSave
-
-
Constructor Details
-
Partie
-
Partie
public Partie()Constructor with only minimal initialization.
-
-
Method Details
-
getScript
-
setScript
-
getGi
-
setGi
-
getGj
-
isMultiplayer
public boolean isMultiplayer() -
isSolo
public boolean isSolo() -
setGj
-
getGc
-
getGe
-
getTour
public int getTour() -
setTour
public void setTour(int x) -
addTour
public void addTour(int x) -
addTour
public void addTour() -
getNbrDeTour
public int getNbrDeTour() -
setNbrDeTour
public void setNbrDeTour(int x) -
getDifficulté
public byte getDifficulté() -
setDifficulté
public void setDifficulté(byte x) -
getDateDeCréation
-
getAvaibleSpecies
public int[] getAvaibleSpecies() -
setAviableSpecies
public void setAviableSpecies(int[] t) -
getNbrDeJoueurDansLaPartie
public int getNbrDeJoueurDansLaPartie() -
getCarte
-
getEnCours
public boolean getEnCours() -
setEnCours
public void setEnCours(boolean b) -
setElément
public void setElément(int a, int b, int c) -
setGej
-
getVitesseDeJeu
public double getVitesseDeJeu() -
setVitesseDeJeu
public void setVitesseDeJeu(double v) -
getPartieFinie
public boolean getPartieFinie() -
setPartieFinie
public void setPartieFinie(boolean b) -
getContinuerLeJeu
public boolean getContinuerLeJeu() -
setContinuerLeJeu
public void setContinuerLeJeu(boolean b) -
getAppartionInsecte
public boolean getAppartionInsecte() -
setAppartionInsecte
public void setAppartionInsecte(boolean b) -
getAppartionGraine
public boolean getAppartionGraine() -
setAppartionGraine
public void setAppartionGraine(boolean b) -
getPlayingAnt
-
getPlayingJoueur
-
getCasesSombres
public boolean getCasesSombres() -
getCasesNuageuses
public boolean getCasesNuageuses() -
getAntIdToPlay
public int getAntIdToPlay() -
setAntIdToPlay
public void setAntIdToPlay(int x) -
getLaunchingFromSave
public boolean getLaunchingFromSave() -
setLaunchingFromSave
public void setLaunchingFromSave(boolean launchingFromSave) -
toString
-
equals
Standard equals function. Null & other class type proof. -
initialisationElément
public void initialisationElément(int nbrDeJoueur, int nbrDIa, int nbrDeFourmi) -
initialisationElément
public void initialisationElément(int a, int b) -
initialisationElément
public void initialisationElément() -
iniJoueur
-
iniIa
-
iniJoueurEtIa
-
launchGame
public boolean launchGame() -
jeu
public boolean jeu() -
testFinDePartie
public void testFinDePartie() -
finDePartie
public void finDePartie() -
finDePartie
public void finDePartie(int x) -
finDePartie
public void finDePartie(int x, boolean withButton, int nextLevel) -
iniGe
public static void iniGe()Load the GEspece. -
getDefautlPartie
Load the default Partie. -
getPartieSave
Load the default Partie. -
setPartieTutoInMain
public static void setPartieTutoInMain() -
getPartieTuto
create a new Partie to launch Tuto. -
iniParametreCarteTuto
private void iniParametreCarteTuto()Initializes the tutorial parameters. -
setPlayingAnt
change the value of the playing ant.
We need to repaint the information about this playingAnt.
This action can only be run if action game is on.- Returns:
- Return true if it work well. (Nothing goes wrong.)
-
setPlayingAnt
private boolean setPlayingAnt(int id) change the value of the playing ant with and id.
This action can only be run if action game is on.- Returns:
- Return true if it work well. (Nothing goes wrong.)
-