Class Block

  • All Implemented Interfaces:
    Cloneable

    public class Block
    extends Object
    implements Cloneable
    Class that is used to store a game board block information
    • Constructor Detail

      • Block

        public Block​(TypeBlock typeBlock)
        Create a Block instance of a specific typeBlock
        Parameters:
        typeBlock - type to set
      • Block

        public Block​(TypeBlock typeBlock,
                     String owner,
                     Color color)
        Create a Block instance of a specific typeBlock, owner and color
        Parameters:
        typeBlock - type to set
        owner - owner to set
        color - color to set
    • Method Detail

      • getTypeBlock

        public TypeBlock getTypeBlock()
        Get the block type
        Returns:
        block type
      • getOwner

        public String getOwner()
        Get the block owner
        Returns:
        block owner
      • getColor

        public Color getColor()
        Get the block color
        Returns:
        block color