Inheritance and the collision handler
Thies Pfeiffer <[email protected]> Tue, 26 Jul 2005 09:28:17 +0200
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
Hi, I just encountered a problem when preparing the course-material for our AI course (which of course is based on breve ;-) ): The "handle-collisions", which expects the name of a type to be specified as string, does not respect inheritance, or does it? The problem occured when we provided a base class for agents the students could subclass. In this situation we do not know the name of their agent beforehand, but some of the auxiliary objects need to handle collisions with the agents. Therefore we would need the name of their subclass with the current implementation to handle-collisions. But it would be nice if we just could say: handle-collisions "OURBASECLASS" and the subclasses will also be caught (following the inheritance tree). Hmm. I hope you did get the point ;-) By the way: the documentation seems to need some updates. Some of the examples are only fractionary and e.g. the vector and its subcomponents are not sufficiently described. Ciao Thies -- Dipl. Inform. Thies Pfeiffer University of Bielefeld - SFB 360 - Project C3 - Room D4-123 EMail: [email protected] - Telephone: +49 521 106 5276 _______________________________________________ breve mailing list [email protected] http://lists.spiderland.org/mailman/listinfo/breve