mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-20 23:44:04 +09:00
com.torvald → net.torvald
Former-commit-id: 375604da8a20a6ba7cd0a8d05a44add02b2d04f4 Former-commit-id: 287287c5920b07618174d7a7573f049d350ded66
This commit is contained in:
32
src/net/torvald/terrarum/ui/UICanvas.kt
Normal file
32
src/net/torvald/terrarum/ui/UICanvas.kt
Normal file
@@ -0,0 +1,32 @@
|
||||
package net.torvald.terrarum.ui
|
||||
|
||||
import org.newdawn.slick.GameContainer
|
||||
import org.newdawn.slick.Graphics
|
||||
import org.newdawn.slick.Input
|
||||
|
||||
/**
|
||||
* Created by minjaesong on 15-12-31.
|
||||
*/
|
||||
interface UICanvas {
|
||||
|
||||
var width: Int
|
||||
var height: Int
|
||||
/**
|
||||
* In milliseconds
|
||||
*/
|
||||
var openCloseTime: Int
|
||||
|
||||
fun update(gc: GameContainer, delta: Int)
|
||||
|
||||
fun render(gc: GameContainer, g: Graphics)
|
||||
|
||||
fun processInput(input: Input)
|
||||
|
||||
fun doOpening(gc: GameContainer, delta: Int)
|
||||
|
||||
fun doClosing(gc: GameContainer, delta: Int)
|
||||
|
||||
fun endOpening(gc: GameContainer, delta: Int)
|
||||
|
||||
fun endClosing(gc: GameContainer, delta: Int)
|
||||
}
|
||||
Reference in New Issue
Block a user