ASnogarD Author 212 November 17, 2010 01:21 PM

Hi.



I am STILL battling to work out how to access classes, the methods I am currently using are messy and make for really convuluted code in my opinion.



I would really appreciate some sources for refrence to methods used to store object pointers, lists and message ID's ( or whatever methods other programmers use to access thier classes and the class functions, beyond the basic declare object or make a simple pointer )



NOTE: I dont need to know when or why use classes, I want to learn how to access objects, the class functions and data more efficiently.

Currently I use the normal declare object and access via the object membership operator , or a declare a object and send a pile of pointers to that objects constructor so it can set its pointers so it can access other classes.



Example:



In main I would have a World mWorld( &mPlayer , &mAli , &mIO ... more &'s).

In the World.h file I would have a list of pointers declared, and in the constructor I have a pack of pointers = parameter supplied pointers.





In short, I would appreciate some material to peruse that deals with programmers methods of dealing with lots of classes and lots of objects.