summaryrefslogtreecommitdiff
path: root/src/main/kotlin/de/romjaki/pluggabledino/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/de/romjaki/pluggabledino/events')
-rw-r--r--src/main/kotlin/de/romjaki/pluggabledino/events/GameLostEvent.kt5
-rw-r--r--src/main/kotlin/de/romjaki/pluggabledino/events/GameRenderEvent.kt9
-rw-r--r--src/main/kotlin/de/romjaki/pluggabledino/events/GameUpdateEvent.kt8
3 files changed, 22 insertions, 0 deletions
diff --git a/src/main/kotlin/de/romjaki/pluggabledino/events/GameLostEvent.kt b/src/main/kotlin/de/romjaki/pluggabledino/events/GameLostEvent.kt
new file mode 100644
index 0000000..cb0ddb9
--- /dev/null
+++ b/src/main/kotlin/de/romjaki/pluggabledino/events/GameLostEvent.kt
@@ -0,0 +1,5 @@
+package de.romjaki.pluggabledino.events
+
+import de.romjaki.pluggabledino.api.Event
+
+data class GameLostEvent(val score: Int) : Event \ No newline at end of file
diff --git a/src/main/kotlin/de/romjaki/pluggabledino/events/GameRenderEvent.kt b/src/main/kotlin/de/romjaki/pluggabledino/events/GameRenderEvent.kt
new file mode 100644
index 0000000..b2925e7
--- /dev/null
+++ b/src/main/kotlin/de/romjaki/pluggabledino/events/GameRenderEvent.kt
@@ -0,0 +1,9 @@
+package de.romjaki.pluggabledino.events
+
+import de.romjaki.pluggabledino.api.Event
+import org.newdawn.slick.GameContainer
+import org.newdawn.slick.Graphics
+import org.newdawn.slick.state.StateBasedGame
+
+
+data class GameRenderEvent(val graphics: Graphics, val game: StateBasedGame, val container: GameContainer) : Event \ No newline at end of file
diff --git a/src/main/kotlin/de/romjaki/pluggabledino/events/GameUpdateEvent.kt b/src/main/kotlin/de/romjaki/pluggabledino/events/GameUpdateEvent.kt
new file mode 100644
index 0000000..550c853
--- /dev/null
+++ b/src/main/kotlin/de/romjaki/pluggabledino/events/GameUpdateEvent.kt
@@ -0,0 +1,8 @@
+package de.romjaki.pluggabledino.events
+
+import de.romjaki.pluggabledino.api.Event
+import de.romjaki.pluggabledino.game.GameWorld
+import org.newdawn.slick.Game
+import org.newdawn.slick.GameContainer
+
+data class GameUpdateEvent(val game: Game, val delta: Int, val container: GameContainer, val world: GameWorld) : Event \ No newline at end of file