mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-06-12 02:30:43 +00:00
6a8b9aada1
* adding debug printing boxes for entity bounds * minor edits - adding `spawnmon` command. currently does not have a netpacket, just for debug - adding `GetSize` method to map entities for getting frame bounds (for debug printing) * bug fix
18 lines
445 B
Go
18 lines
445 B
Go
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
|
|
GetSize() (width, height int)
|
|
GetLayer() int
|
|
GetPositionF() (float64, float64)
|
|
Name() string
|
|
Selectable() bool
|
|
Highlight()
|
|
}
|