Why we need in creature class a pointer to manager?


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Eric on April 21, 2001 at 11:01:49:

In Reply to: Why do we need in creature class a pointer to manager? posted by Naveed on April 21, 2001 at 02:59:24:

If your creature has no way to communicate with the manager/ecosystem, how can the creature find out what's around to eat?
Ideally you want the creature's foraging code within the creature class, not off in the manager class(ie. having manager look for food and 'tell' the creature to eat it).
To avoid having manager/ecosystem tell the creature how to eat, the creature needs to be able to ask questions of the ecosystem. Like "is there food in my square?" I think McQuain explained this in the design solution.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]