mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-13 03:56:31 -05:00
14 lines
314 B
Go
14 lines
314 B
Go
|
package d2interface
|
||
|
|
||
|
// MapEntity is something that can be positioned on and rendered on the game map
|
||
|
type MapEntity interface {
|
||
|
Render(target Surface)
|
||
|
Advance(tickTime float64)
|
||
|
GetPosition() (float64, float64)
|
||
|
GetLayer() int
|
||
|
GetPositionF() (float64, float64)
|
||
|
Name() string
|
||
|
Selectable() bool
|
||
|
Highlight()
|
||
|
}
|