N
Nick Forrington
Hi, was wondering if anyone could help me out here, either by someone
telling me how to do what I'm trying to do or by letting me know it
can't be done...
I've got a Game class and an Entity class, the Game has a number of
entities in it, and I want the entity to have a reference to the game class.
The compiler obviously doens't like this. I read someone where about a
solution of just declaring the Game class "class Game;" without
including the file, or vice versa, but this just makes the compiler
complain when I try to access a method of the Game class.
Any ideas? can this even be done?
Thanks in advance
Nick
telling me how to do what I'm trying to do or by letting me know it
can't be done...
I've got a Game class and an Entity class, the Game has a number of
entities in it, and I want the entity to have a reference to the game class.
The compiler obviously doens't like this. I read someone where about a
solution of just declaring the Game class "class Game;" without
including the file, or vice versa, but this just makes the compiler
complain when I try to access a method of the Game class.
Any ideas? can this even be done?
Thanks in advance
Nick