Examples of BoardState


Examples of scotlandyard.shared.BoardState

    }
  }

  public BoardState getCurrentBoardState() {
    int[] currentPlayerPosition = new int[players.size()];
    BoardState bs = new BoardState();

    for (int i = 0; i < players.size(); i++) {
      currentPlayerPosition[i] = players.get(i).getCurrentPosition();
    }

    bs.setPlayerPositions(currentPlayerPosition);
    bs.setMovableAreas(DefaultBoardState.getDefaultBoardStateInstance()
        .getDefaultMovableAreasArray());
    return bs;
  }
View Full Code Here

Examples of scotlandyard.shared.BoardState

  }

  public BoardState getCurrentBoardState() {
    int[] currentPlayerPosition = new int[players.size()];
    BoardState bs = new BoardState();

    for (int i = 0; i < players.size(); i++) {
      currentPlayerPosition[i] = players.get(i).getCurrentPosition();
    }

    bs.setPlayerPositions(currentPlayerPosition);
    bs.setMovableAreas(DefaultBoardState.getDefaultBoardStateInstance()
        .getDefaultMovableAreasArray());
    return bs;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.