Package fr.formiko.views.gui2d
Class GEtiquetteJoueur
java.lang.Object
fr.formiko.usual.structures.listes.Liste<EtiquetteJoueur>
fr.formiko.views.gui2d.GEtiquetteJoueur
- All Implemented Interfaces:
Serializable,Iterable<EtiquetteJoueur>,Collection<EtiquetteJoueur>,List<EtiquetteJoueur>
Liste of EtiquetteJoueur.
It is used to store & print data to the user,
so that he can choose player info before start the game.
- Author:
- Hydrolien
- See Also:
-
Field Summary
Fields inherited from class fr.formiko.usual.structures.listes.Liste
head, tail -
Constructor Summary
ConstructorsConstructorDescriptionCreate a empty GEtiquetteJoueur.GEtiquetteJoueur(int x) create a basic GEtiquetteJoueur with x items. -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(EtiquetteJoueur ej) add an Item & enableLaunchButtonIfNeeded.voidif there is 0 humain player, turn off launch button.voidif there is at least 1 humain player, turn on launch button.getGJoueur(Carte mapo) return this as a fully usable GJoueur.booleanremove an Item & disableLaunchButtonIfNeeded.Methods inherited from class fr.formiko.usual.structures.listes.Liste
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, removeAll, removeDuplicateItem, removeItem, retainAll, set, setHead, setTail, size, sort, subList, toArray, toArray, toGString, toString, toStringLong, updateTailMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
hashCode, replaceAll, spliterator
-
Constructor Details
-
GEtiquetteJoueur
public GEtiquetteJoueur(int x) create a basic GEtiquetteJoueur with x items.
It have 1 humain player & x-1 ia player.- Parameters:
x- number of player.
-
GEtiquetteJoueur
public GEtiquetteJoueur()Create a empty GEtiquetteJoueur.
-
-
Method Details
-
add
add an Item & enableLaunchButtonIfNeeded.- Specified by:
addin interfaceCollection<EtiquetteJoueur>- Specified by:
addin interfaceList<EtiquetteJoueur>- Overrides:
addin classfr.formiko.usual.structures.listes.Liste<EtiquetteJoueur>
-
remove
remove an Item & disableLaunchButtonIfNeeded.- Specified by:
removein interfaceCollection<EtiquetteJoueur>- Specified by:
removein interfaceList<EtiquetteJoueur>- Overrides:
removein classfr.formiko.usual.structures.listes.Liste<EtiquetteJoueur>
-
getGJoueur
return this as a fully usable GJoueur.
It use Pseudo, Pheromone & ia value to create new players. -
disableLaunchButtonIfNeeded
public void disableLaunchButtonIfNeeded()if there is 0 humain player, turn off launch button. -
enableLaunchButtonIfNeeded
public void enableLaunchButtonIfNeeded()if there is at least 1 humain player, turn on launch button.
-