1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2025-02-20 15:37:31 -05:00

17 lines
414 B
Go
Raw Normal View History

package d2interface
import "github.com/OpenDiablo2/OpenDiablo2/d2common/d2math/d2vector"
// MapEntity is something that can be positioned on and rendered on the game map
type MapEntity interface {
Render(target Surface)
Advance(tickTime float64)
GetPosition() d2vector.Position
GetVelocity() d2vector.Vector
GetLayer() int
GetPositionF() (float64, float64)
Name() string
Selectable() bool
Highlight()
}