2022-05-17 23:29:59 -04:00
|
|
|
package simulator
|
|
|
|
|
2022-05-19 15:18:03 -04:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
)
|
|
|
|
|
2022-05-17 23:29:59 -04:00
|
|
|
//Tile is a tile
|
|
|
|
type Tile struct {
|
|
|
|
Maker Producer
|
|
|
|
User *Player
|
|
|
|
}
|
2022-05-19 15:18:03 -04:00
|
|
|
|
|
|
|
func (t *Tile) String() string {
|
|
|
|
var res string
|
|
|
|
if t.Maker != nil {
|
|
|
|
res += fmt.Sprintf("There is a %v here\n", t.Maker.Describe())
|
|
|
|
} else {
|
|
|
|
res += "Nothing here"
|
|
|
|
}
|
|
|
|
return res
|
|
|
|
}
|