isau
Deity
- Joined
- Jan 15, 2007
- Messages
- 3,071
I'm not a C++ guy, so some help is appreciated.
The more I look at it, the more GET_PLAYER confuses me. It seems to return an instance of CvPlayerAI, but most of the public methods available to CvPlayerAI can't be used with GET_PLAYER. For example:
..throws an error similar to "getCanDoCivics is not a member of CvPlayerAI." I know I must be missing something super obvious, but after a few hours of looking at this I'm not any closer to an answer. Can someone help me out?
-isau
The more I look at it, the more GET_PLAYER confuses me. It seems to return an instance of CvPlayerAI, but most of the public methods available to CvPlayerAI can't be used with GET_PLAYER. For example:
Code:
GET_PLAYER( GC.getGame().getActivePlayer() ).getCanDoCivics(eCivic)
..throws an error similar to "getCanDoCivics is not a member of CvPlayerAI." I know I must be missing something super obvious, but after a few hours of looking at this I'm not any closer to an answer. Can someone help me out?
-isau