Class Build

  • All Implemented Interfaces:
    RawObj

    public class Build
    extends Object
    implements RawObj
    A Build Action Data Structure
    • Constructor Detail

      • Build

        public Build​(String block,
                     List<Integer> position)
        Build Constructor
        Parameters:
        block - block to be built
        position - position on the board
    • Method Detail

      • getRawData

        public List<String> getRawData()
        Description copied from interface: RawObj
        Convert data to a list of string that contains a user readable information about the class
        Specified by:
        getRawData in interface RawObj
        Returns:
        data converted into an array of string user readable information about the class
      • getBlock

        public String getBlock()
        Get Block to be built
        Returns:
        block type
      • getPosition

        public List<Integer> getPosition()
        Get Position on the board
        Returns:
        board position