Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Collection<PieceModel> getPieceCollection() {
- ModelFactory.pieces = new LinkedList<PieceModel>();
- for ( int i = 0; i<blackPieceCoords.length ; i++) {
- ModelFactory.pieces.add(new PawnModel(blackPieceCoords[i], PieceSquareColor.BLACK));
- }
- for ( int i = 0; i<whitePieceCoords.length ; i++) {
- ModelFactory.pieces.add(new PawnModel(whitePieceCoords[i], PieceSquareColor.WHITE));
- }
- return ModelFactory.pieces;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement