2019-11-01 19:59:12 +03:00

25 lines
369 B
Go

package mob
import (
"fmt"
"lab.zaar.be/thefish/alchemyst-go/engine/types"
)
type Mob struct {
*types.Appearance
types.Coords
BlocksPass bool
}
func (m *Mob) Walk(dx, dy int) {
m.Coords = types.Coords{m.X + dx, m.Y + dy}
fmt.Printf("new coords: %d, %d\n", m.Coords.X, m.Coords.Y)
}
func (m *Mob) Render() {
}
func (m *Mob) MoveToCoords(c types.Coords) {
}