Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package cz.ascaria.zoneofuprising.gui;
- import tonegod.gui.core.Screen;
- /**
- *
- * @author Ascaria Quynn
- */
- abstract public class BaseLayout implements Layout {
- protected GuiManager guiManager;
- protected Screen screen;
- public void setGuiManager(GuiManager guiManager) {
- this.guiManager = guiManager;
- }
- public void setScreen(Screen screen) {
- this.screen = screen;
- }
- protected void checkScreen() {
- if(null == screen) {
- throw new IllegalStateException("You must use setScreen() first");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement