private void updateFSM(long elapsedTime) { if (keyDown(KeyEvent.VK_S)) { mySwitch.setOn(true); } myPlatform.update(elapsedTime); mySwitch.update(elapsedTime); myEvent.update(elapsedTime); }
private void renderFSM(Graphics2D graphics) { myPlatform.render(graphics); mySwitch.render(graphics); myFighter.render(graphics); }