(Graphics2D g, boolean reversed)
| 266 | } |
| 267 | |
| 268 | private void drawBackground(Graphics2D g, boolean reversed) |
| 269 | { |
| 270 | if(reversed) |
| 271 | { |
| 272 | g.drawImage(graphwar.getGameData().getObstacle().getImage(), 0, 0, Constants.PLANE_LENGTH, Constants.PLANE_HEIGHT, Constants.PLANE_LENGTH, 0, 0, Constants.PLANE_HEIGHT, null); |
| 273 | } |
| 274 | else |
| 275 | { |
| 276 | g.drawImage(graphwar.getGameData().getObstacle().getImage(), 0, 0, null); |
| 277 | } |
| 278 | |
| 279 | g.setColor(Color.BLACK); |
| 280 | |
| 281 | g.drawLine(0, Constants.PLANE_HEIGHT/2, Constants.PLANE_LENGTH, Constants.PLANE_HEIGHT/2); |
| 282 | g.drawLine(Constants.PLANE_LENGTH/2, 0, Constants.PLANE_LENGTH/2, Constants.PLANE_HEIGHT); |
| 283 | } |
| 284 | |
| 285 | public void startDrawingFunction() |
| 286 | { |
no test coverage detected