1
General / #include Puzzle
« on: June 21, 2014, 07:07:42 am »
Hi everyone. I am working on a game that has a lot of files. The problem is that I don't think that I am including the header files in the right sequence, so some of the classes are undefined. The files are Battlefield.h, Creature.h, Enemy.h, Button.h. I've spent hours trying to code it so:
Battlefield.h has Creature.h, Enemy.h, and Button.h defined.
Creature.h has Enemy.h and Battlefield.h defined.
Enemy.h has Creature.h and Battlefield.h defined.
Button.h has Creature.h and Battlefield.h defined.
Thanks in advance.
Battlefield.h has Creature.h, Enemy.h, and Button.h defined.
Creature.h has Enemy.h and Battlefield.h defined.
Enemy.h has Creature.h and Battlefield.h defined.
Button.h has Creature.h and Battlefield.h defined.
Thanks in advance.