aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/Scene.java
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-02-10 19:40:08 +0100
committerNao Pross <naopross@thearcway.org>2018-02-10 19:40:08 +0100
commit221aec874940378f5d8b6411e8b5c141816d5a1e (patch)
tree4ca7cb54583d50666d4e17230a505739813a3ab5 /src/main/java/Scene.java
parentAdd missing @Override(s) (diff)
downloadSubconscious-old-221aec874940378f5d8b6411e8b5c141816d5a1e.tar.gz
Subconscious-old-221aec874940378f5d8b6411e8b5c141816d5a1e.zip
Add simple mouseclick listener to scenes
Diffstat (limited to '')
-rw-r--r--src/main/java/Scene.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/Scene.java b/src/main/java/Scene.java
index a2949fd..0d8a908 100644
--- a/src/main/java/Scene.java
+++ b/src/main/java/Scene.java
@@ -1,5 +1,11 @@
import java.awt.Graphics;
public abstract class Scene {
- abstract void render(Graphics g);
+ protected int sceneYOffset = 0;
+ protected int sceneXOffset = 0;
+
+ abstract public void render(Graphics g);
+
+ public void mouseHover(int x, int y) {}
+ public void mouseClicked(int x, int y) {}
}