Detailed specialist info?

Discussion in 'Civ4 - SDK/Python' started by Phristen, Oct 13, 2007.

  1. Phristen

    Phristen Chieftain

    Joined:
    Aug 5, 2007
    Messages:
    29
    In CvCity.cpp there's a function which returns the total number of specialists, but how do I get a number of *specific* specialists? For example, how do I figure, how many engineers are in the city?

    I know the answer must be simple, but I just can't find it.
     
  2. Phristen

    Phristen Chieftain

    Joined:
    Aug 5, 2007
    Messages:
    29
    Ok, does this mean that nobody knows, or am I simply asking a stupid question?
     
  3. Seven05

    Seven05 Warmonger

    Joined:
    Dec 5, 2005
    Messages:
    2,056
    Gender:
    Male
    Location:
    USA
    Maybe both? :)

    I haven't looked into it myself so I fall under the 'nobody knows' category. If nobody else has answered by Monday when I have some more free time I'll take a look into it.
     
  4. PeteT

    PeteT Warlord

    Joined:
    Jan 2, 2002
    Messages:
    273
    Location:
    Winterpeg
    It looks like you want to use:

    Code:
    int CvCity::getSpecialistCount(SpecialistTypes eIndex)
     
  5. Phristen

    Phristen Chieftain

    Joined:
    Aug 5, 2007
    Messages:
    29
    It does indeed, thanks.
     

Share This Page