Files
Crimson-Gatekeeper/srv/cmd/tool/lab/pasture/dog.go

22 lines
268 B
Go
Raw Normal View History

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}
}