Bug in ObjC II: The FoodSpace
- Here create a world for the bug to roam around in and eat
- The world is defined in FoodSpace, a subclass of Discrete2d
- Discrete2d manages a lattice of integer values
By passing the Bug a pointer
to FoodSpace it can “talk” to
(i.e. forage in) the other object