> I tried a sample project to see if I could just have an array that
> holds GameObjects, and I could append whatever subclass of GameObject
> to it I wanted (i.e append a PlayerObject, then append a few
> EnemyObjects, whatever...). Then I could just say myArray(i).nextframe
> and it would do the nextframe for the appropriate subclass. (i.e. if
> myArray(i) had been added as an EnemyObject, it would execute the
> nextframe method as written in the EnemyObject subclass.)
>
> Well, that doesn't work (I didn't see how it could, but thought I'd
> try).
It's a common enough approach; did you actually try it? If so, what problem
did you run into?
lj
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|