31 lines
543 B
Java
31 lines
543 B
Java
![]() |
package io.gitlab.jfronny.glaunch;
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
}
|