Package fr.formiko.formiko
Class GJoueur
java.lang.Object
fr.formiko.usual.structures.listes.Liste<Joueur>
fr.formiko.formiko.GJoueur
- All Implemented Interfaces:
Serializable
,Iterable<Joueur>
,Collection<Joueur>
,List<Joueur>
public class GJoueur
extends fr.formiko.usual.structures.listes.Liste<Joueur>
implements Serializable
List of players.
lastEditedVersion 2.23
- Author:
- Hydrolien
- See Also:
-
Field Summary
Fields inherited from class fr.formiko.usual.structures.listes.Liste
head, tail
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a message for every players.getGc()
Return all the Creatures of all the players.Return a sorted GJoueur by score.getJoueurById
(int id) Return the player that match this id.Return non AI player.int
int
Return the number of player still alive.int
void
Initialize dark & cloudy squares for every players.void
jouer()
Play for every players.boolean
Return true if there is less that 2 player alive.void
Initialize difficulty initial concequence for every players.fr.formiko.usual.structures.listes.GString
Return score of every player as a GString.void
end turn of every players.private static GJoueur
Return a list with all this class functions.Methods inherited from class fr.formiko.usual.structures.listes.Liste
add, add, add, addAll, addAll, addHead, addList, addSorted, addTail, clear, contains, containsAll, equals, filter, get, getFirst, getHead, getItem, getLast, getMost, getTail, indexOf, isEmpty, iterator, lastIndexOf, length, listIterator, listIterator, pop, push, push, remove, remove, removeAll, removeDuplicateItem, removeItem, retainAll, set, setHead, setTail, size, sort, subList, toArray, toArray, toGString, toString, toStringLong, updateTail
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
hashCode, replaceAll, spliterator
-
Constructor Details
-
GJoueur
public GJoueur()Main constructor.
-
-
Method Details
-
getGc
Return all the Creatures of all the players. -
getJoueurById
Return the player that match this id.- Parameters:
id
- id to match
-
getJoueurHumain
Return non AI player. -
getNbrDeJoueurHumain
public int getNbrDeJoueurHumain() -
getNbrDIa
public int getNbrDIa() -
toGj
Return a list with all this class functions. -
getGjSorted
Return a sorted GJoueur by score. -
getNbrDeJoueurVivant
public int getNbrDeJoueurVivant()Return the number of player still alive. An alive player still have at lease 1 Ant. -
plusQu1Joueur
public boolean plusQu1Joueur()Return true if there is less that 2 player alive. An alive player still have at lease 1 Ant. -
scoreToGString
public fr.formiko.usual.structures.listes.GString scoreToGString()Return score of every player as a GString. -
jouer
public void jouer()Play for every players. -
addMessage
Add a message for every players. -
initialisationCaseNS
public void initialisationCaseNS()Initialize dark & cloudy squares for every players. -
prendreEnCompteLaDifficulté
public void prendreEnCompteLaDifficulté()Initialize difficulty initial concequence for every players. -
setAction0AndEndTurn
public void setAction0AndEndTurn()end turn of every players.
-