This commit is contained in:
anton.gurov
2019-11-05 18:32:00 +03:00
parent a195e335eb
commit fcf34831cb
5 changed files with 70 additions and 2 deletions

View File

@ -1,7 +1,6 @@
package movement
import (
"fmt"
"lab.zaar.be/thefish/alchemyst-go/engine/ecs"
"lab.zaar.be/thefish/alchemyst-go/engine/gamemap"
"lab.zaar.be/thefish/alchemyst-go/engine/mob"
@ -19,6 +18,7 @@ func (mov Moveable) Walk() {
}
//fixme change it to WhatsOnTile
func (mov Moveable) IsBlocked(c types.Coords) bool {
if mov.Level.GetTile(c).BlocksPass == true {
return true
@ -41,7 +41,6 @@ func (mov Moveable) IsBlocked(c types.Coords) bool {
return true
}
}
fmt.Printf("\nCoords %v do not block pass!", c)
return false
}