spacetea/simulator/tile.go
2022-05-19 17:09:46 -04:00

22 lines
304 B
Go

package simulator
import (
"fmt"
)
//Tile is a tile
type Tile struct {
Building Object
User *Player
}
func (t *Tile) String() string {
var res string
if t.Building != nil {
res += fmt.Sprintf("There is a %v here\n", t.Building.Describe())
} else {
res += "Nothing here"
}
return res
}