Class SimpleGridAdder<T>

  • All Implemented Interfaces:
    GridAdder<T>, Adder<Grid<T>,​T>

    public class SimpleGridAdder<T>
    extends Object
    implements GridAdder<T>
    This is a simple implementation of an adder that doesn't perform any action.
    • Constructor Detail

      • SimpleGridAdder

        public SimpleGridAdder()
    • Method Detail

      • add

        public void add​(Grid<T> destination,
                        T object)
        Adds the specified object to the space. This will add the object to a space without assigning it a location. When this adder is used, the user must then move the object to some location on the space.
        Specified by:
        add in interface Adder<Grid<T>,​T>
        destination - the space to add the object to.
        object - the object to add.