private void BuildHandPieceEntities() { var handPieceCreateService = new HandPieceCreateService(entityFactory); CreateTeamHandPieces(handPieceCreateService, PlayerColor.BLACK); CreateTeamHandPieces(handPieceCreateService, PlayerColor.WHITE); }
private void CreateTeamHandPieces(HandPieceCreateService handPieceCreateService, PlayerColor playerColor) { int index = 0; handPieceCreateService.CreateHandPiece(playerColor, PieceType.PAWN, PieceType.BRONZE, index++); handPieceCreateService.CreateHandPiece(playerColor, PieceType.PAWN, PieceType.SILVER, index++); handPieceCreateService.CreateHandPiece(playerColor, PieceType.PAWN, PieceType.GOLD, index++); handPieceCreateService.CreateHandPiece(playerColor, PieceType.SPY, PieceType.CLANDESTINITE, index++); handPieceCreateService.CreateHandPiece(playerColor, PieceType.CATAPULT, PieceType.LANCE, index++); handPieceCreateService.CreateHandPiece(playerColor, PieceType.FORTRESS, PieceType.LANCE, index++); handPieceCreateService.CreateHandPiece(playerColor, PieceType.HIDDEN_DRAGON, PieceType.DRAGON_KING, index++); handPieceCreateService.CreateHandPiece(playerColor, PieceType.PRODIGY, PieceType.PHOENIX, index++); handPieceCreateService.CreateHandPiece(playerColor, PieceType.BOW, PieceType.ARROW, index++); handPieceCreateService.CreateHandPiece(playerColor, PieceType.SAMURAI, PieceType.PIKE, index++); handPieceCreateService.CreateHandPiece(playerColor, PieceType.CAPTAIN, PieceType.PISTOL, index++); handPieceCreateService.CreateHandPiece(playerColor, PieceType.COMMANDER, PieceType.COMMANDER, index++); }