ThorHammerz
zzz
- Joined
- Jul 31, 2014
- Messages
- 836
(Really noob/basic question, I know
, still new to C++ programming)
How would I call a function (let's say, 'GetMaxEffectiveCities(bool bIncludePuppets)' from the file CvPlayer.cpp), from a function in another file (i.e. CvTreasury.cpp)?
Would I have to #include CvPlayer.h at the top of CvTreasury.cpp? Would I need to do anything with CvTreasury.h?

How would I call a function (let's say, 'GetMaxEffectiveCities(bool bIncludePuppets)' from the file CvPlayer.cpp), from a function in another file (i.e. CvTreasury.cpp)?
Would I have to #include CvPlayer.h at the top of CvTreasury.cpp? Would I need to do anything with CvTreasury.h?