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 TypeMethodDescriptionboolean
add
(EtiquetteJoueur ej) add an Item & enableLaunchButtonIfNeeded.void
if there is 0 humain player, turn off launch button.void
if there is at least 1 humain player, turn on launch button.getGJoueur
(Carte mapo) return this as a fully usable GJoueur.boolean
remove 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, 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
-
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:
add
in interfaceCollection<EtiquetteJoueur>
- Specified by:
add
in interfaceList<EtiquetteJoueur>
- Overrides:
add
in classfr.formiko.usual.structures.listes.Liste<EtiquetteJoueur>
-
remove
remove an Item & disableLaunchButtonIfNeeded.- Specified by:
remove
in interfaceCollection<EtiquetteJoueur>
- Specified by:
remove
in interfaceList<EtiquetteJoueur>
- Overrides:
remove
in 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.
-