SDK how do I make a count of IMPROVEMENT_OFFSHORE_PLATFORM?

is there at leat an "expression" that recall all the improvements or only some like GC.getImprovementInfo(...) or GC.getTerrainInfos(...)...

anyone knows it? or maybe something similar?
 
it should be this - found in CvGame.cpp

CvGame::getImprovementInfo(IMPROVEMENT_OFFSHORE_PLATFORM).getiOilAmmountCouter()

am I wrong?
am I complitely wrong?
am I jsut a bit wrong?

any idea plssssss........ :confused:
 
it should be this - found in CvGame.cpp

CvGame::getImprovementInfo(IMPROVEMENT_OFFSHORE_PLATFORM).getiOilAmmountCouter()
- where iOilAmmoutCounter is a value I gave at improvement into terraininfos.xml or similar.

am I wrong?
am I complitely wrong?
am I jsut a bit wrong?

any idea plssssss........ :confused:
 
I made it like this in cvplayer.cpp

int CvPlayer::OilAugmentation()
{
int OilAugmentation
{

OilAugmentation = (GC.getImprovementInfo(getNumImprovementInfo(getInfoTypeForString("IMPROVEMENT_WELL")))) * GC.getImprovementInfo(getImprovementType()).getOilPerTurn() + (GC.getImprovementInfos(getNumImprovementInfo(getInfoTypeForString("IMPROVEMENT_OFFSHORE_PLATFORM")))) * GC.getImprovementInfo(getImprovementType()).getOilPerTurn()

}

return OilAugmentation

}

This, in my mind, should get the number of improvements with that name and multiply it for the ammount I've inserted into the new integer costant from xml Civ4ImprovementInfos.xml.
That should return the Augmentation of oil each turn.
Correct?
 
Back
Top Bottom