Class GBlade

java.lang.Object
fr.formiko.usual.structures.listes.Liste<Blade>
fr.formiko.formiko.GBlade
All Implemented Interfaces:
Serializable, Iterable<Blade>, Collection<Blade>, List<Blade>

public class GBlade extends fr.formiko.usual.structures.listes.Liste<Blade> implements Serializable
Groups of vegetal blade, used to represent grass & moss on map.
Author:
Hydrolien
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private byte
     

    Fields inherited from class fr.formiko.usual.structures.listes.Liste

    head, tail
  • Constructor Summary

    Constructors
    Constructor
    Description
    GBlade(int type)
    Main contructor with a given type.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addBlades(int x)
    Add blades of the GBlade type.
    void
    removeBlades(int x)
    remove blades.

    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.lang.Iterable

    forEach

    Methods inherited from interface java.util.List

    hashCode, replaceAll, spliterator
  • Field Details

    • type

      private byte type
  • Constructor Details

    • GBlade

      public GBlade(int type)
      Main contructor with a given type.
  • Method Details

    • addBlades

      public void addBlades(int x)
      Add blades of the GBlade type.
      Parameters:
      x - how much to add
    • removeBlades

      public void removeBlades(int x)
      remove blades.
      We always remove the older blade first.
      Parameters:
      x - how much to remove