2021-10-28 20:19:09 +02:00
|
|
|
package io.gitlab.jfronny.glaunch.windows;
|
|
|
|
|
|
|
|
import io.gitlab.jfronny.glaunch.GLaunch;
|
2021-10-27 22:00:08 +02:00
|
|
|
|
|
|
|
public abstract class Window {
|
|
|
|
private final String name;
|
|
|
|
private boolean isNew = true;
|
|
|
|
|
|
|
|
public Window(String name) {
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void preFirstDraw() {
|
|
|
|
}
|
|
|
|
public abstract void draw();
|
|
|
|
|
|
|
|
public String getName() {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void close() {
|
|
|
|
GLaunch.WINDOWS.remove(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean isNew() {
|
|
|
|
if (isNew) {
|
|
|
|
isNew = false;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|