S
Stainless
I want a class NPC which has a member variable wpn which is a pointer
to a Weapon class.
However the Weapon class has methods that require pointers to NPC
classes.
so obviously in Weapon.h I include NPC.h
and in NPC.h I include Weapon.h
both have proper #ifndef <blah> #define <blah> #endif structures
but the compiler can't handle it
Is this a valid c++ situation?
Or do I have to use void * and do something like dynamic_cast
--
to a Weapon class.
However the Weapon class has methods that require pointers to NPC
classes.
so obviously in Weapon.h I include NPC.h
and in NPC.h I include Weapon.h
both have proper #ifndef <blah> #define <blah> #endif structures
but the compiler can't handle it
Is this a valid c++ situation?
Or do I have to use void * and do something like dynamic_cast
--