diff options
author | Nao Pross <naopross@thearcway.org> | 2018-02-10 19:40:08 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-02-10 19:40:08 +0100 |
commit | 221aec874940378f5d8b6411e8b5c141816d5a1e (patch) | |
tree | 4ca7cb54583d50666d4e17230a505739813a3ab5 /src/main/java/Scene.java | |
parent | Add missing @Override(s) (diff) | |
download | Subconscious-old-221aec874940378f5d8b6411e8b5c141816d5a1e.tar.gz Subconscious-old-221aec874940378f5d8b6411e8b5c141816d5a1e.zip |
Add simple mouseclick listener to scenes
Diffstat (limited to 'src/main/java/Scene.java')
-rw-r--r-- | src/main/java/Scene.java | 8 |
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) {} } |