I have a class called Actor, and a class called Beast. I want to have an array of all Beast and Actor objects within each Actor and Beast object. So say I have two Actors: a1 and a2, and two Beasts: b1 and b2, there would be an array in a1 that contained a reference to a1, a2, b1, and b2. This same array would be in a2, b1, and b2.
How would I go about making this array?