Пример #1
0
  /**
   * Override the abstract {@link Client}'s registerMaze method so that we know when to start
   * control thread.
   *
   * @param maze The {@link Maze} that we are begin registered with.
   */
  public synchronized void registerMaze(Maze maze) {
    assert (maze != null);
    super.registerMaze(maze);

    // Get the control thread going.
    active = true;
    thread.start();
  }