Package scotlandyard.shared

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


  }

  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

Related Classes of scotlandyard.shared.BoardState

Copyright © 2018 www.massapicom. 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.