I'm looking at the API and can't figure out how to use the functions under CvInfoBase. The one I need to use is getDomainType() and it returns a integer value. But what do I feed it - and how? I'm guessing it should be an instance of a class (or something), but I have only the unit type (int).
I can't use the function in the CyPlayer class because I'm trying to sort of out whether or not a unit is land or sea going - prior to creating it. (In order to check whether or not the target plot is valid.)
Does anyone know?
I can't use the function in the CyPlayer class because I'm trying to sort of out whether or not a unit is land or sea going - prior to creating it. (In order to check whether or not the target plot is valid.)
Does anyone know?