Original Post
Hi,
i have a little problem. Now i have some Classes like cWorld, cPlayer, cInput, cLog... ! i have put them in the files like cWorld.cpp/h, cPlayer.cpp/h... The Main File is main.cpp. New i implemented all classes in main.cpp like this
#include "CWorld.h"
#include "CPlayer.h"
cWorld world;
cPlayer pl;
Ok, that
s allright. Now my problem... For Example i want to use in cInput the world deklaration. but how can i implement something. I thought like an globals.h where all the deklaration are and every file can use the world and other files. But i dont know how.
Thanks
Lutz Hören
P.S. sorry for my bad English, not my native language