The situation is this I have (or will have) two tlists, each of which are constantly having objects added and removed.. The objects in tlistB are spawned by objects in tlistA who are otherwise oblivious of them(Fire and forget).
Every cycle objects in tlistB need to access certain fields on their parent objects in tlistA such as position and speed , which update every cycle, but are otherwise independent of tlistA.
The only way I can think to do this is using pointers. Object in TlistB has a pointer to its parent or the parent field in tlistA which it can use to access the relevant info.
Can anyone suggest a simple way to do this without using pointers?
Every cycle objects in tlistB need to access certain fields on their parent objects in tlistA such as position and speed , which update every cycle, but are otherwise independent of tlistA.
The only way I can think to do this is using pointers. Object in TlistB has a pointer to its parent or the parent field in tlistA which it can use to access the relevant info.
Can anyone suggest a simple way to do this without using pointers?