Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Food ¶
type Food struct {
// contains filtered or unexported fields
}
Food structs hold the key properties of food.
func New ¶
func New(cm locationmanager.Detection, foodLevel float64) *Food
Initialize a new food object.
func (*Food) Check ¶
Attempt to tear down a food object. Call this at the end of each cycle, to remove it from the collision manager. Returns a boolean for whether the teardown occured.
func (*Food) GetContent ¶
Content checking. This is provided for testing purposes.
Click to show internal directories.
Click to hide internal directories.