Files
zire/pasture/dog.go

22 lines
268 B
Go
Raw Normal View History

2026-03-06 00:07:44 +08:00
package pasture
type Dog struct {
lines string
weapon string
}
func (d *Dog) Sound() string {
return d.lines
}
func (d *Dog) Dangers() bool {
if len(d.weapon) == 0 {
return false
}
return true
}
func NewDog(line string) *Dog {
return &Dog{lines: line}
}