public static void displayRealm(Realm r) { if (Logic.getPlayer() != null) { LAYER = BACKGROUND_LAYER; setCameraBackground(); camera.setCameraBound(r.getCameraBound()); Model background = r.getBackground(); if (background != null) { background.draw(null, null, null); } camera.setPos(Logic.getPlayer().getPos()); setCameraLevel(); LAYER = STATIC_LAYER; for (Entity i : r.getEntities()) i.draw(); for (Entity i : r.getWayPoints()) { i.draw(); } LAYER = UNIT_LAYER; for (EntityUnit i : r.getUnits()) i.draw(); LAYER = DYNAMIC_LAYER; for (EntityMissile i : r.getMissiles()) i.draw(); GUI gui = Main.getGameState(STATE_SETTING_MENU).getGUI("GUI_CB_PARTICLES"); if (gui != null && ((GUICheckBox) gui).getValue()) { LAYER = PARTICLE_LAYER; for (EntityParticle i : r.getParticles()) i.draw(); } } }
public static void main(String[] args) { Logic logic = new Logic(); System.out.println(logic.method()); }