public void CollisionWithBO(BasicObject bo, GameBoard board) { if (this.isOnTop(bo)) { Console.Out.WriteLine("collision with box"); board.setGridPositionOpen(this.X, this.Y); bo.setGridPosition(0, 0); bo.setVisible(false); } }
public void CollisionWithBO(BasicObject bo, GameBoard board) { if (this.isOnTop(bo)) { Console.Out.WriteLine("collision with box"); board.setGridPositionOpen(this.X, this.Y); bo.setGridPosition(0, 0); bo.setVisible(false); } }
private void setWalls() { BasicObject w1 = new BasicObject(board); w1.setGridPosition(11, 1); board.setGridPositionOccupied(11, 1); walls = new BasicObject[1] { w1 }; }
private void setBoxPattern() { BasicObject bo1 = new BasicObject(board); bo1.setGridPosition(7, 8); BasicObject bo2 = new BasicObject(board); bo2.setGridPosition(13, 8); BasicObject bo3 = new BasicObject(board); bo3.setGridPosition(19, 8); BasicObject bo4 = new BasicObject(board); bo4.setGridPosition(25, 8); BasicObject bo5 = new BasicObject(board); bo5.setGridPosition(7, 15); BasicObject bo6 = new BasicObject(board); bo6.setGridPosition(13, 15); BasicObject bo7 = new BasicObject(board); bo7.setGridPosition(19, 15); BasicObject bo8 = new BasicObject(board); bo8.setGridPosition(25, 15); BasicObject bo9 = new BasicObject(board); bo9.setGridPosition(10, 10); BasicObject bo10 = new BasicObject(board); bo10.setGridPosition(16, 10); BasicObject bo11 = new BasicObject(board); bo11.setGridPosition(22, 10); BasicObject bo12 = new BasicObject(board); bo12.setGridPosition(10, 13); BasicObject bo13 = new BasicObject(board); bo13.setGridPosition(16, 13); BasicObject bo14 = new BasicObject(board); bo14.setGridPosition(22, 13); spotsForPattern = new BasicObject[14] { bo1, bo2, bo3, bo4, bo5, bo6, bo7, bo8, bo9, bo10, bo11, bo12, bo13, bo14 }; }
private BasicObject[] setWallsInLevelSix() { BasicObject w0 = new BasicObject(board); BasicObject w1 = new BasicObject(board); BasicObject w2 = new BasicObject(board); BasicObject w3 = new BasicObject(board); BasicObject w4 = new BasicObject(board); BasicObject w5 = new BasicObject(board); BasicObject w6 = new BasicObject(board); BasicObject w7 = new BasicObject(board); BasicObject w8 = new BasicObject(board); BasicObject w9 = new BasicObject(board); BasicObject w10 = new BasicObject(board); BasicObject w11 = new BasicObject(board); w0.setGridPosition(13, 1); w1.setGridPosition(13, 2); w2.setGridPosition(13, 3); w3.setGridPosition(13, 4); w4.setGridPosition(13, 5); w5.setGridPosition(13, 6); w6.setGridPosition(20, 1); w7.setGridPosition(20, 2); w8.setGridPosition(20, 3); w9.setGridPosition(20, 4); w10.setGridPosition(20, 5); w11.setGridPosition(20, 6); for (int m = 1; m < 7; m++) { board.setGridPositionOccupied(13, m); } for (int m = 1; m < 7; m++) { board.setGridPositionOccupied(20, m); } walls = new BasicObject[12] { w0, w1, w2, w3, w4, w5, w6, w7, w8, w9, w10, w11 }; return(walls); }
// initializes the dance floor // equally massive method... private void setDanceFloor() { //lower area wall BasicObject w0 = new BasicObject(board); BasicObject w1 = new BasicObject(board); BasicObject w2 = new BasicObject(board); BasicObject w3 = new BasicObject(board); BasicObject w4 = new BasicObject(board); BasicObject w5 = new BasicObject(board); BasicObject w6 = new BasicObject(board); BasicObject w7 = new BasicObject(board); BasicObject w8 = new BasicObject(board); BasicObject w9 = new BasicObject(board); BasicObject w10 = new BasicObject(board); BasicObject w11 = new BasicObject(board); BasicObject w12 = new BasicObject(board); BasicObject w13 = new BasicObject(board); BasicObject w14 = new BasicObject(board); BasicObject w15 = new BasicObject(board); BasicObject w16 = new BasicObject(board); BasicObject w17 = new BasicObject(board); BasicObject w18 = new BasicObject(board); BasicObject w19 = new BasicObject(board); BasicObject w20 = new BasicObject(board); BasicObject w21 = new BasicObject(board); BasicObject w22 = new BasicObject(board); BasicObject w23 = new BasicObject(board); BasicObject w24 = new BasicObject(board); BasicObject w25 = new BasicObject(board); BasicObject w26 = new BasicObject(board); BasicObject w27 = new BasicObject(board); BasicObject w28 = new BasicObject(board); BasicObject w29 = new BasicObject(board); BasicObject w30 = new BasicObject(board); BasicObject w31 = new BasicObject(board); BasicObject w32 = new BasicObject(board); BasicObject w33 = new BasicObject(board); BasicObject w34 = new BasicObject(board); BasicObject w35 = new BasicObject(board); BasicObject w36 = new BasicObject(board); BasicObject w37 = new BasicObject(board); BasicObject w38 = new BasicObject(board); BasicObject w39 = new BasicObject(board); BasicObject w40 = new BasicObject(board); BasicObject w41 = new BasicObject(board); BasicObject w42 = new BasicObject(board); BasicObject w43 = new BasicObject(board); BasicObject w44 = new BasicObject(board); BasicObject w45 = new BasicObject(board); BasicObject w46 = new BasicObject(board); BasicObject w47 = new BasicObject(board); BasicObject w48 = new BasicObject(board); BasicObject w49 = new BasicObject(board); BasicObject w50 = new BasicObject(board); BasicObject w51 = new BasicObject(board); BasicObject w52 = new BasicObject(board); BasicObject w53 = new BasicObject(board); BasicObject w54 = new BasicObject(board); BasicObject w55 = new BasicObject(board); BasicObject w56 = new BasicObject(board); BasicObject w57 = new BasicObject(board); BasicObject w58 = new BasicObject(board); BasicObject w59 = new BasicObject(board); BasicObject w60 = new BasicObject(board); BasicObject w61 = new BasicObject(board); BasicObject w62 = new BasicObject(board); BasicObject w63 = new BasicObject(board); BasicObject w64 = new BasicObject(board); BasicObject w65 = new BasicObject(board); BasicObject w66 = new BasicObject(board); BasicObject w67 = new BasicObject(board); BasicObject w68 = new BasicObject(board); BasicObject w69 = new BasicObject(board); BasicObject w70 = new BasicObject(board); BasicObject w71 = new BasicObject(board); BasicObject w72 = new BasicObject(board); BasicObject w73 = new BasicObject(board); BasicObject w74 = new BasicObject(board); BasicObject w75 = new BasicObject(board); BasicObject w76 = new BasicObject(board); BasicObject w77 = new BasicObject(board); BasicObject w78 = new BasicObject(board); BasicObject w79 = new BasicObject(board); BasicObject w80 = new BasicObject(board); BasicObject w81 = new BasicObject(board); BasicObject w82 = new BasicObject(board); BasicObject w83 = new BasicObject(board); BasicObject w84 = new BasicObject(board); BasicObject w85 = new BasicObject(board); BasicObject w86 = new BasicObject(board); BasicObject w87 = new BasicObject(board); BasicObject w88 = new BasicObject(board); BasicObject w89 = new BasicObject(board); BasicObject w90 = new BasicObject(board); BasicObject w91 = new BasicObject(board); BasicObject w92 = new BasicObject(board); BasicObject w93 = new BasicObject(board); BasicObject w94 = new BasicObject(board); BasicObject w95 = new BasicObject(board); BasicObject w96 = new BasicObject(board); BasicObject w97 = new BasicObject(board); BasicObject w98 = new BasicObject(board); BasicObject w99 = new BasicObject(board); BasicObject w100 = new BasicObject(board); BasicObject w101 = new BasicObject(board); BasicObject w102 = new BasicObject(board); BasicObject w103 = new BasicObject(board); BasicObject w104 = new BasicObject(board); BasicObject w105 = new BasicObject(board); BasicObject w106 = new BasicObject(board); BasicObject w107 = new BasicObject(board); BasicObject w108 = new BasicObject(board); BasicObject w109 = new BasicObject(board); BasicObject w110 = new BasicObject(board); BasicObject w111 = new BasicObject(board); BasicObject w112 = new BasicObject(board); BasicObject w113 = new BasicObject(board); BasicObject w114 = new BasicObject(board); BasicObject w115 = new BasicObject(board); BasicObject w116 = new BasicObject(board); BasicObject w117 = new BasicObject(board); BasicObject w118 = new BasicObject(board); BasicObject w119 = new BasicObject(board); BasicObject w120 = new BasicObject(board); BasicObject w121 = new BasicObject(board); BasicObject w122 = new BasicObject(board); BasicObject w123 = new BasicObject(board); BasicObject w124 = new BasicObject(board); BasicObject w125 = new BasicObject(board); BasicObject w126 = new BasicObject(board); BasicObject w127 = new BasicObject(board); BasicObject w128 = new BasicObject(board); BasicObject w129 = new BasicObject(board); BasicObject w130 = new BasicObject(board); BasicObject w131 = new BasicObject(board); BasicObject w132 = new BasicObject(board); BasicObject w133 = new BasicObject(board); BasicObject w134 = new BasicObject(board); BasicObject w135 = new BasicObject(board); BasicObject w136 = new BasicObject(board); BasicObject w137 = new BasicObject(board); BasicObject w138 = new BasicObject(board); BasicObject w139 = new BasicObject(board); BasicObject w140 = new BasicObject(board); BasicObject w141 = new BasicObject(board); BasicObject w142 = new BasicObject(board); BasicObject w143 = new BasicObject(board); BasicObject w144 = new BasicObject(board); BasicObject w145 = new BasicObject(board); BasicObject w146 = new BasicObject(board); BasicObject w147 = new BasicObject(board); BasicObject w148 = new BasicObject(board); BasicObject w149 = new BasicObject(board); BasicObject w150 = new BasicObject(board); BasicObject w151 = new BasicObject(board); BasicObject w152 = new BasicObject(board); BasicObject w153 = new BasicObject(board); BasicObject w154 = new BasicObject(board); BasicObject w155 = new BasicObject(board); BasicObject w156 = new BasicObject(board); BasicObject w157 = new BasicObject(board); BasicObject w158 = new BasicObject(board); BasicObject w159 = new BasicObject(board); BasicObject w160 = new BasicObject(board); BasicObject w161 = new BasicObject(board); BasicObject w162 = new BasicObject(board); BasicObject w163 = new BasicObject(board); BasicObject w164 = new BasicObject(board); BasicObject w165 = new BasicObject(board); BasicObject w166 = new BasicObject(board); BasicObject w167 = new BasicObject(board); BasicObject w168 = new BasicObject(board); BasicObject w169 = new BasicObject(board); BasicObject w170 = new BasicObject(board); BasicObject w171 = new BasicObject(board); BasicObject w172 = new BasicObject(board); BasicObject w173 = new BasicObject(board); BasicObject w174 = new BasicObject(board); BasicObject w175 = new BasicObject(board); BasicObject w176 = new BasicObject(board); BasicObject w177 = new BasicObject(board); BasicObject w178 = new BasicObject(board); BasicObject w179 = new BasicObject(board); BasicObject w180 = new BasicObject(board); BasicObject w181 = new BasicObject(board); BasicObject w182 = new BasicObject(board); BasicObject w183 = new BasicObject(board); BasicObject w184 = new BasicObject(board); BasicObject w185 = new BasicObject(board); BasicObject w186 = new BasicObject(board); BasicObject w187 = new BasicObject(board); BasicObject w188 = new BasicObject(board); BasicObject w189 = new BasicObject(board); BasicObject w190 = new BasicObject(board); BasicObject w191 = new BasicObject(board); BasicObject w192 = new BasicObject(board); BasicObject w193 = new BasicObject(board); BasicObject w194 = new BasicObject(board); BasicObject w195 = new BasicObject(board); BasicObject w196 = new BasicObject(board); BasicObject w197 = new BasicObject(board); BasicObject w198 = new BasicObject(board); BasicObject w199 = new BasicObject(board); BasicObject w200 = new BasicObject(board); BasicObject w201 = new BasicObject(board); BasicObject w202 = new BasicObject(board); BasicObject w203 = new BasicObject(board); BasicObject w204 = new BasicObject(board); BasicObject w205 = new BasicObject(board); BasicObject w206 = new BasicObject(board); BasicObject w207 = new BasicObject(board); BasicObject w208 = new BasicObject(board); BasicObject w209 = new BasicObject(board); BasicObject w210 = new BasicObject(board); BasicObject w211 = new BasicObject(board); BasicObject w212 = new BasicObject(board); BasicObject w213 = new BasicObject(board); BasicObject w214 = new BasicObject(board); BasicObject w215 = new BasicObject(board); BasicObject w216 = new BasicObject(board); BasicObject w217 = new BasicObject(board); BasicObject w218 = new BasicObject(board); BasicObject w219 = new BasicObject(board); BasicObject w220 = new BasicObject(board); BasicObject w221 = new BasicObject(board); BasicObject w222 = new BasicObject(board); BasicObject w223 = new BasicObject(board); BasicObject w224 = new BasicObject(board); BasicObject w225 = new BasicObject(board); BasicObject w226 = new BasicObject(board); BasicObject w227 = new BasicObject(board); BasicObject w228 = new BasicObject(board); BasicObject w229 = new BasicObject(board); BasicObject w230 = new BasicObject(board); BasicObject w231 = new BasicObject(board); BasicObject w232 = new BasicObject(board); BasicObject w233 = new BasicObject(board); BasicObject w234 = new BasicObject(board); BasicObject w235 = new BasicObject(board); BasicObject w236 = new BasicObject(board); BasicObject w237 = new BasicObject(board); BasicObject w238 = new BasicObject(board); BasicObject w239 = new BasicObject(board); BasicObject w240 = new BasicObject(board); BasicObject w241 = new BasicObject(board); BasicObject w242 = new BasicObject(board); BasicObject w243 = new BasicObject(board); BasicObject w244 = new BasicObject(board); BasicObject w245 = new BasicObject(board); BasicObject w246 = new BasicObject(board); BasicObject w247 = new BasicObject(board); BasicObject w248 = new BasicObject(board); BasicObject w249 = new BasicObject(board); BasicObject w250 = new BasicObject(board); BasicObject w251 = new BasicObject(board); BasicObject w252 = new BasicObject(board); BasicObject w253 = new BasicObject(board); BasicObject w254 = new BasicObject(board); BasicObject w255 = new BasicObject(board); BasicObject w256 = new BasicObject(board); BasicObject w257 = new BasicObject(board); BasicObject w258 = new BasicObject(board); BasicObject w259 = new BasicObject(board); BasicObject w260 = new BasicObject(board); BasicObject w261 = new BasicObject(board); BasicObject w262 = new BasicObject(board); BasicObject w263 = new BasicObject(board); BasicObject w264 = new BasicObject(board); BasicObject w265 = new BasicObject(board); BasicObject w266 = new BasicObject(board); BasicObject w267 = new BasicObject(board); BasicObject w268 = new BasicObject(board); BasicObject w269 = new BasicObject(board); BasicObject w270 = new BasicObject(board); BasicObject w271 = new BasicObject(board); BasicObject w272 = new BasicObject(board); BasicObject w273 = new BasicObject(board); BasicObject w274 = new BasicObject(board); BasicObject w275 = new BasicObject(board); BasicObject w276 = new BasicObject(board); BasicObject w277 = new BasicObject(board); BasicObject w278 = new BasicObject(board); BasicObject w279 = new BasicObject(board); BasicObject w280 = new BasicObject(board); BasicObject w281 = new BasicObject(board); BasicObject w282 = new BasicObject(board); BasicObject w283 = new BasicObject(board); BasicObject w284 = new BasicObject(board); BasicObject w285 = new BasicObject(board); BasicObject w286 = new BasicObject(board); BasicObject w287 = new BasicObject(board); // first lower row w0.setGridPosition(8, 19); w1.setGridPosition(9, 19); w2.setGridPosition(10, 19); w3.setGridPosition(11, 19); w4.setGridPosition(12, 19); w5.setGridPosition(13, 19); w6.setGridPosition(14, 19); w7.setGridPosition(15, 19); w8.setGridPosition(16, 19); w9.setGridPosition(17, 19); w10.setGridPosition(18, 19); w11.setGridPosition(19, 19); w12.setGridPosition(20, 19); w13.setGridPosition(21, 19); w14.setGridPosition(22, 19); w15.setGridPosition(23, 19); w16.setGridPosition(24, 19); w17.setGridPosition(25, 19); // 2nd lowest row w18.setGridPosition(8, 18); w19.setGridPosition(9, 18); w20.setGridPosition(10, 18); w21.setGridPosition(11, 18); w22.setGridPosition(12, 18); w23.setGridPosition(13, 18); w24.setGridPosition(14, 18); w25.setGridPosition(15, 18); w26.setGridPosition(16, 18); w27.setGridPosition(17, 18); w28.setGridPosition(18, 18); w29.setGridPosition(19, 18); w30.setGridPosition(20, 18); w31.setGridPosition(21, 18); w32.setGridPosition(22, 18); w33.setGridPosition(23, 18); w34.setGridPosition(24, 18); w35.setGridPosition(25, 18); // 3rd lowest row w36.setGridPosition(8, 17); w37.setGridPosition(9, 17); w38.setGridPosition(10, 17); w39.setGridPosition(11, 17); w40.setGridPosition(12, 17); w41.setGridPosition(13, 17); w42.setGridPosition(14, 17); w43.setGridPosition(15, 17); w44.setGridPosition(16, 17); w45.setGridPosition(17, 17); w46.setGridPosition(18, 17); w47.setGridPosition(19, 17); w48.setGridPosition(20, 17); w49.setGridPosition(21, 17); w50.setGridPosition(22, 17); w51.setGridPosition(23, 17); w52.setGridPosition(24, 17); w53.setGridPosition(25, 17); // 4th lowest row w54.setGridPosition(8, 16); w55.setGridPosition(9, 16); w56.setGridPosition(10, 16); w57.setGridPosition(11, 16); w58.setGridPosition(12, 16); w59.setGridPosition(13, 16); w60.setGridPosition(14, 16); w61.setGridPosition(15, 16); w62.setGridPosition(16, 16); w63.setGridPosition(17, 16); w64.setGridPosition(18, 16); w65.setGridPosition(19, 16); w66.setGridPosition(20, 16); w67.setGridPosition(21, 16); w68.setGridPosition(22, 16); w69.setGridPosition(23, 16); w70.setGridPosition(24, 16); w71.setGridPosition(25, 16); // 5th lowest row w72.setGridPosition(8, 15); w73.setGridPosition(9, 15); w74.setGridPosition(10, 15); w75.setGridPosition(11, 15); w76.setGridPosition(12, 15); w77.setGridPosition(13, 15); w78.setGridPosition(14, 15); w79.setGridPosition(15, 15); w80.setGridPosition(16, 15); w81.setGridPosition(17, 15); w82.setGridPosition(18, 15); w83.setGridPosition(19, 15); w84.setGridPosition(20, 15); w85.setGridPosition(21, 15); w86.setGridPosition(22, 15); w87.setGridPosition(23, 15); w88.setGridPosition(24, 15); w89.setGridPosition(25, 15); // 6th lowest row w90.setGridPosition(8, 14); w91.setGridPosition(9, 14); w92.setGridPosition(10, 14); w93.setGridPosition(11, 14); w94.setGridPosition(12, 14); w95.setGridPosition(13, 14); w96.setGridPosition(14, 14); w97.setGridPosition(15, 14); w98.setGridPosition(16, 14); w99.setGridPosition(17, 14); w100.setGridPosition(18, 14); w101.setGridPosition(19, 14); w102.setGridPosition(20, 14); w103.setGridPosition(21, 14); w104.setGridPosition(22, 14); w105.setGridPosition(23, 14); w106.setGridPosition(24, 14); w107.setGridPosition(25, 14); // 7th lowest row w108.setGridPosition(8, 13); w109.setGridPosition(9, 13); w110.setGridPosition(10, 13); w111.setGridPosition(11, 13); w112.setGridPosition(12, 13); w113.setGridPosition(13, 13); w114.setGridPosition(14, 13); w115.setGridPosition(15, 13); w116.setGridPosition(16, 13); w117.setGridPosition(17, 13); w118.setGridPosition(18, 13); w119.setGridPosition(19, 13); w120.setGridPosition(20, 13); w121.setGridPosition(21, 13); w122.setGridPosition(22, 13); w123.setGridPosition(23, 13); w124.setGridPosition(24, 13); w125.setGridPosition(25, 13); // 8th lowest row w126.setGridPosition(8, 12); w127.setGridPosition(9, 12); w128.setGridPosition(10, 12); w129.setGridPosition(11, 12); w130.setGridPosition(12, 12); w131.setGridPosition(13, 12); w132.setGridPosition(14, 12); w133.setGridPosition(15, 12); w134.setGridPosition(16, 12); w135.setGridPosition(17, 12); w136.setGridPosition(18, 12); w137.setGridPosition(19, 12); w138.setGridPosition(20, 12); w139.setGridPosition(21, 12); w140.setGridPosition(22, 12); w141.setGridPosition(23, 12); w142.setGridPosition(24, 12); w143.setGridPosition(25, 12); // 9th lowest row w144.setGridPosition(8, 11); w145.setGridPosition(9, 11); w146.setGridPosition(10, 11); w147.setGridPosition(11, 11); w148.setGridPosition(12, 11); w149.setGridPosition(13, 11); w150.setGridPosition(14, 11); w151.setGridPosition(15, 11); w152.setGridPosition(16, 11); w153.setGridPosition(17, 11); w154.setGridPosition(18, 11); w155.setGridPosition(19, 11); w156.setGridPosition(20, 11); w157.setGridPosition(21, 11); w158.setGridPosition(22, 11); w159.setGridPosition(23, 11); w160.setGridPosition(24, 11); w161.setGridPosition(25, 11); // 10th lowest row w162.setGridPosition(8, 10); w163.setGridPosition(9, 10); w164.setGridPosition(10, 10); w165.setGridPosition(11, 10); w166.setGridPosition(12, 10); w167.setGridPosition(13, 10); w168.setGridPosition(14, 10); w169.setGridPosition(15, 10); w170.setGridPosition(16, 10); w171.setGridPosition(17, 10); w172.setGridPosition(18, 10); w173.setGridPosition(19, 10); w174.setGridPosition(20, 10); w175.setGridPosition(21, 10); w176.setGridPosition(22, 10); w177.setGridPosition(23, 10); w178.setGridPosition(24, 10); w179.setGridPosition(25, 10); // 11th lowest row w180.setGridPosition(8, 9); w181.setGridPosition(9, 9); w182.setGridPosition(10, 9); w183.setGridPosition(11, 9); w184.setGridPosition(12, 9); w185.setGridPosition(13, 9); w186.setGridPosition(14, 9); w187.setGridPosition(15, 9); w188.setGridPosition(16, 9); w189.setGridPosition(17, 9); w190.setGridPosition(18, 9); w191.setGridPosition(19, 9); w192.setGridPosition(20, 9); w193.setGridPosition(21, 9); w194.setGridPosition(22, 9); w195.setGridPosition(23, 9); w196.setGridPosition(24, 9); w197.setGridPosition(25, 9); // 12th lowest row w198.setGridPosition(8, 8); w199.setGridPosition(9, 8); w200.setGridPosition(10, 8); w201.setGridPosition(11, 8); w202.setGridPosition(12, 8); w203.setGridPosition(13, 8); w204.setGridPosition(14, 8); w205.setGridPosition(15, 8); w206.setGridPosition(16, 8); w207.setGridPosition(17, 8); w208.setGridPosition(18, 8); w209.setGridPosition(19, 8); w210.setGridPosition(20, 8); w211.setGridPosition(21, 8); w212.setGridPosition(22, 8); w213.setGridPosition(23, 8); w214.setGridPosition(24, 8); w215.setGridPosition(25, 8); // 13th lowest row w216.setGridPosition(8, 7); w217.setGridPosition(9, 7); w218.setGridPosition(10, 7); w219.setGridPosition(11, 7); w220.setGridPosition(12, 7); w221.setGridPosition(13, 7); w222.setGridPosition(14, 7); w223.setGridPosition(15, 7); w224.setGridPosition(16, 7); w225.setGridPosition(17, 7); w226.setGridPosition(18, 7); w227.setGridPosition(19, 7); w228.setGridPosition(20, 7); w229.setGridPosition(21, 7); w230.setGridPosition(22, 7); w231.setGridPosition(23, 7); w232.setGridPosition(24, 7); w233.setGridPosition(25, 7); // 14th lowest row w234.setGridPosition(8, 6); w235.setGridPosition(9, 6); w236.setGridPosition(10, 6); w237.setGridPosition(11, 6); w238.setGridPosition(12, 6); w239.setGridPosition(13, 6); w240.setGridPosition(14, 6); w241.setGridPosition(15, 6); w242.setGridPosition(16, 6); w243.setGridPosition(17, 6); w244.setGridPosition(18, 6); w245.setGridPosition(19, 6); w246.setGridPosition(20, 6); w247.setGridPosition(21, 6); w248.setGridPosition(22, 6); w249.setGridPosition(23, 6); w250.setGridPosition(24, 6); w251.setGridPosition(25, 6); // 15th lowest row w252.setGridPosition(8, 5); w253.setGridPosition(9, 5); w254.setGridPosition(10, 5); w255.setGridPosition(11, 5); w256.setGridPosition(12, 5); w257.setGridPosition(13, 5); w258.setGridPosition(14, 5); w259.setGridPosition(15, 5); w260.setGridPosition(16, 5); w261.setGridPosition(17, 5); w262.setGridPosition(18, 5); w263.setGridPosition(19, 5); w264.setGridPosition(20, 5); w265.setGridPosition(21, 5); w266.setGridPosition(22, 5); w267.setGridPosition(23, 5); w268.setGridPosition(24, 5); w269.setGridPosition(25, 5); // 11th lowest row w270.setGridPosition(8, 4); w271.setGridPosition(9, 4); w272.setGridPosition(10, 4); w273.setGridPosition(11, 4); w274.setGridPosition(12, 4); w275.setGridPosition(13, 4); w276.setGridPosition(14, 4); w277.setGridPosition(15, 4); w278.setGridPosition(16, 4); w279.setGridPosition(17, 4); w280.setGridPosition(18, 4); w281.setGridPosition(19, 4); w282.setGridPosition(20, 4); w283.setGridPosition(21, 4); w284.setGridPosition(22, 4); w285.setGridPosition(23, 4); w286.setGridPosition(24, 4); w287.setGridPosition(25, 4); danceFloor = new BasicObject[288] {w0, w1, w2, w3, w4, w5, w6, w7, w8, w9,w10, w11, w12, w13, w14, w15, w16, w17, w18, w19, w20, w21, w22, w23, w24, w25,w26,w27, w28, w29, w30, w31, w32, w33, w34, w35, w36, w37, w38,w39, w40, w41, w42, w43, w44, w45, w46, w47, w48, w49, w50, w51, w52, w53, w54, w55, w56, w57, w58, w59, w60, w61, w62, w63,w64, w65, w66, w67, w68, w69, w70, w71, w72, w73, w74, w75, w76, w77, w78, w79,w80,w81, w82, w83, w84, w85, w86, w87, w88, w89, w90, w91, w92, w93, w94, w95, w96, w97, w98, w99,w100,w101, w102, w103, w104, w105, w106, w107, w108, w109, w110, w111, w112,w113, w114, w115, w116, w117, w118, w119, w120, w121, w122, w123, w124, w125, w126, w127, w128, w129, w130, w131, w132, w133, w134, w135, w136, w137, w138,w139, w140, w141, w142, w143, w144, w145, w146, w147, w148, w149, w150, w151, w152, w153, w154,w155, w156, w157, w158, w159, w160, w161, w162, w163, w164, w165, w166, w167, w168, w169, w170, w171, w172, w173, w174, w175, w176, w177, w178, w179, w180,w181, w182, w183, w184, w185, w186, w187, w188, w189, w190, w191, w192, w193, w194, w195, w196, w197, w198, w199, w200, w201, w202, w203, w204, w205, w206, w207, w208, w209, w210,w211, w212, w213, w214, w215, w216, w217, w218, w219, w220, w221, w222, w223, w224, w225, w226, w227, w228, w229, w230, w231, w232, w233, w234, w235, w236, w237, w238, w239, w240, w241, w242,w243, w244, w245, w246, w247, w248, w249, w250, w251, w252, w253, w254, w255, w256, w257, w258, w259, w260, w261, w262, w263, w264, w265, w266, w267, w268, w269, w270, w271, w272, w273, w274, w275, w276, w277, w278, w279, w280, w281, w282, w283, w284, w285, w286, w287}; }
// massive method sets all wall tiles... private void setWallsInLevelFour() { //lower area wall BasicObject w0 = new BasicObject(board); BasicObject w1 = new BasicObject(board); BasicObject w2 = new BasicObject(board); BasicObject w3 = new BasicObject(board); BasicObject w4 = new BasicObject(board); BasicObject w5 = new BasicObject(board); BasicObject w6 = new BasicObject(board); BasicObject w7 = new BasicObject(board); BasicObject w8 = new BasicObject(board); BasicObject w9 = new BasicObject(board); BasicObject w9p = new BasicObject(board); BasicObject w10 = new BasicObject(board); BasicObject w11 = new BasicObject(board); BasicObject w12 = new BasicObject(board); BasicObject w13 = new BasicObject(board); BasicObject w14 = new BasicObject(board); BasicObject w15 = new BasicObject(board); BasicObject w16 = new BasicObject(board); BasicObject w17 = new BasicObject(board); BasicObject w18 = new BasicObject(board); BasicObject w19 = new BasicObject(board); BasicObject w20 = new BasicObject(board); BasicObject w21 = new BasicObject(board); BasicObject w22 = new BasicObject(board); BasicObject w23 = new BasicObject(board); BasicObject w24 = new BasicObject(board); BasicObject w25 = new BasicObject(board); BasicObject w26 = new BasicObject(board); BasicObject w27 = new BasicObject(board); BasicObject w28 = new BasicObject(board); BasicObject w29 = new BasicObject(board); BasicObject w30 = new BasicObject(board); BasicObject w31 = new BasicObject(board); BasicObject w32 = new BasicObject(board); BasicObject w33 = new BasicObject(board); BasicObject w34 = new BasicObject(board); BasicObject w35 = new BasicObject(board); BasicObject w36 = new BasicObject(board); BasicObject w37 = new BasicObject(board); BasicObject w38 = new BasicObject(board); BasicObject w39 = new BasicObject(board); BasicObject w40 = new BasicObject(board); BasicObject w41 = new BasicObject(board); BasicObject w42 = new BasicObject(board); BasicObject w43 = new BasicObject(board); BasicObject w44 = new BasicObject(board); BasicObject w45 = new BasicObject(board); BasicObject w46 = new BasicObject(board); BasicObject w47 = new BasicObject(board); BasicObject w48 = new BasicObject(board); BasicObject w49 = new BasicObject(board); BasicObject w50 = new BasicObject(board); BasicObject w51 = new BasicObject(board); BasicObject w52 = new BasicObject(board); BasicObject w53 = new BasicObject(board); BasicObject w54 = new BasicObject(board); BasicObject w55 = new BasicObject(board); BasicObject w56 = new BasicObject(board); BasicObject w57 = new BasicObject(board); BasicObject w58 = new BasicObject(board); BasicObject w59 = new BasicObject(board); BasicObject w60 = new BasicObject(board); BasicObject w61 = new BasicObject(board); BasicObject w62 = new BasicObject(board); BasicObject w63 = new BasicObject(board); BasicObject w64 = new BasicObject(board); BasicObject w65 = new BasicObject(board); BasicObject w66 = new BasicObject(board); BasicObject w67 = new BasicObject(board); BasicObject w68 = new BasicObject(board); BasicObject w69 = new BasicObject(board); BasicObject w70 = new BasicObject(board); BasicObject w71 = new BasicObject(board); BasicObject w72 = new BasicObject(board); BasicObject w73 = new BasicObject(board); BasicObject w74 = new BasicObject(board); BasicObject w75 = new BasicObject(board); BasicObject w76 = new BasicObject(board); BasicObject w77 = new BasicObject(board); BasicObject w78 = new BasicObject(board); BasicObject w79 = new BasicObject(board); BasicObject w80 = new BasicObject(board); BasicObject w81 = new BasicObject(board); BasicObject w82 = new BasicObject(board); BasicObject w83 = new BasicObject(board); BasicObject w84 = new BasicObject(board); BasicObject w85 = new BasicObject(board); // first lower row w0.setGridPosition(1, 22); w1.setGridPosition(2, 22); w2.setGridPosition(3, 22); w3.setGridPosition(4, 22); w4.setGridPosition(5, 22); w5.setGridPosition(6, 22); w6.setGridPosition(7, 22); w7.setGridPosition(8, 22); w8.setGridPosition(9, 22); w9p.setGridPosition(10,22); w9.setGridPosition(11, 22); w10.setGridPosition(12, 22); w11.setGridPosition(13, 22); w12.setGridPosition(14, 22); w13.setGridPosition(18, 22); w14.setGridPosition(19, 22); w15.setGridPosition(20, 22); w16.setGridPosition(21, 22); w17.setGridPosition(22, 22); w18.setGridPosition(23, 22); w19.setGridPosition(24, 22); w20.setGridPosition(25, 22); w21.setGridPosition(26, 22); w22.setGridPosition(27, 22); w23.setGridPosition(28, 22); w24.setGridPosition(29, 22); w25.setGridPosition(30, 22); w26.setGridPosition(31, 22); w27.setGridPosition(32, 22); for (int m = 1; m < 15; m++) { board.setGridPositionOccupied(m, 22); } for (int m = 18; m < 33; m++) { board.setGridPositionOccupied(m, 22); } //second lower row w28.setGridPosition(1, 21); w29.setGridPosition(2, 21); w30.setGridPosition(3, 21); w31.setGridPosition(4, 21); w32.setGridPosition(5, 21); w33.setGridPosition(6, 21); w34.setGridPosition(7, 21); w35.setGridPosition(8, 21); w36.setGridPosition(9, 21); w37.setGridPosition(10, 21); w38.setGridPosition(11, 21); w39.setGridPosition(12, 21); w40.setGridPosition(13, 21); w41.setGridPosition(14, 21); w42.setGridPosition(18, 21); w43.setGridPosition(19, 21); w44.setGridPosition(20, 21); w45.setGridPosition(21, 21); w46.setGridPosition(22, 21); w47.setGridPosition(23, 21); w48.setGridPosition(24, 21); w49.setGridPosition(25, 21); w50.setGridPosition(26, 21); w51.setGridPosition(27, 21); w52.setGridPosition(28, 21); w53.setGridPosition(29, 21); w54.setGridPosition(30, 21); w55.setGridPosition(31, 21); w56.setGridPosition(32, 21); for (int m = 1; m < 15; m++) { board.setGridPositionOccupied(m, 21); } for (int m = 18; m < 33; m++) { board.setGridPositionOccupied(m, 21); } //third lower row w57.setGridPosition(1, 20); w58.setGridPosition(2, 20); w59.setGridPosition(3, 20); w60.setGridPosition(4, 20); w61.setGridPosition(5, 20); w62.setGridPosition(6, 20); w63.setGridPosition(7, 20); w64.setGridPosition(8, 20); w65.setGridPosition(9, 20); w66.setGridPosition(10, 20); w67.setGridPosition(11, 20); w68.setGridPosition(12, 20); w69.setGridPosition(13, 20); w70.setGridPosition(14, 20); w71.setGridPosition(18, 20); w72.setGridPosition(19, 20); w73.setGridPosition(20, 20); w74.setGridPosition(21, 20); w75.setGridPosition(22, 20); w76.setGridPosition(23, 20); w77.setGridPosition(24, 20); w78.setGridPosition(25, 20); w79.setGridPosition(26, 20); w80.setGridPosition(27, 20); w81.setGridPosition(28, 20); w82.setGridPosition(29, 20); w83.setGridPosition(30, 20); w84.setGridPosition(31, 20); w85.setGridPosition(32, 20); for (int m = 1; m < 15; m++) { board.setGridPositionOccupied(m, 20); } for (int m = 18; m < 33; m++) { board.setGridPositionOccupied(m, 20); } //upper area wall BasicObject w86 = new BasicObject(board); BasicObject w87 = new BasicObject(board); BasicObject w88 = new BasicObject(board); BasicObject w89 = new BasicObject(board); BasicObject w90 = new BasicObject(board); BasicObject w91 = new BasicObject(board); BasicObject w92 = new BasicObject(board); BasicObject w93 = new BasicObject(board); BasicObject w94 = new BasicObject(board); BasicObject w95 = new BasicObject(board); BasicObject w96 = new BasicObject(board); BasicObject w97 = new BasicObject(board); BasicObject w98 = new BasicObject(board); BasicObject w99 = new BasicObject(board); BasicObject w100 = new BasicObject(board); BasicObject w101 = new BasicObject(board); BasicObject w102 = new BasicObject(board); BasicObject w103 = new BasicObject(board); BasicObject w104 = new BasicObject(board); BasicObject w105 = new BasicObject(board); BasicObject w106 = new BasicObject(board); BasicObject w107 = new BasicObject(board); BasicObject w108 = new BasicObject(board); BasicObject w109 = new BasicObject(board); BasicObject w110 = new BasicObject(board); BasicObject w111 = new BasicObject(board); BasicObject w112 = new BasicObject(board); BasicObject w113 = new BasicObject(board); BasicObject w114 = new BasicObject(board); BasicObject w115 = new BasicObject(board); BasicObject w116 = new BasicObject(board); BasicObject w117 = new BasicObject(board); BasicObject w118 = new BasicObject(board); BasicObject w119 = new BasicObject(board); BasicObject w120 = new BasicObject(board); BasicObject w121 = new BasicObject(board); BasicObject w122 = new BasicObject(board); BasicObject w123 = new BasicObject(board); BasicObject w124 = new BasicObject(board); BasicObject w125 = new BasicObject(board); BasicObject w126 = new BasicObject(board); BasicObject w127 = new BasicObject(board); BasicObject w128 = new BasicObject(board); BasicObject w129 = new BasicObject(board); BasicObject w130 = new BasicObject(board); BasicObject w131 = new BasicObject(board); BasicObject w132 = new BasicObject(board); BasicObject w133 = new BasicObject(board); BasicObject w134 = new BasicObject(board); BasicObject w135 = new BasicObject(board); BasicObject w136 = new BasicObject(board); BasicObject w137 = new BasicObject(board); BasicObject w138 = new BasicObject(board); BasicObject w139 = new BasicObject(board); BasicObject w140 = new BasicObject(board); BasicObject w141 = new BasicObject(board); BasicObject w142 = new BasicObject(board); BasicObject w143 = new BasicObject(board); BasicObject w144 = new BasicObject(board); BasicObject w145 = new BasicObject(board); BasicObject w146 = new BasicObject(board); BasicObject w147 = new BasicObject(board); BasicObject w148 = new BasicObject(board); BasicObject w149 = new BasicObject(board); BasicObject w150 = new BasicObject(board); BasicObject w151 = new BasicObject(board); BasicObject w152 = new BasicObject(board); BasicObject w153 = new BasicObject(board); BasicObject w154 = new BasicObject(board); BasicObject w155 = new BasicObject(board); BasicObject w156 = new BasicObject(board); BasicObject w157 = new BasicObject(board); BasicObject w158 = new BasicObject(board); BasicObject w159 = new BasicObject(board); BasicObject w160 = new BasicObject(board); BasicObject w161 = new BasicObject(board); BasicObject w162 = new BasicObject(board); BasicObject w163 = new BasicObject(board); BasicObject w164 = new BasicObject(board); BasicObject w165 = new BasicObject(board); BasicObject w166 = new BasicObject(board); BasicObject w167 = new BasicObject(board); BasicObject w168 = new BasicObject(board); BasicObject w169 = new BasicObject(board); BasicObject w170 = new BasicObject(board); BasicObject w171 = new BasicObject(board); BasicObject w172 = new BasicObject(board); // first lower row w86.setGridPosition(1, 1); w87.setGridPosition(2, 1); w88.setGridPosition(3, 1); w89.setGridPosition(4, 1); w90.setGridPosition(5, 1); w91.setGridPosition(6, 1); w92.setGridPosition(7, 1); w93.setGridPosition(8, 1); w94.setGridPosition(9, 1); w95.setGridPosition(10, 1); w96.setGridPosition(11, 1); w97.setGridPosition(12, 1); w98.setGridPosition(13, 1); w99.setGridPosition(14, 1); w100.setGridPosition(18, 1); w101.setGridPosition(19, 1); w102.setGridPosition(20, 1); w103.setGridPosition(21, 1); w104.setGridPosition(22, 1); w105.setGridPosition(23, 1); w106.setGridPosition(24, 1); w107.setGridPosition(25, 1); w108.setGridPosition(26, 1); w109.setGridPosition(27, 1); w110.setGridPosition(28, 1); w111.setGridPosition(29, 1); w112.setGridPosition(30, 1); w113.setGridPosition(31, 1); w114.setGridPosition(32, 1); for (int m = 1; m < 15; m++) { board.setGridPositionOccupied(m, 1); } for (int m = 18; m < 33; m++) { board.setGridPositionOccupied(m, 1); } //second lower row w115.setGridPosition(1, 2); w116.setGridPosition(2, 2); w117.setGridPosition(3, 2); w118.setGridPosition(4, 2); w119.setGridPosition(5, 2); w120.setGridPosition(6, 2); w121.setGridPosition(7, 2); w122.setGridPosition(8, 2); w123.setGridPosition(9, 2); w124.setGridPosition(10, 2); w125.setGridPosition(11, 2); w126.setGridPosition(12, 2); w127.setGridPosition(13, 2); w128.setGridPosition(14, 2); w129.setGridPosition(18, 2); w130.setGridPosition(19, 2); w131.setGridPosition(20, 2); w132.setGridPosition(21, 2); w133.setGridPosition(22, 2); w134.setGridPosition(23, 2); w135.setGridPosition(24, 2); w136.setGridPosition(25, 2); w137.setGridPosition(26, 2); w138.setGridPosition(27, 2); w139.setGridPosition(28, 2); w140.setGridPosition(29, 2); w141.setGridPosition(30, 2); w142.setGridPosition(31, 2); w143.setGridPosition(32, 2); for (int m = 1; m < 15; m++) { board.setGridPositionOccupied(m, 2); } for (int m = 18; m < 33; m++) { board.setGridPositionOccupied(m, 2); } //third lower row w144.setGridPosition(1, 3); w145.setGridPosition(2, 3); w146.setGridPosition(3, 3); w147.setGridPosition(4, 3); w148.setGridPosition(5, 3); w149.setGridPosition(6, 3); w150.setGridPosition(7, 3); w151.setGridPosition(8, 3); w152.setGridPosition(9, 3); w153.setGridPosition(10, 3); w154.setGridPosition(11, 3); w155.setGridPosition(12, 3); w156.setGridPosition(13, 3); w157.setGridPosition(14, 3); w158.setGridPosition(18, 3); w159.setGridPosition(19, 3); w160.setGridPosition(20, 3); w161.setGridPosition(21, 3); w162.setGridPosition(22, 3); w163.setGridPosition(23, 3); w164.setGridPosition(24, 3); w165.setGridPosition(25, 3); w166.setGridPosition(26, 3); w167.setGridPosition(27, 3); w168.setGridPosition(28, 3); w169.setGridPosition(29, 3); w170.setGridPosition(30, 3); w171.setGridPosition(31, 3); w172.setGridPosition(32, 3); for (int m = 1; m < 15; m++) { board.setGridPositionOccupied(m, 3); } for (int m = 18; m < 33; m++) { board.setGridPositionOccupied(m, 3); } //start the sides... BasicObject w173 = new BasicObject(board); BasicObject w174 = new BasicObject(board); BasicObject w175 = new BasicObject(board); BasicObject w176 = new BasicObject(board); BasicObject w177 = new BasicObject(board); BasicObject w178 = new BasicObject(board); BasicObject w179 = new BasicObject(board); BasicObject w180 = new BasicObject(board); BasicObject w181 = new BasicObject(board); BasicObject w182 = new BasicObject(board); BasicObject w183 = new BasicObject(board); BasicObject w184 = new BasicObject(board); BasicObject w185 = new BasicObject(board); BasicObject w186 = new BasicObject(board); BasicObject w187 = new BasicObject(board); BasicObject w188 = new BasicObject(board); BasicObject w189 = new BasicObject(board); BasicObject w190 = new BasicObject(board); BasicObject w191 = new BasicObject(board); BasicObject w192 = new BasicObject(board); BasicObject w193 = new BasicObject(board); BasicObject w194 = new BasicObject(board); BasicObject w195 = new BasicObject(board); BasicObject w196 = new BasicObject(board); BasicObject w197 = new BasicObject(board); BasicObject w198 = new BasicObject(board); BasicObject w199 = new BasicObject(board); BasicObject w200 = new BasicObject(board); BasicObject w201 = new BasicObject(board); BasicObject w202 = new BasicObject(board); BasicObject w203 = new BasicObject(board); BasicObject w204 = new BasicObject(board); BasicObject w205 = new BasicObject(board); BasicObject w206 = new BasicObject(board); BasicObject w207 = new BasicObject(board); BasicObject w208 = new BasicObject(board); BasicObject w209 = new BasicObject(board); BasicObject w210 = new BasicObject(board); BasicObject w211 = new BasicObject(board); BasicObject w212 = new BasicObject(board); BasicObject w213 = new BasicObject(board); BasicObject w214 = new BasicObject(board); BasicObject w215 = new BasicObject(board); BasicObject w216 = new BasicObject(board); BasicObject w217 = new BasicObject(board); BasicObject w218 = new BasicObject(board); BasicObject w219 = new BasicObject(board); BasicObject w220 = new BasicObject(board); BasicObject w221 = new BasicObject(board); BasicObject w222 = new BasicObject(board); BasicObject w223 = new BasicObject(board); BasicObject w224 = new BasicObject(board); BasicObject w225 = new BasicObject(board); BasicObject w226 = new BasicObject(board); BasicObject w227 = new BasicObject(board); BasicObject w228 = new BasicObject(board); BasicObject w229 = new BasicObject(board); BasicObject w230 = new BasicObject(board); BasicObject w231 = new BasicObject(board); BasicObject w232 = new BasicObject(board); BasicObject w233 = new BasicObject(board); BasicObject w234 = new BasicObject(board); BasicObject w235 = new BasicObject(board); BasicObject w236 = new BasicObject(board); BasicObject w237 = new BasicObject(board); BasicObject w238 = new BasicObject(board); BasicObject w239 = new BasicObject(board); BasicObject w240 = new BasicObject(board); BasicObject w241 = new BasicObject(board); BasicObject w242 = new BasicObject(board); BasicObject w243 = new BasicObject(board); BasicObject w244 = new BasicObject(board); BasicObject w245 = new BasicObject(board); BasicObject w246 = new BasicObject(board); BasicObject w247 = new BasicObject(board); BasicObject w248 = new BasicObject(board); BasicObject w249 = new BasicObject(board); BasicObject w250 = new BasicObject(board); BasicObject w251 = new BasicObject(board); BasicObject w252 = new BasicObject(board); BasicObject w253 = new BasicObject(board); BasicObject w254 = new BasicObject(board); BasicObject w255 = new BasicObject(board); BasicObject w256 = new BasicObject(board); BasicObject w257 = new BasicObject(board); BasicObject w258 = new BasicObject(board); w173.setGridPosition(1, 19); w174.setGridPosition(2, 19); w175.setGridPosition(3, 19); w176.setGridPosition(4, 19); w177.setGridPosition(5, 19); w178.setGridPosition(6, 19); w179.setGridPosition(7, 19); w180.setGridPosition(1, 18); w181.setGridPosition(2, 18); w182.setGridPosition(3, 18); w183.setGridPosition(4, 18); w184.setGridPosition(5, 18); w185.setGridPosition(6, 18); w186.setGridPosition(7, 18); w187.setGridPosition(26, 18); w188.setGridPosition(27, 18); w189.setGridPosition(28, 18); w190.setGridPosition(29, 18); w191.setGridPosition(30, 18); w192.setGridPosition(31, 18); w193.setGridPosition(32, 18); w194.setGridPosition(26, 19); w195.setGridPosition(27, 19); w196.setGridPosition(28, 19); w197.setGridPosition(29, 19); w198.setGridPosition(30, 19); w199.setGridPosition(31, 19); w200.setGridPosition(32, 19); for (int m = 1; m < 8; m++) { board.setGridPositionOccupied(m, 19); } for (int m = 1; m < 8; m++) { board.setGridPositionOccupied(m, 18); } for (int m = 26; m < 33; m++) { board.setGridPositionOccupied(m, 19); } for (int m = 26; m < 33; m++) { board.setGridPositionOccupied(m, 18); } w201.setGridPosition(1, 4); w202.setGridPosition(2, 4); w203.setGridPosition(3, 4); w204.setGridPosition(4, 4); w205.setGridPosition(5, 4); w206.setGridPosition(6, 4); w207.setGridPosition(7, 4); w208.setGridPosition(1, 5); w209.setGridPosition(2, 5); w210.setGridPosition(3, 5); w211.setGridPosition(4, 5); w212.setGridPosition(5, 5); w213.setGridPosition(6, 5); w214.setGridPosition(7, 5); w215.setGridPosition(26, 4); w216.setGridPosition(27, 4); w217.setGridPosition(28, 4); w218.setGridPosition(29, 4); w219.setGridPosition(30, 4); w220.setGridPosition(31, 4); w221.setGridPosition(32, 4); w222.setGridPosition(26, 5); w223.setGridPosition(27, 5); w224.setGridPosition(28, 5); w226.setGridPosition(29, 5); w227.setGridPosition(30, 5); w228.setGridPosition(31, 5); w229.setGridPosition(32, 5); for (int m = 1; m < 8; m++) { board.setGridPositionOccupied(m, 4); } for (int m = 1; m < 8; m++) { board.setGridPositionOccupied(m, 5); } for (int m = 26; m < 33; m++) { board.setGridPositionOccupied(m, 4); } for (int m = 26; m < 33; m++) { board.setGridPositionOccupied(m, 5); } w230.setGridPosition(1, 11); w231.setGridPosition(2, 11); w232.setGridPosition(3, 11); w233.setGridPosition(4, 11); w234.setGridPosition(5, 11); w235.setGridPosition(6, 11); w236.setGridPosition(7, 11); w237.setGridPosition(1, 12); w238.setGridPosition(2, 12); w239.setGridPosition(3, 12); w240.setGridPosition(4, 12); w241.setGridPosition(5, 12); w242.setGridPosition(6, 12); w243.setGridPosition(7, 12); w244.setGridPosition(26, 11); w245.setGridPosition(27, 11); w246.setGridPosition(28, 11); w247.setGridPosition(29, 11); w248.setGridPosition(30, 11); w249.setGridPosition(31, 11); w250.setGridPosition(32, 11); w251.setGridPosition(26, 12); w252.setGridPosition(27, 12); w253.setGridPosition(28, 12); w254.setGridPosition(29, 12); w255.setGridPosition(30, 12); w256.setGridPosition(31, 12); w257.setGridPosition(32, 12); for (int m = 1; m < 8; m++) { board.setGridPositionOccupied(m, 11); } for (int m = 1; m < 8; m++) { board.setGridPositionOccupied(m, 12); } for (int m = 26; m < 33; m++) { board.setGridPositionOccupied(m, 11); } for (int m = 26; m < 33; m++) { board.setGridPositionOccupied(m, 12); } walls = new BasicObject[259] {w0, w1, w2, w3, w4, w5, w6, w7, w8, w9, w9p,w10, w11, w12, w13, w14, w15, w16, w17, w18, w19, w20, w21, w22, w23, w24, w25,w26,w27, w28, w29, w30, w31, w32, w33, w34, w35, w36, w37, w38,w39, w40, w41, w42, w43, w44, w45, w46, w47, w48, w49, w50, w51, w52, w53, w54,w55,w56, w57, w58, w59, w60, w61, w62, w63, w64, w65, w66, w67,w68, w69, w70, w71, w72, w73, w74, w75, w76, w77, w78, w79, w80, w81, w82, w83,w84,w85, w86, w87, w88, w89, w90, w91, w92, w93, w94, w95, w96,w97, w98, w99, w100, w101, w102, w103, w104, w105, w106, w107, w108, w109, w110, w111, w112,w113,w114, w115, w116, w117, w118, w119, w120, w121, w122, w123, w124, w125,w126, w127, w128, w129, w130, w131, w132, w133, w134, w135, w136, w137, w138, w139, w140, w141,w142,w143, w144, w145, w146, w147, w148, w149, w150, w151, w152, w153, w154,w155, w156, w157, w158, w159, w160, w161, w162, w163, w164, w165, w166, w167, w168,w169,w170, w171, w172, w173, w174, w175, w176, w177, w178, w179, w180, w181, w182, w183, w184, w185, w186, w187, w188, w189, w190, w191, w192, w193, w194, w195, w196, w197,w198,w199, w200, w201, w202, w203, w204, w205, w206, w207, w208, w209, w210, w211, w212, w213, w214, w215, w216, w217, w218, w219, w220, w221, w222, w223, w224, w225,w226,w227, w228, w229, w230, w231, w232, w233, w234, w235, w236, w237, w238, w239, w240, w241, w242, w243, w244, w245, w246, w247, w248, w249, w250, w251, w252, w253, w254,w255,w256, w257}; }
private void setWalls() { BasicObject w1 = new BasicObject(board); w1.setGridPosition(11, 1); board.setGridPositionOccupied(11, 1); walls = new BasicObject[1] { w1 }; }
private BasicObject[] setWallsInLevelSix() { BasicObject w0 = new BasicObject(board); BasicObject w1 = new BasicObject(board); BasicObject w2 = new BasicObject(board); BasicObject w3 = new BasicObject(board); BasicObject w4 = new BasicObject(board); BasicObject w5 = new BasicObject(board); BasicObject w6 = new BasicObject(board); BasicObject w7 = new BasicObject(board); BasicObject w8 = new BasicObject(board); BasicObject w9 = new BasicObject(board); BasicObject w10 = new BasicObject(board); BasicObject w11 = new BasicObject(board); w0.setGridPosition(13, 1); w1.setGridPosition(13, 2); w2.setGridPosition(13, 3); w3.setGridPosition(13, 4); w4.setGridPosition(13, 5); w5.setGridPosition(13, 6); w6.setGridPosition(20, 1); w7.setGridPosition(20, 2); w8.setGridPosition(20, 3); w9.setGridPosition(20, 4); w10.setGridPosition(20, 5); w11.setGridPosition(20, 6); for (int m = 1; m < 7; m++) { board.setGridPositionOccupied(13, m); } for (int m = 1; m < 7; m++) { board.setGridPositionOccupied(20, m); } walls = new BasicObject[12] { w0, w1, w2, w3, w4, w5, w6, w7, w8, w9, w10, w11 }; return walls; }
private void setBoxPattern() { BasicObject bo1 = new BasicObject(board); bo1.setGridPosition(7, 8); BasicObject bo2 = new BasicObject(board); bo2.setGridPosition(13, 8); BasicObject bo3 = new BasicObject(board); bo3.setGridPosition(19, 8); BasicObject bo4 = new BasicObject(board); bo4.setGridPosition(25, 8); BasicObject bo5 = new BasicObject(board); bo5.setGridPosition(7, 15); BasicObject bo6 = new BasicObject(board); bo6.setGridPosition(13, 15); BasicObject bo7 = new BasicObject(board); bo7.setGridPosition(19, 15); BasicObject bo8 = new BasicObject(board); bo8.setGridPosition(25, 15); BasicObject bo9 = new BasicObject(board); bo9.setGridPosition(10, 10); BasicObject bo10 = new BasicObject(board); bo10.setGridPosition(16, 10); BasicObject bo11 = new BasicObject(board); bo11.setGridPosition(22, 10); BasicObject bo12 = new BasicObject(board); bo12.setGridPosition(10, 13); BasicObject bo13 = new BasicObject(board); bo13.setGridPosition(16, 13); BasicObject bo14 = new BasicObject(board); bo14.setGridPosition(22, 13); spotsForPattern = new BasicObject[14] { bo1, bo2, bo3, bo4, bo5, bo6, bo7, bo8, bo9, bo10, bo11, bo12, bo13, bo14 }; }