19 lines
289 B
Go
19 lines
289 B
Go
|
|
package elements
|
||
|
|
|
||
|
|
import (
|
||
|
|
"fluids/gamedata"
|
||
|
|
|
||
|
|
"github.com/hajimehoshi/ebiten/v2"
|
||
|
|
)
|
||
|
|
|
||
|
|
type MappedEntity interface {
|
||
|
|
Draw()
|
||
|
|
Update()
|
||
|
|
GetSprite() *ebiten.Image
|
||
|
|
GetDimensions() gamedata.Vector
|
||
|
|
GetPosition() gamedata.Vector
|
||
|
|
SetPosition(gamedata.Vector)
|
||
|
|
SetPaused(bool)
|
||
|
|
Paused() bool
|
||
|
|
}
|