1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-12 02:30:43 +00:00
OpenDiablo2/d2common/d2interface/map_entity.go
lord 6a8b9aada1
Minor edits: debug entity frame bounds, debug spawnmon command (#666)
* 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
2020-08-01 19:03:09 -04:00

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()
}