Package fr.formiko.formiko
Class GEspece
java.lang.Object
fr.formiko.usual.structures.listes.Liste<Espece>
fr.formiko.formiko.GEspece
- All Implemented Interfaces:
Serializable
,Iterable<Espece>
,Collection<Espece>
,List<Espece>
public class GEspece
extends fr.formiko.usual.structures.listes.Liste<Espece>
implements Serializable
List of species.
- Author:
- Hydrolien
- See Also:
-
Field Summary
Fields inherited from class fr.formiko.usual.structures.listes.Liste
head, tail
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Espece
createEspece
(String s, String[] tdefault) Load a species from game data.getEspeceById
(int id) Return a species.private void
Load all species from game data.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
-
GEspece
public GEspece()Create a new list of species from game data.
-
-
Method Details
-
getEspeceById
Return a species.- Parameters:
id
- id of the species
-
loadEspeces
private void loadEspeces()Load all species from game data. -
createEspece
Load a species from game data.
Empty cells will be fullfill by default value.- Parameters:
s
- line to use to get sepcies data.tdefault
- default sepcies data.- Returns:
- the created species
-