Hi,
I have a project with 5 Classes. PMAIN ist my main class, where I make
instances of all the other classes.
The Class ENVIRONMEN, ROOM and CHARACTER are instanciated only one
time !!!
Many methods in all these classes need to be some instances of the
other classes as prameters.
e.g. myRoom.Draw (ENVIRONMENT myEnvironment, CHARACTER myCharacter)
Is there a possibility to access the one instances of the classes
without passing them via parameter to the
method.
What I have in mind is something like a global instance which I make
in the PMAIN class and which I can
access in all other classes like mentioned in the small example above.
Thanks for any ideas
Frank