Class BoardAdapter


  • public class BoardAdapter
    extends java.lang.Object
    Adapter class to transform our (swtpra01) implementation of the board into an "braingame board" object. For compatibility reasons we want to reuse their entire codebase instead of rewriting these parts.
    • Constructor Summary

      Constructors 
      Constructor Description
      BoardAdapter​(Board source)
      Parses a given board into another board object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Board getTarget()
      Get the transformed Board object of target class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BoardAdapter

        public BoardAdapter​(Board source)
        Parses a given board into another board object.
        Parameters:
        source - board to be transformed
    • Method Detail

      • getTarget

        public Board getTarget()
        Get the transformed Board object of target class.
        Returns:
        transformed board object