1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986 |
- //
- // Python wrapper class for CvCity
- //
- #include "CvGameCoreDLL.h"
- #include "CyCity.h"
- #include "CvCity.h"
- #include "CyPlot.h"
- #include "CyArea.h"
- #include "CyUnit.h"
- #include "CvDLLPythonIFaceBase.h"
- #include "CvGlobals.h"
- CyCity::CyCity() : m_pCity(NULL)
- {
- }
- CyCity::CyCity(CvCity* pCity) : m_pCity(pCity)
- {
- }
- void CyCity::kill()
- {
- if (m_pCity)
- m_pCity->kill(true);
- }
- /************************************************************************************************/
- /* REVOLUTION_MOD 03/29/09 jdog5000 */
- /* */
- /* */
- /************************************************************************************************/
- int CyCity::getRevolutionIndex()
- {
- if( m_pCity )
- return m_pCity->getRevolutionIndex();
- else
- return 0;
- }
- void CyCity::setRevolutionIndex( int iNewValue )
- {
- if( m_pCity )
- m_pCity->setRevolutionIndex(iNewValue);
- }
- void CyCity::changeRevolutionIndex( int iChange )
- {
- if( m_pCity )
- m_pCity->changeRevolutionIndex( iChange );
- }
- int CyCity::getLocalRevIndex()
- {
- if( m_pCity )
- return m_pCity->getLocalRevIndex();
- else
- return 0;
- }
- void CyCity::setLocalRevIndex( int iNewValue )
- {
- if( m_pCity )
- m_pCity->setLocalRevIndex( iNewValue );
- }
- void CyCity::changeLocalRevIndex( int iChange )
- {
- if( m_pCity )
- m_pCity->changeLocalRevIndex( iChange );
- }
- int CyCity::getRevIndexAverage() const
- {
- if( m_pCity )
- return m_pCity->getRevIndexAverage();
- else
- return 0;
- }
- void CyCity::setRevIndexAverage( int iNewValue )
- {
- if( m_pCity )
- m_pCity->setRevIndexAverage( iNewValue );
- }
- void CyCity::updateRevIndexAverage( )
- {
- if( m_pCity )
- m_pCity->updateRevIndexAverage( );
- }
- int CyCity::getReinforcementCounter()
- {
- if( m_pCity )
- return m_pCity->getReinforcementCounter();
- else
- return 0;
- }
- void CyCity::setReinforcementCounter( int iNewValue )
- {
- if( m_pCity )
- m_pCity->setReinforcementCounter(iNewValue);
- }
- void CyCity::changeReinforcementCounter( int iChange )
- {
- if( m_pCity )
- m_pCity->changeReinforcementCounter( iChange );
- }
- int CyCity::getRevolutionCounter()
- {
- if( m_pCity )
- return m_pCity->getRevolutionCounter();
- else
- return 0;
- }
- void CyCity::setRevolutionCounter( int iNewValue )
- {
- if( m_pCity )
- m_pCity->setRevolutionCounter(iNewValue);
- }
- void CyCity::changeRevolutionCounter( int iChange )
- {
- if( m_pCity )
- m_pCity->changeRevolutionCounter( iChange );
- }
- int CyCity::getRevIndexHappinessVal()
- {
- if( m_pCity )
- return m_pCity->getRevIndexHappinessVal();
- else
- return 0;
- }
- int CyCity::getRevIndexDistanceVal()
- {
- if( m_pCity )
- return m_pCity->getRevIndexDistanceVal();
- else
- return 0;
- }
- int CyCity::getRevIndexColonyVal()
- {
- if( m_pCity )
- return m_pCity->getRevIndexColonyVal();
- else
- return 0;
- }
- int CyCity::getRevIndexReligionVal()
- {
- if( m_pCity )
- return m_pCity->getRevIndexReligionVal();
- else
- return 0;
- }
- int CyCity::getRevIndexNationalityVal()
- {
- if( m_pCity )
- return m_pCity->getRevIndexNationalityVal();
- else
- return 0;
- }
- int CyCity::getRevIndexHealthVal()
- {
- if( m_pCity )
- return m_pCity->getRevIndexHealthVal();
- else
- return 0;
- }
- int CyCity::getRevIndexGarrisonVal()
- {
- if( m_pCity )
- return m_pCity->getRevIndexGarrisonVal();
- else
- return 0;
- }
- int CyCity::getRevIndexDisorderVal()
- {
- if( m_pCity )
- return m_pCity->getRevIndexDisorderVal();
- else
- return 0;
- }
- bool CyCity::isRecentlyAcquired()
- {
- if( m_pCity )
- return m_pCity->isRecentlyAcquired();
- else
- return false;
- }
- /************************************************************************************************/
- /* REVOLUTION_MOD END */
- /************************************************************************************************/
- // lfgr 09/2023 Extra revolution tags
- int CyCity::getTotalRevGarrisonValue() const
- {
- return m_pCity ? m_pCity->getTotalRevGarrisonValue() : 0;
- }
- void CyCity::createGreatPeople(int /*UnitTypes*/ eGreatPersonUnit, bool bIncrementThreshold, bool bIncrementExperience)
- {
- if (m_pCity)
- m_pCity->createGreatPeople((UnitTypes) eGreatPersonUnit, bIncrementThreshold, bIncrementExperience);
- }
- void CyCity::doTask(int /*TaskTypes*/ eTask, int iData1, int iData2, bool bOption)
- {
- if (m_pCity)
- m_pCity->doTask((TaskTypes)eTask, iData1, iData2, bOption);
- }
- void CyCity::chooseProduction(int /*UnitTypes*/ eTrainUnit, int /*BuildingTypes*/ eConstructBuilding, int /*ProjectTypes*/ eCreateProject, bool bFinish, bool bFront)
- {
- if (m_pCity)
- m_pCity->chooseProduction((UnitTypes) eTrainUnit, (BuildingTypes) eConstructBuilding, (ProjectTypes) eCreateProject, bFinish, bFront);
- }
- int CyCity::getCityPlotIndex(CyPlot* pPlot)
- {
- return m_pCity ? m_pCity->getCityPlotIndex(pPlot->getPlot()) : -1;
- }
- CyPlot* CyCity::getCityIndexPlot(int iIndex)
- {
- return m_pCity ? new CyPlot(m_pCity->getCityIndexPlot(iIndex)) : NULL;
- }
- bool CyCity::canWork(CyPlot* pPlot)
- {
- return m_pCity ? m_pCity->canWork(pPlot ? pPlot->getPlot() : NULL) : false;
- }
- void CyCity::clearWorkingOverride(int iIndex)
- {
- if (m_pCity)
- m_pCity->clearWorkingOverride(iIndex);
- }
- int CyCity::countNumImprovedPlots()
- {
- return m_pCity ? m_pCity->countNumImprovedPlots() : -1;
- }
- int CyCity::countNumWaterPlots()
- {
- return m_pCity ? m_pCity->countNumWaterPlots() : -1;
- }
- int CyCity::countNumRiverPlots()
- {
- return m_pCity ? m_pCity->countNumRiverPlots() : -1;
- }
- int CyCity::findPopulationRank()
- {
- return m_pCity ? m_pCity->findPopulationRank() : -1;
- }
- int CyCity::findBaseYieldRateRank(int /*YieldTypes*/ eYield)
- {
- return m_pCity ? m_pCity->findBaseYieldRateRank((YieldTypes) eYield) : -1;
- }
- int CyCity::findYieldRateRank(int /*YieldTypes*/ eYield)
- {
- return m_pCity ? m_pCity->findYieldRateRank((YieldTypes) eYield) : -1;
- }
- int CyCity::findCommerceRateRank(int /*CommerceTypes*/ eCommerce)
- {
- return m_pCity ? m_pCity->findCommerceRateRank((CommerceTypes) eCommerce) : -1;
- }
- int /*UnitTypes*/ CyCity::allUpgradesAvailable(int /*UnitTypes*/ eUnitType, int iUpgradeCount)
- {
- return m_pCity ? m_pCity->allUpgradesAvailable((UnitTypes) eUnitType, iUpgradeCount) : -1;
- }
- bool CyCity::isWorldWondersMaxed()
- {
- return m_pCity ? m_pCity->isWorldWondersMaxed() : false;
- }
- bool CyCity::isTeamWondersMaxed()
- {
- return m_pCity ? m_pCity->isTeamWondersMaxed() : false;
- }
- bool CyCity::isNationalWondersMaxed()
- {
- return m_pCity ? m_pCity->isNationalWondersMaxed() : false;
- }
- bool CyCity::isBuildingsMaxed()
- {
- return m_pCity ? m_pCity->isBuildingsMaxed() : false;
- }
- bool CyCity::canTrain( int /*UnitTypes*/ eUnit, bool bContinue, bool bTestVisible )
- {
- return m_pCity ? m_pCity->canTrain((UnitTypes)eUnit, bContinue, bTestVisible) : false;
- }
- bool CyCity::canConstruct( int /*BuildingTypes*/ eBuilding, bool bContinue, bool bTestVisible, bool bIgnoreCost)
- {
- return m_pCity ? m_pCity->canConstruct((BuildingTypes)eBuilding, bContinue, bTestVisible, bIgnoreCost) : false;
- }
- bool CyCity::canCreate( int /*ProjectTypes*/ eProject, bool bContinue, bool bTestVisible )
- {
- return m_pCity ? m_pCity->canCreate((ProjectTypes)eProject, bContinue, bTestVisible) : false;
- }
- bool CyCity::canMaintain( int /*ProcessTypes*/ eProcess, bool bContinue )
- {
- return m_pCity ? m_pCity->canMaintain((ProcessTypes)eProcess, bContinue) : false;
- }
- bool CyCity::canJoin()
- {
- return m_pCity ? m_pCity->canJoin() : false;
- }
- int CyCity::getFoodTurnsLeft()
- {
- return m_pCity ? m_pCity->getFoodTurnsLeft() : 0;
- }
- bool CyCity::isProduction()
- {
- return m_pCity ? m_pCity->isProduction() : false;
- }
- bool CyCity::isProductionLimited()
- {
- return m_pCity ? m_pCity->isProductionLimited() : false;
- }
- bool CyCity::isProductionUnit()
- {
- return m_pCity ? m_pCity->isProductionUnit() : false;
- }
- bool CyCity::isProductionBuilding()
- {
- return m_pCity ? m_pCity->isProductionBuilding() : false;
- }
- bool CyCity::isProductionProject()
- {
- return m_pCity ? m_pCity->isProductionProject() : false;
- }
- bool CyCity::isProductionProcess()
- {
- return m_pCity ? m_pCity->isProductionProcess() : false;
- }
- bool CyCity::canContinueProduction(OrderData order)
- {
- return m_pCity ? m_pCity->canContinueProduction(order) : false;
- }
- int CyCity::getProductionExperience(int /*UnitTypes*/ eUnit)
- {
- return m_pCity ? m_pCity->getProductionExperience((UnitTypes) eUnit) : -1;
- }
- void CyCity::addProductionExperience(CyUnit* pUnit, bool bConscript)
- {
- if (m_pCity)
- m_pCity->addProductionExperience(pUnit->getUnit(), bConscript);
- }
- int /*UnitTypes*/ CyCity::getProductionUnit()
- {
- return m_pCity ? m_pCity->getProductionUnit() : NO_UNIT;
- }
- int /*UnitAITypes*/ CyCity::getProductionUnitAI()
- {
- return m_pCity ? m_pCity->getProductionUnitAI() : NO_UNIT;
- }
- int /*BuildingTypes*/ CyCity::getProductionBuilding()
- {
- return m_pCity ? m_pCity->getProductionBuilding() : NO_BUILDING;
- }
- int /*ProjectTypes*/ CyCity::getProductionProject()
- {
- return m_pCity ? m_pCity->getProductionProject() : -1;
- }
- int /*ProcessTypes*/ CyCity::getProductionProcess()
- {
- return m_pCity ? m_pCity->getProductionProcess() : -1;
- }
- std::wstring CyCity::getProductionName()
- {
- return m_pCity ? m_pCity->getProductionName() : L"";
- }
- int CyCity::getGeneralProductionTurnsLeft()
- {
- return m_pCity ? m_pCity->getGeneralProductionTurnsLeft() : -1;
- }
- std::wstring CyCity::getProductionNameKey()
- {
- return m_pCity ? m_pCity->getProductionNameKey() : L"";
- }
- bool CyCity::isFoodProduction()
- {
- return m_pCity ? m_pCity->isFoodProduction() : false;
- }
- int CyCity::getFirstUnitOrder(int /*UnitTypes*/ eUnit)
- {
- return m_pCity ? m_pCity->getFirstUnitOrder((UnitTypes)eUnit) : -1;
- }
- int CyCity::getFirstBuildingOrder(int /*BuildingTypes*/ eBuilding)
- {
- return m_pCity ? m_pCity->getFirstBuildingOrder((BuildingTypes)eBuilding) : -1;
- }
- int CyCity::getFirstProjectOrder(int /*ProjectTypes*/ eProject)
- {
- return m_pCity ? m_pCity->getFirstProjectOrder((ProjectTypes)eProject) : -1;
- }
- int CyCity::getNumTrainUnitAI(int /*UnitAITypes*/ eUnitAI)
- {
- return m_pCity ? m_pCity->getNumTrainUnitAI((UnitAITypes) eUnitAI) : -1;
- }
- bool CyCity::isUnitFoodProduction(int /*UnitTypes*/ iUnit)
- {
- return m_pCity ? m_pCity->isFoodProduction((UnitTypes)iUnit) : false;
- }
- int CyCity::getProduction()
- {
- return m_pCity ? m_pCity->getProduction() : -1;
- }
- int CyCity::getProductionNeeded()
- {
- return m_pCity ? m_pCity->getProductionNeeded() : -1;
- }
- int CyCity::getProductionTurnsLeft()
- {
- return m_pCity ? m_pCity->getProductionTurnsLeft() : -1;
- }
- int CyCity::getUnitProductionTurnsLeft(int /*UnitTypes*/ iUnit, int iNum)
- {
- return m_pCity ? m_pCity->getProductionTurnsLeft((UnitTypes) iUnit, iNum) : -1;
- }
- int CyCity::getBuildingProductionTurnsLeft(int /*BuildingTypes*/ iBuilding, int iNum)
- {
- return m_pCity ? m_pCity->getProductionTurnsLeft((BuildingTypes) iBuilding, iNum) : -1;
- }
- int CyCity::getProjectProductionTurnsLeft(int /*ProjectTypes*/ eProject, int iNum)
- {
- return m_pCity ? m_pCity->getProductionTurnsLeft((ProjectTypes)eProject, iNum) : -1;
- }
- void CyCity::setProduction(int iNewValue)
- {
- if (m_pCity)
- m_pCity->setProduction(iNewValue);
- }
- void CyCity::changeProduction(int iChange)
- {
- if (m_pCity)
- m_pCity->changeProduction(iChange);
- }
- int CyCity::getProductionModifier()
- {
- return m_pCity ? m_pCity->getProductionModifier() : -1;
- }
- int CyCity::getCurrentProductionDifference(bool bIgnoreFood, bool bOverflow)
- {
- return m_pCity ? m_pCity->getCurrentProductionDifference(bIgnoreFood, bOverflow) : -1;
- }
- int CyCity::getUnitProductionModifier(int /*UnitTypes*/ iUnit)
- {
- return m_pCity ? m_pCity->getProductionModifier((UnitTypes)iUnit) : -1;
- }
- int CyCity::getBuildingProductionModifier(int /*BuildingTypes*/ iBuilding)
- {
- return m_pCity ? m_pCity->getProductionModifier((BuildingTypes)iBuilding) : -1;
- }
- int CyCity::getProjectProductionModifier(int /*ProjectTypes*/ eProject)
- {
- return m_pCity ? m_pCity->getProductionModifier((ProjectTypes)eProject) : -1;
- }
- int CyCity::getExtraProductionDifference(int iExtra)
- {
- return m_pCity ? m_pCity->getExtraProductionDifference(iExtra) : -1;
- }
- bool CyCity::canHurry(int /*HurryTypes*/ iHurry, bool bTestVisible)
- {
- return m_pCity ? m_pCity->canHurry((HurryTypes)iHurry, bTestVisible) : false;
- }
- void CyCity::hurry(int /*HurryTypes*/ iHurry)
- {
- if (m_pCity)
- m_pCity->hurry((HurryTypes)iHurry);
- }
- int /*UnitTypes*/ CyCity::getConscriptUnit()
- {
- return m_pCity ? (int)m_pCity->getConscriptUnit() : -1;
- }
- int CyCity::getConscriptPopulation()
- {
- return m_pCity ? m_pCity->getConscriptPopulation() : -1;
- }
- int CyCity::conscriptMinCityPopulation()
- {
- return m_pCity ? m_pCity->conscriptMinCityPopulation() : -1;
- }
- int CyCity::flatConscriptAngerLength()
- {
- return m_pCity ? m_pCity->flatConscriptAngerLength() : -1;
- }
- bool CyCity::canConscript()
- {
- return m_pCity ? m_pCity->canConscript() : false;
- }
- void CyCity::conscript()
- {
- if (m_pCity)
- m_pCity->conscript();
- }
- int CyCity::getBonusHealth(int /*BonusTypes*/ iBonus)
- {
- return m_pCity ? m_pCity->getBonusHealth((BonusTypes) iBonus) : -1;
- }
- int CyCity::getBonusHappiness(int /*BonusTypes*/ iBonus)
- {
- return m_pCity ? m_pCity->getBonusHappiness((BonusTypes) iBonus) : -1;
- }
- int CyCity::getBonusPower(int /*BonusTypes*/ eBonus, bool bDirty)
- {
- return m_pCity ? m_pCity->getBonusPower((BonusTypes)eBonus, bDirty) : -1;
- }
- int CyCity::getBonusYieldRateModifier(int /*YieldTypes*/ eIndex, int /*BonusTypes*/ eBonus)
- {
- return m_pCity ? m_pCity->getBonusYieldRateModifier((YieldTypes)eIndex, (BonusTypes)eBonus) : -1;
- }
- int /* HandicapTypes */ CyCity::getHandicapType()
- {
- return m_pCity ? m_pCity->getHandicapType() : NO_HANDICAP;
- }
- int /* CivilizationTypes */ CyCity::getCivilizationType()
- {
- return m_pCity ? m_pCity->getCivilizationType() : NO_CIVILIZATION;
- }
- int /* LeaderHeadTypes */ CyCity::getPersonalityType()
- {
- return m_pCity ? m_pCity->getPersonalityType() : NO_LEADER;
- }
- int /* ArtStyleTypes */ CyCity::getArtStyleType()
- {
- return m_pCity ? m_pCity->getArtStyleType() : -1;
- }
- int /* CitySizeTypes */ CyCity::getCitySizeType()
- {
- return m_pCity ? m_pCity->getCitySizeType() : -1;
- }
- bool CyCity::hasTrait(int /*TraitTypes*/ iTrait)
- {
- return m_pCity ? m_pCity->hasTrait((TraitTypes) iTrait) : false;
- }
- bool CyCity::isBarbarian()
- {
- return m_pCity ? m_pCity->isBarbarian() : false;
- }
- bool CyCity::isHuman()
- {
- return m_pCity ? m_pCity->isHuman() : false;
- }
- bool CyCity::isVisible(int /*TeamTypes*/ eTeam, bool bDebug)
- {
- return m_pCity ? m_pCity->isVisible((TeamTypes) eTeam, bDebug) : false;
- }
- bool CyCity::isCapital()
- {
- return m_pCity ? m_pCity->isCapital() : false;
- }
- bool CyCity::isCoastal(int iMinWaterSize)
- {
- return m_pCity ? m_pCity->isCoastal(iMinWaterSize) : false;
- }
- bool CyCity::isDisorder()
- {
- return m_pCity ? m_pCity->isDisorder() : false;
- }
- bool CyCity::isHolyCityByType(int /*ReligionTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->isHolyCity((ReligionTypes) iIndex) : false;
- }
- bool CyCity::isHolyCity()
- {
- return m_pCity ? m_pCity->isHolyCity() : false;
- }
- bool CyCity::isHeadquartersByType(int /*CorporationTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->isHeadquarters((CorporationTypes) iIndex) : false;
- }
- bool CyCity::isHeadquarters()
- {
- return m_pCity ? m_pCity->isHeadquarters() : false;
- }
- int CyCity::getOvercrowdingPercentAnger(int iExtra)
- {
- return m_pCity ? m_pCity->getOvercrowdingPercentAnger(iExtra) : -1;
- }
- int CyCity::getNoMilitaryPercentAnger()
- {
- return m_pCity ? m_pCity->getNoMilitaryPercentAnger() : -1;
- }
- int CyCity::getCulturePercentAnger()
- {
- return m_pCity ? m_pCity->getCulturePercentAnger() : -1;
- }
- int CyCity::getReligionPercentAnger()
- {
- return m_pCity ? m_pCity->getReligionPercentAnger() : -1;
- }
- int CyCity::getWarWearinessPercentAnger()
- {
- return m_pCity ? m_pCity->getWarWearinessPercentAnger() : -1;
- }
- /************************************************************************************************/
- /* REVOLUTION_MOD 04/26/08 jdog5000 */
- /* */
- /* */
- /************************************************************************************************/
- int CyCity::getRevRequestPercentAnger()
- {
- return m_pCity ? m_pCity->getRevRequestPercentAnger() : -1;
- }
- int CyCity::getRevIndexPercentAnger()
- {
- return m_pCity ? m_pCity->getRevIndexPercentAnger() : -1;
- }
- /************************************************************************************************/
- /* REVOLUTION_MOD END */
- /************************************************************************************************/
- int CyCity::getLargestCityHappiness()
- {
- return m_pCity ? m_pCity->getLargestCityHappiness() : -1;
- }
- int CyCity::unhappyLevel(int iExtra)
- {
- return m_pCity ? m_pCity->unhappyLevel(iExtra) : -1;
- }
- // REVOLUTION_REFACTORING 04/2021 lfgr: Ignores some modifiers
- int CyCity::unhappyLevelForRevIdx(int iExtra)
- {
- return m_pCity ? m_pCity->unhappyLevel( iExtra, true ) : -1;
- }
- int CyCity::happyLevel()
- {
- return m_pCity ? m_pCity->happyLevel() : -1;
- }
- int CyCity::angryPopulation(int iExtra)
- {
- return m_pCity ? m_pCity->angryPopulation(iExtra) : -1;
- }
- int CyCity::totalFreeSpecialists()
- {
- return m_pCity ? m_pCity->totalFreeSpecialists() : -1;
- }
- int CyCity::extraFreeSpecialists()
- {
- return m_pCity ? m_pCity->extraFreeSpecialists() : -1;
- }
- int CyCity::extraPopulation()
- {
- return m_pCity ? m_pCity->extraPopulation() : -1;
- }
- int CyCity::extraSpecialists()
- {
- return m_pCity ? m_pCity->extraSpecialists() : -1;
- }
- int CyCity::unhealthyPopulation(bool bNoAngry, int iExtra)
- {
- return m_pCity ? m_pCity->unhealthyPopulation(bNoAngry, iExtra) : -1;
- }
- int CyCity::totalGoodBuildingHealth()
- {
- return m_pCity ? m_pCity->totalGoodBuildingHealth() : -1;
- }
- int CyCity::totalBadBuildingHealth()
- {
- return m_pCity ? m_pCity->totalBadBuildingHealth() : -1;
- }
- int CyCity::goodHealth()
- {
- return m_pCity ? m_pCity->goodHealth() : -1;
- }
- int CyCity::badHealth(bool bNoAngry)
- {
- return m_pCity ? m_pCity->badHealth(bNoAngry) : -1;
- }
- int CyCity::healthRate(bool bNoAngry, int iExtra)
- {
- return m_pCity ? m_pCity->healthRate(bNoAngry, iExtra) : -1;
- }
- int CyCity::foodConsumption(bool bNoAngry, int iExtra)
- {
- return m_pCity ? m_pCity->foodConsumption(bNoAngry, iExtra) : -1;
- }
- int CyCity::foodDifference(bool bBottom)
- {
- return m_pCity ? m_pCity->foodDifference(bBottom) : -1;
- }
- int CyCity::growthThreshold()
- {
- return m_pCity ? m_pCity->growthThreshold() : -1;
- }
- int CyCity::productionLeft()
- {
- return m_pCity ? m_pCity->productionLeft() : -1;
- }
- int CyCity::hurryCost(bool bExtra)
- {
- return m_pCity ? m_pCity->hurryCost(bExtra) : -1;
- }
- int CyCity::hurryGold(int /*HurryTypes*/ iHurry)
- {
- return m_pCity ? m_pCity->hurryGold((HurryTypes)iHurry) : -1;
- }
- int CyCity::hurryPopulation(int /*HurryTypes*/ iHurry)
- {
- return m_pCity ? m_pCity->hurryPopulation((HurryTypes)iHurry) : -1;
- }
- int CyCity::hurryProduction(int /*HurryTypes*/ iHurry)
- {
- return m_pCity ? m_pCity->hurryProduction((HurryTypes)iHurry) : -1;
- }
- int CyCity::flatHurryAngerLength()
- {
- return m_pCity ? m_pCity->flatHurryAngerLength() : -1;
- }
- int CyCity::hurryAngerLength(int /*HurryTypes*/ iHurry)
- {
- return m_pCity ? m_pCity->hurryAngerLength((HurryTypes)iHurry) : -1;
- }
- int CyCity::maxHurryPopulation()
- {
- return m_pCity ? m_pCity->maxHurryPopulation() : -1;
- }
- int CyCity::cultureDistance(int iDX, int iDY)
- {
- return m_pCity ? m_pCity->cultureDistance(iDX, iDY) : -1;
- }
- int CyCity::cultureStrength(int /*PlayerTypes*/ ePlayer)
- {
- return m_pCity ? m_pCity->cultureStrength((PlayerTypes)ePlayer) : -1;
- }
- int CyCity::cultureGarrison(int /*PlayerTypes*/ ePlayer)
- {
- return m_pCity ? m_pCity->cultureGarrison((PlayerTypes)ePlayer) : -1;
- }
- int CyCity::getNumBuilding(int /*BuildingTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->getNumBuilding((BuildingTypes) iIndex) : -1;
- }
- bool CyCity::isHasBuilding(int /*BuildingTypes*/ iIndex)
- {
- if (m_pCity)
- {
- if (m_pCity->getNumBuilding((BuildingTypes) iIndex) > 0)
- {
- return true;
- }
- }
- return false;
- }
- int CyCity::getNumActiveBuilding(int /*BuildingTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->getNumActiveBuilding((BuildingTypes) iIndex) : -1;
- }
- int CyCity::getID()
- {
- return m_pCity ? m_pCity->getID() : -1;
- }
- int CyCity::getX()
- {
- return m_pCity ? m_pCity->getX_INLINE() : -1;
- }
- int CyCity::getY()
- {
- return m_pCity ? m_pCity->getY_INLINE() : -1;
- }
- bool CyCity::at(int iX, int iY)
- {
- return m_pCity ? m_pCity->at(iX, iY) : false;
- }
- bool CyCity::atPlot(CyPlot* pPlot)
- {
- return m_pCity ? m_pCity->at(pPlot->getPlot()) : false;
- }
- CyPlot* CyCity::plot()
- {
- return m_pCity ? new CyPlot(m_pCity->plot()) : NULL;
- }
- bool CyCity::isConnectedTo(CyCity* pCity)
- {
- return m_pCity ? m_pCity->isConnectedTo(pCity->getCity()) : false;
- }
- bool CyCity::isConnectedToCapital(int /*PlayerTypes*/ ePlayer)
- {
- return m_pCity ? m_pCity->isConnectedToCapital((PlayerTypes)ePlayer) : false;
- }
- CyArea* CyCity::area()
- {
- return m_pCity ? new CyArea(m_pCity->area()) : NULL;
- }
- CyArea* CyCity::waterArea()
- {
- return m_pCity ? new CyArea(m_pCity->waterArea()) : NULL;
- }
- CyPlot* CyCity::getRallyPlot()
- {
- return m_pCity ? new CyPlot(m_pCity->getRallyPlot()) : NULL;
- }
- int CyCity::getGameTurnFounded()
- {
- return m_pCity ? m_pCity->getGameTurnFounded() : -1;
- }
- int CyCity::getGameTurnAcquired()
- {
- return m_pCity ? m_pCity->getGameTurnAcquired() : -1;
- }
- int CyCity::getPopulation()
- {
- return m_pCity ? m_pCity->getPopulation() : -1;
- }
- void CyCity::setPopulation(int iNewValue)
- {
- if (m_pCity)
- m_pCity->setPopulation(iNewValue);
- }
- void CyCity::changePopulation(int iChange)
- {
- if (m_pCity)
- m_pCity->changePopulation(iChange);
- }
- long CyCity::getRealPopulation()
- {
- return m_pCity ? m_pCity->getRealPopulation() : -1;
- }
- int CyCity::getHighestPopulation()
- {
- return m_pCity ? m_pCity->getHighestPopulation() : -1;
- }
- void CyCity::setHighestPopulation(int iNewValue)
- {
- if (m_pCity)
- m_pCity->setHighestPopulation(iNewValue);
- }
- int CyCity::getWorkingPopulation()
- {
- return m_pCity ? m_pCity->getWorkingPopulation() : -1;
- }
- int CyCity::getSpecialistPopulation()
- {
- return m_pCity ? m_pCity->getSpecialistPopulation() : -1;
- }
- int CyCity::getNumGreatPeople()
- {
- return m_pCity ? m_pCity->getNumGreatPeople() : -1;
- }
- int CyCity::getBaseGreatPeopleRate()
- {
- return m_pCity ? m_pCity->getBaseGreatPeopleRate() : -1;
- }
- int CyCity::getGreatPeopleRate()
- {
- return m_pCity ? m_pCity->getGreatPeopleRate() : -1;
- }
- int CyCity::getTotalGreatPeopleRateModifier()
- {
- return m_pCity ? m_pCity->getTotalGreatPeopleRateModifier() : -1;
- }
- void CyCity::changeBaseGreatPeopleRate(int iChange)
- {
- if (m_pCity)
- m_pCity->changeBaseGreatPeopleRate(iChange);
- }
- int CyCity::getGreatPeopleRateModifier()
- {
- return m_pCity ? m_pCity->getGreatPeopleRateModifier() : -1;
- }
- // BUG - Building Additional Great People - start
- int CyCity::getAdditionalGreatPeopleRateByBuilding(int /*BuildingTypes*/ iBuilding)
- {
- return m_pCity ? m_pCity->getAdditionalGreatPeopleRateByBuilding((BuildingTypes)iBuilding) : -1;
- }
- int CyCity::getAdditionalBaseGreatPeopleRateByBuilding(int /*BuildingTypes*/ iBuilding)
- {
- return m_pCity ? m_pCity->getAdditionalBaseGreatPeopleRateByBuilding((BuildingTypes)iBuilding) : -1;
- }
- int CyCity::getAdditionalGreatPeopleRateModifierByBuilding(int /*BuildingTypes*/ iBuilding)
- {
- return m_pCity ? m_pCity->getAdditionalGreatPeopleRateModifierByBuilding((BuildingTypes)iBuilding) : -1;
- }
- // BUG - Building Additional Great People - end
- int CyCity::getGreatPeopleProgress()
- {
- return m_pCity ? m_pCity->getGreatPeopleProgress() : -1;
- }
- void CyCity::changeGreatPeopleProgress(int iChange)
- {
- if (m_pCity)
- m_pCity->changeGreatPeopleProgress(iChange);
- }
- int CyCity::getNumWorldWonders()
- {
- return m_pCity ? m_pCity->getNumWorldWonders() : -1;
- }
- int CyCity::getNumTeamWonders()
- {
- return m_pCity ? m_pCity->getNumTeamWonders() : -1;
- }
- int CyCity::getNumNationalWonders()
- {
- return m_pCity ? m_pCity->getNumNationalWonders() : -1;
- }
- int CyCity::getNumBuildings()
- {
- return m_pCity ? m_pCity->getNumBuildings() : -1;
- }
- bool CyCity::isGovernmentCenter()
- {
- return m_pCity ? m_pCity->isGovernmentCenter() : false;
- }
- // BUG - Building Saved Maintenance - start
- int CyCity::getSavedMaintenanceByBuilding(int /*BuildingTypes*/ iBuilding) const
- {
- return m_pCity ? m_pCity->getSavedMaintenanceByBuilding((BuildingTypes)iBuilding) : -1;
- }
- int CyCity::getSavedMaintenanceTimes100ByBuilding(int /*BuildingTypes*/ iBuilding) const
- {
- return m_pCity ? m_pCity->getSavedMaintenanceTimes100ByBuilding((BuildingTypes)iBuilding) : -1;
- }
- // BUG - Building Saved Maintenance - end
- int CyCity::getMaintenance() const
- {
- return m_pCity ? m_pCity->getMaintenance() : -1;
- }
- int CyCity::getMaintenanceTimes100() const
- {
- return m_pCity ? m_pCity->getMaintenanceTimes100() : -1;
- }
- int CyCity::calculateDistanceMaintenance() const
- {
- return m_pCity ? m_pCity->calculateDistanceMaintenance() : -1;
- }
- int CyCity::calculateDistanceMaintenanceTimes100() const
- {
- return m_pCity ? m_pCity->calculateDistanceMaintenanceTimes100() : -1;
- }
- int CyCity::calculateNumCitiesMaintenance() const
- {
- return m_pCity ? m_pCity->calculateNumCitiesMaintenance() : -1;
- }
- int CyCity::calculateNumCitiesMaintenanceTimes100() const
- {
- return m_pCity ? m_pCity->calculateNumCitiesMaintenanceTimes100() : -1;
- }
- int CyCity::calculateColonyMaintenance() const
- {
- return m_pCity ? m_pCity->calculateColonyMaintenance() : -1;
- }
- int CyCity::calculateColonyMaintenanceTimes100() const
- {
- return m_pCity ? m_pCity->calculateColonyMaintenanceTimes100() : -1;
- }
- int CyCity::calculateCorporationMaintenanceTimes100() const
- {
- return m_pCity ? m_pCity->calculateCorporationMaintenanceTimes100() : -1;
- }
- int CyCity::calculateCorporationMaintenance() const
- {
- return m_pCity ? m_pCity->calculateCorporationMaintenance() : -1;
- }
- int CyCity::getMaintenanceModifier()
- {
- return m_pCity ? m_pCity->getMaintenanceModifier() : -1;
- }
- int CyCity::getWarWearinessModifier()
- {
- return m_pCity ? m_pCity->getWarWearinessModifier() : -1;
- }
- int CyCity::getHurryAngerModifier()
- {
- return m_pCity ? m_pCity->getHurryAngerModifier() : -1;
- }
- int CyCity::getEspionageHealthCounter()
- {
- return m_pCity ? m_pCity->getEspionageHealthCounter() : -1;
- }
- void CyCity::changeEspionageHealthCounter(int iChange)
- {
- if (m_pCity)
- m_pCity->changeEspionageHealthCounter(iChange);
- }
- int CyCity::getEspionageHappinessCounter()
- {
- return m_pCity ? m_pCity->getEspionageHappinessCounter() : -1;
- }
- void CyCity::changeEspionageHappinessCounter(int iChange)
- {
- if (m_pCity)
- m_pCity->changeEspionageHappinessCounter(iChange);
- }
- void CyCity::changeHealRate(int iChange)
- {
- if (m_pCity)
- m_pCity->changeHealRate(iChange);
- }
- int CyCity::getFreshWaterGoodHealth()
- {
- return m_pCity ? m_pCity->getFreshWaterGoodHealth() : -1;
- }
- int CyCity::getFreshWaterBadHealth()
- {
- return m_pCity ? m_pCity->getFreshWaterBadHealth() : -1;
- }
- int CyCity::getBuildingGoodHealth()
- {
- return m_pCity ? m_pCity->getBuildingGoodHealth() : -1;
- }
- int CyCity::getBuildingBadHealth()
- {
- return m_pCity ? m_pCity->getBuildingBadHealth() : -1;
- }
- int CyCity::getFeatureGoodHealth()
- {
- return m_pCity ? m_pCity->getFeatureGoodHealth() : -1;
- }
- int CyCity::getFeatureBadHealth()
- {
- return m_pCity ? m_pCity->getFeatureBadHealth() : -1;
- }
- // BUG - Feature Health - start
- int CyCity::getAdditionalHealthByFeature(int /*FeatureTypes*/ eFeature, int iChange)
- {
- if (m_pCity)
- {
- int iGood = 0, iBad = 0;
- return m_pCity->getAdditionalHealthByFeature((FeatureTypes)eFeature, iChange, iGood, iBad);
- }
- else
- {
- return -1;
- }
- }
- int CyCity::getAdditionalGoodHealthByFeature(int /*FeatureTypes*/ eFeature, int iChange)
- {
- if (m_pCity)
- {
- int iGood = 0, iBad = 0;
- m_pCity->getAdditionalHealthByFeature((FeatureTypes)eFeature, iChange, iGood, iBad);
- return iGood;
- }
- else
- {
- return -1;
- }
- }
- int CyCity::getAdditionalBadHealthByFeature(int /*FeatureTypes*/ eFeature, int iChange)
- {
- if (m_pCity)
- {
- int iGood = 0, iBad = 0;
- m_pCity->getAdditionalHealthByFeature((FeatureTypes)eFeature, iChange, iGood, iBad);
- return iBad;
- }
- else
- {
- return -1;
- }
- }
- // BUG - Feature Health - end
- int CyCity::getBuildingHealth(int /*BuildingTypes*/ eBuilding)
- {
- return m_pCity ? m_pCity->getBuildingHealth((BuildingTypes)eBuilding) : -1;
- }
- // BUG - Building Additional Health - start
- int CyCity::getAdditionalHealthByBuilding(int /*BuildingTypes*/ eBuilding)
- {
- if (m_pCity)
- {
- int iGood = 0, iBad = 0;
- return m_pCity->getAdditionalHealthByBuilding((BuildingTypes)eBuilding, iGood, iBad);
- }
- else
- {
- return -1;
- }
- }
- int CyCity::getAdditionalGoodHealthByBuilding(int /*BuildingTypes*/ eBuilding)
- {
- if (m_pCity)
- {
- int iGood = 0, iBad = 0;
- m_pCity->getAdditionalHealthByBuilding((BuildingTypes)eBuilding, iGood, iBad);
- return iGood;
- }
- else
- {
- return -1;
- }
- }
- int CyCity::getAdditionalBadHealthByBuilding(int /*BuildingTypes*/ eBuilding)
- {
- if (m_pCity)
- {
- int iGood = 0, iBad = 0;
- m_pCity->getAdditionalHealthByBuilding((BuildingTypes)eBuilding, iGood, iBad);
- return iBad;
- }
- else
- {
- return -1;
- }
- }
- int CyCity::getAdditionalSpoiledFoodByBuilding(int /*BuildingTypes*/ eBuilding)
- {
- if (m_pCity)
- {
- int iGood = 0, iBad = 0;
- m_pCity->getAdditionalHealthByBuilding((BuildingTypes)eBuilding, iGood, iBad);
- return m_pCity->getAdditionalSpoiledFood(iGood, iBad);
- }
- else
- {
- return -1;
- }
- }
- int CyCity::getAdditionalStarvationByBuilding(int /*BuildingTypes*/ eBuilding)
- {
- if (m_pCity)
- {
- return m_pCity->getAdditionalStarvation(getAdditionalSpoiledFoodByBuilding(eBuilding));
- }
- else
- {
- return -1;
- }
- }
- // BUG - Building Additional Health - end
- int CyCity::getPowerGoodHealth()
- {
- return m_pCity ? m_pCity->getPowerGoodHealth() : -1;
- }
- int CyCity::getPowerBadHealth()
- {
- return m_pCity ? m_pCity->getPowerBadHealth() : -1;
- }
- int CyCity::getBonusGoodHealth()
- {
- return m_pCity ? m_pCity->getBonusGoodHealth() : -1;
- }
- int CyCity::getBonusBadHealth()
- {
- return m_pCity ? m_pCity->getBonusBadHealth() : -1;
- }
- int CyCity::getMilitaryHappiness()
- {
- return m_pCity ? m_pCity->getMilitaryHappiness() : -1;
- }
- int CyCity::getMilitaryHappinessUnits()
- {
- return m_pCity ? m_pCity->getMilitaryHappinessUnits() : -1;
- }
- int CyCity::getBuildingGoodHappiness()
- {
- return m_pCity ? m_pCity->getBuildingGoodHappiness() : -1;
- }
- int CyCity::getBuildingBadHappiness()
- {
- return m_pCity ? m_pCity->getBuildingBadHappiness() : -1;
- }
- int CyCity::getBuildingHappiness(int /*BuildingTypes*/ eBuilding)
- {
- return m_pCity ? m_pCity->getBuildingHappiness((BuildingTypes)eBuilding) : -1;
- }
- // BUG - Building Additional Happiness - start
- int CyCity::getAdditionalHappinessByBuilding(int /*BuildingTypes*/ eBuilding)
- {
- if (m_pCity)
- {
- int iGood = 0, iBad = 0;
- return m_pCity->getAdditionalHappinessByBuilding((BuildingTypes)eBuilding, iGood, iBad);
- }
- else
- {
- return -1;
- }
- }
- int CyCity::getAdditionalGoodHappinessByBuilding(int /*BuildingTypes*/ eBuilding)
- {
- if (m_pCity)
- {
- int iGood = 0, iBad = 0;
- m_pCity->getAdditionalHappinessByBuilding((BuildingTypes)eBuilding, iGood, iBad);
- return iGood;
- }
- else
- {
- return -1;
- }
- }
- int CyCity::getAdditionalBadHappinessByBuilding(int /*BuildingTypes*/ eBuilding)
- {
- if (m_pCity)
- {
- int iGood = 0, iBad = 0;
- m_pCity->getAdditionalHappinessByBuilding((BuildingTypes)eBuilding, iGood, iBad);
- return iBad;
- }
- else
- {
- return -1;
- }
- }
- int CyCity::getAdditionalAngryPopulationByBuilding(int /*BuildingTypes*/ eBuilding)
- {
- if (m_pCity)
- {
- int iGood = 0, iBad = 0;
- m_pCity->getAdditionalHappinessByBuilding((BuildingTypes)eBuilding, iGood, iBad);
- return m_pCity->getAdditionalAngryPopuplation(iGood, iBad);
- }
- else
- {
- return -1;
- }
- }
- // BUG - Building Additional Happiness - end
- int CyCity::getExtraBuildingGoodHappiness()
- {
- return m_pCity ? m_pCity->getExtraBuildingGoodHappiness() : -1;
- }
- int CyCity::getExtraBuildingBadHappiness()
- {
- return m_pCity ? m_pCity->getExtraBuildingBadHappiness() : -1;
- }
- int CyCity::getFeatureGoodHappiness()
- {
- return m_pCity ? m_pCity->getFeatureGoodHappiness() : -1;
- }
- int CyCity::getFeatureBadHappiness()
- {
- return m_pCity ? m_pCity->getFeatureBadHappiness() : -1;
- }
- int CyCity::getBonusGoodHappiness()
- {
- return m_pCity ? m_pCity->getBonusGoodHappiness() : -1;
- }
- int CyCity::getBonusBadHappiness()
- {
- return m_pCity ? m_pCity->getBonusBadHappiness() : -1;
- }
- int CyCity::getReligionGoodHappiness()
- {
- return m_pCity ? m_pCity->getReligionGoodHappiness() : -1;
- }
- int CyCity::getReligionBadHappiness()
- {
- return m_pCity ? m_pCity->getReligionBadHappiness() : -1;
- }
- int CyCity::getReligionHappiness(int /*ReligionTypes*/ eReligion)
- {
- return m_pCity ? m_pCity->getReligionHappiness((ReligionTypes)eReligion) : -1;
- }
- int CyCity::getExtraHappiness()
- {
- return m_pCity ? m_pCity->getExtraHappiness() : -1;
- }
- void CyCity::changeExtraHappiness(int iChange)
- {
- if (m_pCity)
- m_pCity->changeExtraHappiness(iChange);
- }
- int CyCity::getExtraHealth()
- {
- return m_pCity ? m_pCity->getExtraHealth() : -1;
- }
- void CyCity::changeExtraHealth(int iChange)
- {
- if (m_pCity)
- m_pCity->changeExtraHealth(iChange);
- }
- int CyCity::getHurryAngerTimer()
- {
- return m_pCity ? m_pCity->getHurryAngerTimer() : -1;
- }
- void CyCity::changeHurryAngerTimer(int iChange)
- {
- if (m_pCity)
- m_pCity->changeHurryAngerTimer(iChange);
- }
- /************************************************************************************************/
- /* REVOLUTION_MOD 04/19/08 jdog5000 */
- /* */
- /* */
- /************************************************************************************************/
- int CyCity::getRevRequestAngerTimer()
- {
- return m_pCity ? m_pCity->getRevRequestAngerTimer() : -1;
- }
- void CyCity::changeRevRequestAngerTimer(int iChange)
- {
- if (m_pCity)
- m_pCity->changeRevRequestAngerTimer(iChange);
- }
- int CyCity::getRevSuccessTimer()
- {
- return m_pCity ? m_pCity->getRevSuccessTimer() : -1;
- }
- void CyCity::changeRevSuccessTimer(int iChange)
- {
- if (m_pCity)
- m_pCity->changeRevSuccessTimer(iChange);
- }
- /************************************************************************************************/
- /* REVOLUTION_MOD END */
- /************************************************************************************************/
- int CyCity::getConscriptAngerTimer()
- {
- return m_pCity ? m_pCity->getConscriptAngerTimer() : -1;
- }
- void CyCity::changeConscriptAngerTimer(int iChange)
- {
- if (m_pCity)
- m_pCity->changeConscriptAngerTimer(iChange);
- }
- int CyCity::getDefyResolutionAngerTimer()
- {
- return m_pCity ? m_pCity->getDefyResolutionAngerTimer() : -1;
- }
- void CyCity::changeDefyResolutionAngerTimer(int iChange)
- {
- if (m_pCity)
- m_pCity->changeDefyResolutionAngerTimer(iChange);
- }
- int CyCity::flatDefyResolutionAngerLength()
- {
- return m_pCity ? m_pCity->flatDefyResolutionAngerLength() : -1;
- }
- int CyCity::getHappinessTimer()
- {
- return m_pCity ? m_pCity->getHappinessTimer() : -1;
- }
- void CyCity::changeHappinessTimer(int iChange)
- {
- if (m_pCity)
- m_pCity->changeHappinessTimer(iChange);
- }
- bool CyCity::isNoUnhappiness()
- {
- return m_pCity ? m_pCity->isNoUnhappiness() : false;
- }
- bool CyCity::isNoUnhealthyPopulation()
- {
- return m_pCity ? m_pCity->isNoUnhealthyPopulation() : false;
- }
- bool CyCity::isBuildingOnlyHealthy()
- {
- return m_pCity ? m_pCity->isBuildingOnlyHealthy() : false;
- }
- int CyCity::getFood()
- {
- return m_pCity ? m_pCity->getFood() : -1;
- }
- void CyCity::setFood(int iNewValue)
- {
- if (m_pCity)
- m_pCity->setFood(iNewValue);
- }
- void CyCity::changeFood(int iChange)
- {
- if (m_pCity)
- m_pCity->changeFood(iChange);
- }
- int CyCity::getFoodKept()
- {
- return m_pCity ? m_pCity->getFoodKept() : -1;
- }
- int CyCity::getMaxFoodKeptPercent()
- {
- return m_pCity ? m_pCity->getMaxFoodKeptPercent() : -1;
- }
- int CyCity::getOverflowProduction()
- {
- return m_pCity ? m_pCity->getOverflowProduction() : -1;
- }
- void CyCity::setOverflowProduction(int iNewValue)
- {
- if (m_pCity)
- m_pCity->setOverflowProduction(iNewValue);
- }
- int CyCity::getFeatureProduction()
- {
- return m_pCity ? m_pCity->getFeatureProduction() : -1;
- }
- void CyCity::setFeatureProduction(int iNewValue)
- {
- if (m_pCity)
- m_pCity->setFeatureProduction(iNewValue);
- }
- int CyCity::getMilitaryProductionModifier()
- {
- return m_pCity ? m_pCity->getMilitaryProductionModifier() : -1;
- }
- int CyCity::getSpaceProductionModifier()
- {
- return m_pCity ? m_pCity->getSpaceProductionModifier() : -1;
- }
- int CyCity::getExtraTradeRoutes()
- {
- return m_pCity ? m_pCity->getExtraTradeRoutes() : -1;
- }
- void CyCity::changeExtraTradeRoutes(int iChange)
- {
- if (m_pCity)
- m_pCity->changeExtraTradeRoutes(iChange);
- }
- int CyCity::getTradeRouteModifier()
- {
- return m_pCity ? m_pCity->getTradeRouteModifier() : -1;
- }
- int CyCity::getForeignTradeRouteModifier()
- {
- return m_pCity ? m_pCity->getForeignTradeRouteModifier() : -1;
- }
- int CyCity::getBuildingDefense()
- {
- return m_pCity ? m_pCity->getBuildingDefense() : -1;
- }
- // BUG - Building Additional Defense - start
- int CyCity::getAdditionalDefenseByBuilding(int /*BuildingTypes*/ eBuilding)
- {
- return m_pCity ? m_pCity->getAdditionalDefenseByBuilding((BuildingTypes)eBuilding) : -1;
- }
- // BUG - Building Additional Defense - end
- int CyCity::getBuildingBombardDefense()
- {
- return m_pCity ? m_pCity->getBuildingBombardDefense() : -1;
- }
- // BUG - Building Additional Bombard Defense - start
- int CyCity::getAdditionalBombardDefenseByBuilding(int /*BuildingTypes*/ eBuilding)
- {
- return m_pCity ? m_pCity->getAdditionalBombardDefenseByBuilding((BuildingTypes)eBuilding) : -1;
- }
- // BUG - Building Additional Bombard Defense - end
- int CyCity::getFreeExperience()
- {
- return m_pCity ? m_pCity->getFreeExperience() : -1;
- }
- int CyCity::getCurrAirlift()
- {
- return m_pCity ? m_pCity->getCurrAirlift() : -1;
- }
- int CyCity::getMaxAirlift()
- {
- return m_pCity ? m_pCity->getMaxAirlift() : -1;
- }
- int CyCity::getAirModifier()
- {
- return m_pCity ? m_pCity->getAirModifier() : -1;
- }
- int CyCity::getAirUnitCapacity(int /*TeamTypes*/ eTeam)
- {
- return m_pCity ? m_pCity->getAirUnitCapacity((TeamTypes)eTeam) : -1;
- }
- int CyCity::getNukeModifier()
- {
- return m_pCity ? m_pCity->getNukeModifier() : -1;
- }
- int CyCity::getFreeSpecialist()
- {
- return m_pCity ? m_pCity->getFreeSpecialist() : -1;
- }
- bool CyCity::isPower()
- {
- return m_pCity ? m_pCity->isPower() : false;
- }
- bool CyCity::isAreaCleanPower()
- {
- return m_pCity ? m_pCity->isAreaCleanPower() : false;
- }
- bool CyCity::isDirtyPower()
- {
- return m_pCity ? m_pCity->isDirtyPower() : false;
- }
- int CyCity::getDefenseDamage()
- {
- return m_pCity ? m_pCity->getDefenseDamage() : -1;
- }
- void CyCity::changeDefenseDamage(int iChange)
- {
- if (m_pCity)
- m_pCity->changeDefenseDamage(iChange);
- }
- bool CyCity::isBombardable(CyUnit* pUnit)
- {
- return m_pCity ? m_pCity->isBombardable(pUnit->getUnit()) : false;
- }
- int CyCity::getNaturalDefense()
- {
- return m_pCity ? m_pCity->getNaturalDefense() : -1;
- }
- int CyCity::getTotalDefense(bool bIgnoreBuilding)
- {
- return m_pCity ? m_pCity->getTotalDefense(bIgnoreBuilding) : -1;
- }
- int CyCity::getDefenseModifier(bool bIgnoreBuilding)
- {
- return m_pCity ? m_pCity->getDefenseModifier(bIgnoreBuilding) : -1;
- }
- int CyCity::getOccupationTimer()
- {
- return m_pCity ? m_pCity->getOccupationTimer() : -1;
- }
- bool CyCity::isOccupation()
- {
- return m_pCity ? m_pCity->isOccupation() : false;
- }
- void CyCity::setOccupationTimer(int iNewValue)
- {
- if (m_pCity)
- m_pCity->setOccupationTimer(iNewValue);
- }
- void CyCity::changeOccupationTimer(int iChange)
- {
- if (m_pCity)
- m_pCity->changeOccupationTimer(iChange);
- }
- int CyCity::getCultureUpdateTimer()
- {
- return m_pCity ? m_pCity->getCultureUpdateTimer() : -1;
- }
- void CyCity::changeCultureUpdateTimer(int iChange)
- {
- if (m_pCity)
- m_pCity->changeCultureUpdateTimer(iChange);
- }
- bool CyCity::isNeverLost()
- {
- return m_pCity ? m_pCity->isNeverLost() : false;
- }
- void CyCity::setNeverLost(int iNewValue)
- {
- if (m_pCity)
- m_pCity->setNeverLost(iNewValue);
- }
- bool CyCity::isBombarded()
- {
- return m_pCity ? m_pCity->isBombarded(): false;
- }
- void CyCity::setBombarded(int iNewValue)
- {
- if (m_pCity)
- m_pCity->setBombarded(iNewValue);
- }
- bool CyCity::isDrafted()
- {
- return m_pCity ? m_pCity->isDrafted(): false;
- }
- void CyCity::setDrafted(int iNewValue)
- {
- if (m_pCity)
- m_pCity->setDrafted(iNewValue);
- }
- bool CyCity::isAirliftTargeted()
- {
- return m_pCity ? m_pCity->isAirliftTargeted(): false;
- }
- void CyCity::setAirliftTargeted(int iNewValue)
- {
- if (m_pCity)
- m_pCity->setAirliftTargeted(iNewValue);
- }
- bool CyCity::isCitizensAutomated()
- {
- return m_pCity ? m_pCity->isCitizensAutomated() : false;
- }
- void CyCity::setCitizensAutomated(bool bNewValue)
- {
- if (m_pCity)
- m_pCity->setCitizensAutomated(bNewValue);
- }
- bool CyCity::isProductionAutomated()
- {
- return m_pCity ? m_pCity->isProductionAutomated() : false;
- }
- void CyCity::setProductionAutomated(bool bNewValue)
- {
- if (m_pCity)
- {
- m_pCity->setProductionAutomated(bNewValue, false);
- }
- }
- bool CyCity::isWallOverride() const
- {
- return m_pCity ? m_pCity->isWallOverride() : false;
- }
- void CyCity::setWallOverride(bool bOverride)
- {
- if (m_pCity)
- m_pCity->setWallOverride(bOverride);
- }
- void CyCity::setCitySizeBoost(int iBoost)
- {
- if (m_pCity)
- m_pCity->setCitySizeBoost(iBoost);
- }
- bool CyCity::isPlundered()
- {
- return m_pCity ? m_pCity->isPlundered() : false;
- }
- void CyCity::setPlundered(bool bNewValue)
- {
- if (m_pCity)
- {
- m_pCity->setPlundered(bNewValue);
- }
- }
- int /*PlayerTypes*/ CyCity::getOwner()
- {
- return m_pCity ? m_pCity->getOwnerINLINE() : NO_PLAYER;
- }
- int /*TeamTypes*/ CyCity::getTeam()
- {
- return m_pCity ? m_pCity->getTeam() : NO_TEAM;
- }
- int /*PlayerTypes*/ CyCity::getPreviousOwner()
- {
- return m_pCity ? m_pCity->getPreviousOwner() : NO_PLAYER;
- }
- int /*PlayerTypes*/ CyCity::getOriginalOwner()
- {
- return m_pCity ? m_pCity->getOriginalOwner() : NO_PLAYER;
- }
- int /*CultureLevelTypes*/ CyCity::getCultureLevel()
- {
- return m_pCity ? m_pCity->getCultureLevel() : NO_CULTURELEVEL;
- }
- int CyCity::getCultureThreshold()
- {
- return m_pCity ? m_pCity->getCultureThreshold() : -1;
- }
- int CyCity::getSeaPlotYield(int /*YieldTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getSeaPlotYield((YieldTypes) eIndex) : -1;
- }
- int CyCity::getRiverPlotYield(int /*YieldTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getRiverPlotYield((YieldTypes) eIndex) : -1;
- }
- // BUG - Building Additional Yield - start
- int CyCity::getAdditionalYieldByBuilding(int /*YieldTypes*/ eIndex, int /*BuildingTypes*/ iBuilding)
- {
- return m_pCity ? m_pCity->getAdditionalYieldByBuilding((YieldTypes)eIndex, (BuildingTypes) iBuilding) : -1;
- }
- int CyCity::getAdditionalBaseYieldRateByBuilding(int /*YieldTypes*/ eIndex, int /*BuildingTypes*/ iBuilding)
- {
- return m_pCity ? m_pCity->getAdditionalBaseYieldRateByBuilding((YieldTypes)eIndex, (BuildingTypes) iBuilding) : -1;
- }
- int CyCity::getAdditionalYieldRateModifierByBuilding(int /*YieldTypes*/ eIndex, int /*BuildingTypes*/ iBuilding)
- {
- return m_pCity ? m_pCity->getAdditionalYieldRateModifierByBuilding((YieldTypes)eIndex, (BuildingTypes) iBuilding) : -1;
- }
- // BUG - Building Additional Yield - end
- int CyCity::getBaseYieldRate(int /*YieldTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getBaseYieldRate((YieldTypes)eIndex) : -1;
- }
- void CyCity::setBaseYieldRate(int /*YieldTypes*/ eIndex, int iNewValue)
- {
- if (m_pCity)
- m_pCity->setBaseYieldRate((YieldTypes)eIndex, iNewValue);
- }
- void CyCity::changeBaseYieldRate(int /*YieldTypes*/ eIndex, int iNewValue)
- {
- if (m_pCity)
- m_pCity->changeBaseYieldRate((YieldTypes)eIndex, iNewValue);
- }
- int CyCity::getBaseYieldRateModifier(int /*YieldTypes*/ eIndex, int iExtra)
- {
- return m_pCity ? m_pCity->getBaseYieldRateModifier((YieldTypes)eIndex, iExtra) : -1;
- }
- int CyCity::getYieldRate(int /*YieldTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getYieldRate((YieldTypes)eIndex) : -1;
- }
- int CyCity::getYieldRateModifier(int /*YieldTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getYieldRateModifier((YieldTypes)eIndex) : -1;
- }
- int CyCity::getTradeYield(int /*YieldTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getTradeYield((YieldTypes)eIndex) : -1;
- }
- int CyCity::totalTradeModifier()
- {
- return m_pCity ? m_pCity->totalTradeModifier() : -1;
- }
- // BUG - Fractional Trade Routes - start
- int CyCity::calculateTradeProfitTimes100(CyCity* pCity)
- {
- return m_pCity ? m_pCity->calculateTradeProfitTimes100(pCity->getCity()) : -1;
- }
- // BUG - Fractional Trade Routes - end
- int CyCity::calculateTradeProfit(CyCity* pCity)
- {
- return m_pCity ? m_pCity->calculateTradeProfit(pCity->getCity()) : -1;
- }
- int CyCity::calculateTradeYield(int /*YieldTypes*/ eIndex, int iTradeProfit)
- {
- return m_pCity ? m_pCity->calculateTradeYield((YieldTypes)eIndex, iTradeProfit) : -1;
- }
- int CyCity::getExtraSpecialistYield(int /*YieldTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getExtraSpecialistYield((YieldTypes) eIndex) : -1;
- }
- int CyCity::getExtraSpecialistYieldOfType(int /*YieldTypes*/ eIndex, int /*SpecialistTypes*/ eSpecialist)
- {
- return m_pCity ? m_pCity->getExtraSpecialistYield((YieldTypes) eIndex, (SpecialistTypes) eSpecialist) : -1;
- }
- int CyCity::getCommerceRate(int /*CommerceTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getCommerceRate((CommerceTypes)eIndex) : -1;
- }
- int CyCity::getCommerceRateTimes100(int /*CommerceTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getCommerceRateTimes100((CommerceTypes)eIndex) : -1;
- }
- int CyCity::getCommerceFromPercent(int /*CommerceTypes*/ eIndex, int iYieldRate)
- {
- return m_pCity ? m_pCity->getCommerceFromPercent((CommerceTypes)eIndex, iYieldRate) : -1;
- }
- int CyCity::getBaseCommerceRate(int /*CommerceTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getBaseCommerceRate((CommerceTypes)eIndex) : -1;
- }
- int CyCity::getBaseCommerceRateTimes100(int /*CommerceTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getBaseCommerceRateTimes100((CommerceTypes)eIndex) : -1;
- }
- int CyCity::getTotalCommerceRateModifier(int /*CommerceTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getTotalCommerceRateModifier((CommerceTypes)eIndex) : -1;
- }
- int CyCity::getProductionToCommerceModifier(int /*CommerceTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getProductionToCommerceModifier((CommerceTypes)eIndex) : -1;
- }
- int CyCity::getBuildingCommerce(int /*CommerceTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getBuildingCommerce((CommerceTypes)eIndex) : -1;
- }
- int CyCity::getBuildingCommerceByBuilding(int /*CommerceTypes*/ eIndex, int /*BuildingTypes*/ iBuilding)
- {
- return m_pCity ? m_pCity->getBuildingCommerceByBuilding((CommerceTypes)eIndex, (BuildingTypes) iBuilding) : -1;
- }
- // BUG - Building Additional Commerce - start
- int CyCity::getAdditionalCommerceByBuilding(int /*CommerceTypes*/ eIndex, int /*BuildingTypes*/ iBuilding)
- {
- return m_pCity ? m_pCity->getAdditionalCommerceByBuilding((CommerceTypes)eIndex, (BuildingTypes) iBuilding) : -1;
- }
- int CyCity::getAdditionalCommerceTimes100ByBuilding(int /*CommerceTypes*/ eIndex, int /*BuildingTypes*/ iBuilding)
- {
- return m_pCity ? m_pCity->getAdditionalCommerceTimes100ByBuilding((CommerceTypes)eIndex, (BuildingTypes) iBuilding) : -1;
- }
- int CyCity::getAdditionalBaseCommerceRateByBuilding(int /*CommerceTypes*/ eIndex, int /*BuildingTypes*/ iBuilding)
- {
- return m_pCity ? m_pCity->getAdditionalBaseCommerceRateByBuilding((CommerceTypes)eIndex, (BuildingTypes) iBuilding) : -1;
- }
- int CyCity::getAdditionalCommerceRateModifierByBuilding(int /*CommerceTypes*/ eIndex, int /*BuildingTypes*/ iBuilding)
- {
- return m_pCity ? m_pCity->getAdditionalCommerceRateModifierByBuilding((CommerceTypes)eIndex, (BuildingTypes) iBuilding) : -1;
- }
- // BUG - Building Additional Commerce - end
- int CyCity::getSpecialistCommerce(int /*CommerceTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getSpecialistCommerce((CommerceTypes)eIndex) : -1;
- }
- void CyCity::changeSpecialistCommerce(int /*CommerceTypes*/ eIndex, int iChange)
- {
- if (m_pCity)
- m_pCity->changeSpecialistCommerce((CommerceTypes)eIndex, iChange);
- }
- int CyCity::getReligionCommerce(int /*CommerceTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getReligionCommerce((CommerceTypes)eIndex) : -1;
- }
- int CyCity::getReligionCommerceByReligion(int /*CommerceTypes*/ eIndex, int /*ReligionTypes*/ eReligion)
- {
- return m_pCity ? m_pCity->getReligionCommerceByReligion((CommerceTypes)eIndex, (ReligionTypes)eReligion) : -1;
- }
- int CyCity::getCorporationCommerce(int /*CommerceTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getCorporationCommerce((CommerceTypes)eIndex) : -1;
- }
- int CyCity::getCorporationCommerceByCorporation(int /*CommerceTypes*/ eIndex, int /*CorporationTypes*/ eCorporation)
- {
- return m_pCity ? m_pCity->getCorporationCommerceByCorporation((CommerceTypes)eIndex, (CorporationTypes)eCorporation) : -1;
- }
- int CyCity::getCorporationYield(int /*YieldTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getCorporationYield((YieldTypes)eIndex) : -1;
- }
- int CyCity::getCorporationYieldByCorporation(int /*YieldTypes*/ eIndex, int /*CorporationTypes*/ eCorporation)
- {
- return m_pCity ? m_pCity->getCorporationYieldByCorporation((YieldTypes)eIndex, (CorporationTypes)eCorporation) : -1;
- }
- int CyCity::getCommerceRateModifier(int /*CommerceTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getCommerceRateModifier((CommerceTypes)eIndex) : -1;
- }
- int CyCity::getCommerceHappinessPer(int /*CommerceTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getCommerceHappinessPer((CommerceTypes)eIndex) : -1;
- }
- int CyCity::getCommerceHappinessByType(int /*CommerceTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getCommerceHappinessByType((CommerceTypes) eIndex) : -1;
- }
- int CyCity::getCommerceHappiness()
- {
- return m_pCity ? m_pCity->getCommerceHappiness() : -1;
- }
- int CyCity::getDomainFreeExperience(int /*DomainTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getDomainFreeExperience((DomainTypes)eIndex) : -1;
- }
- int CyCity::getDomainProductionModifier(int /*DomainTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getDomainProductionModifier((DomainTypes)eIndex) : -1;
- }
- int CyCity::getCulture(int /*PlayerTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getCulture((PlayerTypes)eIndex) : -1;
- }
- int CyCity::getCultureTimes100(int /*PlayerTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getCultureTimes100((PlayerTypes)eIndex) : -1;
- }
- int CyCity::countTotalCultureTimes100()
- {
- return m_pCity ? m_pCity->countTotalCultureTimes100() : -1;
- }
- PlayerTypes CyCity::findHighestCulture()
- {
- return m_pCity ? m_pCity->findHighestCulture() : NO_PLAYER;
- }
- int CyCity::calculateCulturePercent(int /*PlayerTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->calculateCulturePercent((PlayerTypes)eIndex) : -1;
- }
- int CyCity::calculateTeamCulturePercent(int /*TeamTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->calculateTeamCulturePercent((TeamTypes)eIndex) : -1;
- }
- void CyCity::setCulture(int /*PlayerTypes*/ eIndex, int iNewValue, bool bPlots)
- {
- if (m_pCity)
- m_pCity->setCulture((PlayerTypes)eIndex, iNewValue, bPlots, true);
- }
- void CyCity::setCultureTimes100(int /*PlayerTypes*/ eIndex, int iNewValue, bool bPlots)
- {
- if (m_pCity)
- m_pCity->setCultureTimes100((PlayerTypes)eIndex, iNewValue, bPlots, true);
- }
- void CyCity::changeCulture(int /*PlayerTypes*/ eIndex, int iChange, bool bPlots)
- {
- if (m_pCity)
- m_pCity->changeCulture((PlayerTypes)eIndex, iChange, bPlots, true);
- }
- void CyCity::changeCultureTimes100(int /*PlayerTypes*/ eIndex, int iChange, bool bPlots)
- {
- if (m_pCity)
- m_pCity->changeCultureTimes100((PlayerTypes)eIndex, iChange, bPlots, true);
- }
- /************************************************************************************************/
- /* REVOLUTION_MOD 01/01/08 jdog5000 */
- /* */
- /* */
- /************************************************************************************************/
- int CyCity::getNumRevolts(int playerIdx)
- {
- return m_pCity ? m_pCity->getNumRevolts((PlayerTypes)playerIdx) : -1;
- }
- void CyCity::changeNumRevolts(int playerIdx, int iChange)
- {
- if (m_pCity)
- m_pCity->changeNumRevolts((PlayerTypes)playerIdx,iChange);
- }
- /************************************************************************************************/
- /* REVOLUTION_MOD END */
- /************************************************************************************************/
- bool CyCity::isTradeRoute(int /*PlayerTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->isTradeRoute((PlayerTypes)eIndex) : false;
- }
- bool CyCity::isEverOwned(int /*PlayerTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->isEverOwned((PlayerTypes)eIndex) : false;
- }
- bool CyCity::isRevealed(int /*TeamTypes */eIndex, bool bDebug)
- {
- return m_pCity ? m_pCity->isRevealed((TeamTypes)eIndex, bDebug) : false;
- }
- void CyCity::setRevealed(int /*TeamTypes*/ eIndex, bool bNewValue)
- {
- if (m_pCity)
- m_pCity->setRevealed((TeamTypes)eIndex, bNewValue);
- }
- bool CyCity::getEspionageVisibility(int /*TeamTypes */eIndex)
- {
- return m_pCity ? m_pCity->getEspionageVisibility((TeamTypes)eIndex) : false;
- }
- std::wstring CyCity::getName()
- {
- return m_pCity ? m_pCity->getName() : L"";
- }
- std::wstring CyCity::getNameForm(int iForm)
- {
- return m_pCity ? m_pCity->getName((uint)iForm) : L"";
- }
- std::wstring CyCity::getNameKey()
- {
- return m_pCity ? m_pCity->getNameKey() : L"";
- }
- void CyCity::setName(std::wstring szNewValue, bool bFound)
- {
- if (m_pCity)
- m_pCity->setName(CvWString(szNewValue), bFound);
- }
- void CyCity::changeNoBonusCount(int /*BonusTypes*/ eBonus, int iChange)
- {
- if (m_pCity)
- m_pCity->changeNoBonusCount((BonusTypes)eBonus, iChange);
- }
- bool CyCity::isNoBonus(int /*BonusTypes*/ eBonus)
- {
- return m_pCity ? m_pCity->isNoBonus((BonusTypes)eBonus) : false;
- }
- int CyCity::getFreeBonus(int /*BonusTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getFreeBonus((BonusTypes)eIndex) : -1;
- }
- void CyCity::changeFreeBonus(int /*BonusTypes*/ eIndex, int iChange)
- {
- if (m_pCity)
- m_pCity->changeFreeBonus((BonusTypes)eIndex, iChange);
- }
- int CyCity::getNumBonuses(int /*BonusTypes*/ iBonus)
- {
- return m_pCity ? m_pCity->getNumBonuses((BonusTypes) iBonus) : -1;
- }
- bool CyCity::hasBonus(int /*BonusTypes */iBonus)
- {
- return m_pCity ? m_pCity->hasBonus((BonusTypes) iBonus) : false;
- }
- int CyCity::getBuildingProduction(int /*BuildingTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->getBuildingProduction((BuildingTypes) iIndex) : -1;
- }
- void CyCity::setBuildingProduction(int /*BuildingTypes*/ iIndex, int iNewValue)
- {
- if (m_pCity)
- m_pCity->setBuildingProduction((BuildingTypes) iIndex, iNewValue);
- }
- void CyCity::changeBuildingProduction(int /*BuildingTypes*/ iIndex, int iChange)
- {
- if (m_pCity)
- m_pCity->changeBuildingProduction((BuildingTypes) iIndex, iChange);
- }
- int CyCity::getBuildingProductionTime(int /*BuildingTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getBuildingProductionTime((BuildingTypes)eIndex) : -1;
- }
- void CyCity::setBuildingProductionTime(int /*BuildingTypes*/ eIndex, int iNewValue)
- {
- if (m_pCity)
- m_pCity->setBuildingProductionTime((BuildingTypes)eIndex, iNewValue);
- }
- void CyCity::changeBuildingProductionTime(int /*BuildingTypes*/ eIndex, int iChange)
- {
- if (m_pCity)
- m_pCity->changeBuildingProductionTime((BuildingTypes) eIndex, iChange);
- }
- // BUG - Production Decay - start
- bool CyCity::isBuildingProductionDecay(int /*BuildingTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->isBuildingProductionDecay((BuildingTypes)eIndex) : false;
- }
- int CyCity::getBuildingProductionDecay(int /*BuildingTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getBuildingProductionDecay((BuildingTypes)eIndex) : 0;
- }
- int CyCity::getBuildingProductionDecayTurns(int /*BuildingTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getBuildingProductionDecayTurns((BuildingTypes)eIndex) : 0;
- }
- // BUG - Production Decay - end
- int CyCity::getBuildingOriginalOwner(int /*BuildingTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->getBuildingOriginalOwner((BuildingTypes) iIndex) : -1;
- }
- int CyCity::getBuildingOriginalTime(int /*BuildingTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->getBuildingOriginalTime((BuildingTypes) iIndex) : -1;
- }
- int CyCity::getUnitProduction(int iIndex)
- {
- return m_pCity ? m_pCity->getUnitProduction((UnitTypes) iIndex) : -1;
- }
- void CyCity::setUnitProduction(int iIndex, int iNewValue)
- {
- if (m_pCity)
- m_pCity->setUnitProduction((UnitTypes)iIndex, iNewValue);
- }
- void CyCity::changeUnitProduction(int /*UnitTypes*/ iIndex, int iChange)
- {
- if (m_pCity)
- m_pCity->changeUnitProduction((UnitTypes) iIndex, iChange);
- }
- // BUG - Production Decay - start
- int CyCity::getUnitProductionTime(int /*UnitTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getUnitProductionTime((UnitTypes)eIndex) : -1;
- }
- void CyCity::setUnitProductionTime(int /*UnitTypes*/ eIndex, int iNewValue)
- {
- if (m_pCity)
- m_pCity->setUnitProductionTime((UnitTypes)eIndex, iNewValue);
- }
- void CyCity::changeUnitProductionTime(int /*UnitTypes*/ eIndex, int iChange)
- {
- if (m_pCity)
- m_pCity->changeUnitProductionTime((UnitTypes) eIndex, iChange);
- }
- bool CyCity::isUnitProductionDecay(int /*UnitTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->isUnitProductionDecay((UnitTypes)eIndex) : false;
- }
- int CyCity::getUnitProductionDecay(int /*UnitTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getUnitProductionDecay((UnitTypes)eIndex) : 0;
- }
- int CyCity::getUnitProductionDecayTurns(int /*UnitTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getUnitProductionDecayTurns((UnitTypes)eIndex) : 0;
- }
- // BUG - Production Decay - end
- // BUG - Project Production - start
- int CyCity::getProjectProduction(int /*ProjectTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->getProjectProduction((ProjectTypes) iIndex) : -1;
- }
- void CyCity::setProjectProduction(int /*ProjectTypes*/ iIndex, int iNewValue)
- {
- if (m_pCity)
- m_pCity->setProjectProduction((ProjectTypes) iIndex, iNewValue);
- }
- void CyCity::changeProjectProduction(int /*ProjectTypes*/ iIndex, int iChange)
- {
- if (m_pCity)
- m_pCity->changeProjectProduction((ProjectTypes) iIndex, iChange);
- }
- // BUG - Project Production - end
- int CyCity::getGreatPeopleUnitRate(int /*UnitTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->getGreatPeopleUnitRate((UnitTypes) iIndex) : -1;
- }
- int CyCity::getGreatPeopleUnitProgress(int /*UnitTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->getGreatPeopleUnitProgress((UnitTypes) iIndex) : -1;
- }
- void CyCity::setGreatPeopleUnitProgress(int /*UnitTypes*/ iIndex, int iNewValue)
- {
- if (m_pCity)
- m_pCity->setGreatPeopleUnitProgress((UnitTypes) iIndex, iNewValue);
- }
- void CyCity::changeGreatPeopleUnitProgress(int /*UnitTypes*/ iIndex, int iChange)
- {
- if (m_pCity)
- m_pCity->changeGreatPeopleUnitProgress((UnitTypes) iIndex, iChange);
- }
- int CyCity::getSpecialistCount(int /*SpecialistTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getSpecialistCount((SpecialistTypes)eIndex) : -1;
- }
- void CyCity::alterSpecialistCount(int /*SpecialistTypes*/ eIndex, int iChange)
- {
- if (m_pCity)
- m_pCity->alterSpecialistCount((SpecialistTypes)eIndex, iChange);
- }
- int CyCity::getMaxSpecialistCount(int /*SpecialistTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getMaxSpecialistCount((SpecialistTypes)eIndex) : -1;
- }
- bool CyCity::isSpecialistValid(int /*SpecialistTypes*/ eIndex, int iExtra)
- {
- return m_pCity ? m_pCity->isSpecialistValid((SpecialistTypes) eIndex, iExtra) : false;
- }
- int CyCity::getForceSpecialistCount(int /*SpecialistTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getForceSpecialistCount((SpecialistTypes)eIndex) : -1;
- }
- bool CyCity::isSpecialistForced()
- {
- return m_pCity ? m_pCity->isSpecialistForced() : false;
- }
- int CyCity::getImprovementFreeSpecialists(int /*ImprovementTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->getImprovementFreeSpecialists((ImprovementTypes) iIndex) : -1;
- }
- int CyCity::getReligionInfluence(int /*ReligionTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->getReligionInfluence((ReligionTypes) iIndex) : -1;
- }
- void CyCity::setForceSpecialistCount(int /*SpecialistTypes*/ eIndex, int iNewValue)
- {
- if (m_pCity)
- m_pCity->setForceSpecialistCount((SpecialistTypes)eIndex, iNewValue);
- }
- void CyCity::changeForceSpecialistCount(int /*SpecialistTypes*/ eIndex, int iChange)
- {
- if (m_pCity)
- m_pCity->changeForceSpecialistCount((SpecialistTypes)eIndex, iChange);
- }
- int CyCity::getFreeSpecialistCount(int /*SpecialistTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getFreeSpecialistCount((SpecialistTypes)eIndex) : -1;
- }
- void CyCity::setFreeSpecialistCount(int /*SpecialistTypes*/ eIndex, int iNewValue)
- {
- if (m_pCity)
- m_pCity->setFreeSpecialistCount((SpecialistTypes)eIndex, iNewValue);
- }
- void CyCity::changeFreeSpecialistCount(int /*SpecialistTypes*/ eIndex, int iChange)
- {
- if (m_pCity)
- m_pCity->changeFreeSpecialistCount((SpecialistTypes)eIndex, iChange);
- }
- int CyCity::getAddedFreeSpecialistCount(int /*SpecialistTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getAddedFreeSpecialistCount((SpecialistTypes)eIndex) : -1;
- }
- void CyCity::changeImprovementFreeSpecialists(int /*ImprovementTypes*/ iIndex, int iChange)
- {
- if (m_pCity)
- m_pCity->changeImprovementFreeSpecialists((ImprovementTypes) iIndex, iChange);
- }
- void CyCity::changeReligionInfluence(int /*ReligionTypes*/ iIndex, int iChange)
- {
- if (m_pCity)
- m_pCity->changeReligionInfluence((ReligionTypes) iIndex, iChange);
- }
- int CyCity::getCurrentStateReligionHappiness()
- {
- return m_pCity ? m_pCity->getCurrentStateReligionHappiness() : -1;
- }
- int CyCity::getStateReligionHappiness(int /*ReligionTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getStateReligionHappiness((ReligionTypes) eIndex) : -1;
- }
- void CyCity::changeStateReligionHappiness(int /*ReligionTypes*/ eIndex, int iChange)
- {
- if (m_pCity)
- m_pCity->changeStateReligionHappiness((ReligionTypes) eIndex, iChange);
- }
- int CyCity::getUnitCombatFreeExperience(int /*UnitCombatTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getUnitCombatFreeExperience((UnitCombatTypes) eIndex) : -1;
- }
- int CyCity::getFreePromotionCount(int /*PromotionTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->getFreePromotionCount((PromotionTypes) eIndex) : -1;
- }
- bool CyCity::isFreePromotion(int /*PromotionTypes*/ eIndex)
- {
- return m_pCity ? m_pCity->isFreePromotion((PromotionTypes) eIndex) : false;
- }
- int CyCity::getSpecialistFreeExperience() const
- {
- return m_pCity ? m_pCity->getSpecialistFreeExperience() : -1;
- }
- int CyCity::getEspionageDefenseModifier() const
- {
- return m_pCity ? m_pCity->getEspionageDefenseModifier() : 0;
- }
- bool CyCity::isWorkingPlotByIndex(int iIndex)
- {
- return m_pCity ? m_pCity->isWorkingPlot(iIndex) : false;
- }
- bool CyCity::isWorkingPlot(CyPlot* pPlot)
- {
- return m_pCity ? m_pCity->isWorkingPlot(pPlot->getPlot()) : false;
- }
- void CyCity::alterWorkingPlot(int iIndex)
- {
- if (m_pCity)
- m_pCity->alterWorkingPlot(iIndex);
- }
- int CyCity::getNumRealBuilding(int /*BuildingTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->getNumRealBuilding((BuildingTypes) iIndex) : -1;
- }
- void CyCity::setNumRealBuilding(int /*BuildingTypes*/ iIndex, int iNewValue)
- {
- if (m_pCity)
- m_pCity->setNumRealBuilding((BuildingTypes) iIndex, iNewValue);
- }
- int CyCity::getNumFreeBuilding(int /*BuildingTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->getNumFreeBuilding((BuildingTypes) iIndex) : -1;
- }
- bool CyCity::isHasReligion(int /*ReligionTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->isHasReligion((ReligionTypes) iIndex) : false;
- }
- void CyCity::setHasReligion(int /*ReligionTypes*/ iIndex, bool bNewValue, bool bAnnounce, bool bArrows)
- {
- if (m_pCity)
- m_pCity->setHasReligion((ReligionTypes) iIndex, bNewValue, bAnnounce, bArrows);
- }
- bool CyCity::isHasCorporation(int /*CorporationTypes*/ iIndex)
- {
- return m_pCity ? m_pCity->isHasCorporation((CorporationTypes) iIndex) : false;
- }
- void CyCity::setHasCorporation(int /*CorporationTypes*/ iIndex, bool bNewValue, bool bAnnounce, bool bArrows)
- {
- if (m_pCity)
- m_pCity->setHasCorporation((CorporationTypes) iIndex, bNewValue, bAnnounce, bArrows);
- }
- bool CyCity::isActiveCorporation(int /*CorporationTypes*/ eCorporation)
- {
- return m_pCity ? m_pCity->isActiveCorporation((CorporationTypes) eCorporation) : false;
- }
- CyCity* CyCity::getTradeCity(int iIndex)
- {
- return m_pCity ? new CyCity(m_pCity->getTradeCity(iIndex)) : NULL;
- }
- int CyCity::getTradeRoutes()
- {
- return m_pCity ? m_pCity->getTradeRoutes() : -1;
- }
- void CyCity::clearOrderQueue()
- {
- if (m_pCity)
- m_pCity->clearOrderQueue();
- }
- void CyCity::pushOrder(OrderTypes eOrder, int iData1, int iData2, bool bSave, bool bPop, bool bAppend, bool bForce)
- {
- if (m_pCity)
- m_pCity->pushOrder(eOrder, iData1, iData2, bSave, bPop, bAppend, bForce);
- }
- void CyCity::popOrder(int iNum, bool bFinish, bool bChoose)
- {
- if (m_pCity)
- m_pCity->popOrder(iNum, bFinish, bChoose);
- }
- int CyCity::getOrderQueueLength()
- {
- return m_pCity ? m_pCity->getOrderQueueLength() : -1;
- }
- OrderData* CyCity::getOrderFromQueue(int iIndex)
- {
- return m_pCity ? m_pCity->getOrderFromQueue(iIndex) : NULL;
- }
- void CyCity::setWallOverridePoints(const python::tuple& kPoints)
- {
- if (!m_pCity)
- return;
- float* pPointsData = NULL;
- int iSeqLength = gDLL->getPythonIFace()->putSeqInArray(kPoints.ptr() /*src*/, &pPointsData /*dst*/);
- // copy to pairs vector
- std::vector< std::pair<float, float> > pointsVec;
- pointsVec.reserve(iSeqLength/2);
- int i;
- for(i=0;i<iSeqLength;i+=2)
- {
- std::pair<float, float> pr(pPointsData[i], pPointsData[i+1]);
- pointsVec.push_back(pr);
- }
- m_pCity->setWallOverridePoints(pointsVec);
- delete [] pPointsData;
- }
- python::tuple CyCity::getWallOverridePoints() const
- {
- python::tuple tup = python::make_tuple();
- if (m_pCity)
- {
- std::vector< std::pair<float, float> > pointsVec = m_pCity->getWallOverridePoints();
- uint i;
- for(i=0;i<pointsVec.size();i++)
- tup += python::make_tuple(pointsVec[i].first, pointsVec[i].second);
- }
- return tup;
- }
- bool CyCity::AI_avoidGrowth()
- {
- return m_pCity ? m_pCity->AI_avoidGrowth() : false;
- }
- bool CyCity::AI_isEmphasize(int iEmphasizeType)
- {
- return m_pCity ? m_pCity->AI_isEmphasize((EmphasizeTypes)iEmphasizeType) : false;
- }
- int CyCity::AI_countBestBuilds(CyArea* pArea)
- {
- return m_pCity ? m_pCity->AI_countBestBuilds(pArea->getArea()) : -1;
- }
- int CyCity::AI_cityValue()
- {
- return m_pCity ? m_pCity->AI_cityValue() : -1;
- }
- std::string CyCity::getScriptData() const
- {
- return m_pCity ? m_pCity->getScriptData() : "";
- }
- void CyCity::setScriptData(std::string szNewValue)
- {
- if (m_pCity)
- m_pCity->setScriptData(szNewValue);
- }
- int CyCity::visiblePopulation(void)
- {
- if ( m_pCity )
- {
- return m_pCity->visiblePopulation();
- }
- return 0;
- }
- int CyCity::getBuildingYieldChange(int /*BuildingClassTypes*/ eBuildingClass, int /*YieldTypes*/ eYield) const
- {
- return m_pCity ? m_pCity->getBuildingYieldChange((BuildingClassTypes)eBuildingClass, (YieldTypes)eYield) : 0;
- }
- void CyCity::setBuildingYieldChange(int /*BuildingClassTypes*/ eBuildingClass, int /*YieldTypes*/ eYield, int iChange)
- {
- if (m_pCity)
- {
- m_pCity->setBuildingYieldChange((BuildingClassTypes)eBuildingClass, (YieldTypes)eYield, iChange);
- }
- }
- int CyCity::getBuildingCommerceChange(int /*BuildingClassTypes*/ eBuildingClass, int /*CommerceTypes*/ eCommerce) const
- {
- return m_pCity ? m_pCity->getBuildingCommerceChange((BuildingClassTypes)eBuildingClass, (CommerceTypes)eCommerce) : 0;
- }
- void CyCity::setBuildingCommerceChange(int /*BuildingClassTypes*/ eBuildingClass, int /*CommerceTypes*/ eCommerce, int iChange)
- {
- if (m_pCity)
- {
- m_pCity->setBuildingCommerceChange((BuildingClassTypes)eBuildingClass, (CommerceTypes)eCommerce, iChange);
- }
- }
- int CyCity::getBuildingHappyChange(int /*BuildingClassTypes*/ eBuildingClass) const
- {
- return m_pCity ? m_pCity->getBuildingHappyChange((BuildingClassTypes)eBuildingClass) : 0;
- }
- void CyCity::setBuildingHappyChange(int /*BuildingClassTypes*/ eBuildingClass, int iChange)
- {
- if (m_pCity)
- {
- m_pCity->setBuildingHappyChange((BuildingClassTypes)eBuildingClass, iChange);
- }
- }
- int CyCity::getBuildingHealthChange(int /*BuildingClassTypes*/ eBuildingClass) const
- {
- return m_pCity ? m_pCity->getBuildingHealthChange((BuildingClassTypes)eBuildingClass) : 0;
- }
- void CyCity::setBuildingHealthChange(int /*BuildingClassTypes*/ eBuildingClass, int iChange)
- {
- if (m_pCity)
- {
- m_pCity->setBuildingHealthChange((BuildingClassTypes)eBuildingClass, iChange);
- }
- }
- int CyCity::getLiberationPlayer(bool bConquest)
- {
- return (m_pCity ? m_pCity->getLiberationPlayer(bConquest) : -1);
- }
- void CyCity::liberate(bool bConquest)
- {
- if (m_pCity)
- {
- m_pCity->liberate(bConquest);
- }
- }
- //FfH: Added by Kael 10/18/2007
- void CyCity::applyBuildEffects(CyUnit* pUnit)
- {
- if (m_pCity)
- //>>>>Unofficial Bug Fix: Modified by Denev 2010/02/20
- //*** Doubled unit by Warrens receives all effects from buildings.
- // m_pCity->addProductionExperience(pUnit->getUnit());
- {
- m_pCity->applyBuildEffects(pUnit->getUnit());
- }
- //<<<<Unofficial Bug Fix: End Modify
- }
- void CyCity::changeCrime(int iChange)
- {
- if (m_pCity)
- m_pCity->changeCrime(iChange);
- }
- int CyCity::getCrime() const
- {
- return m_pCity ? m_pCity->getCrime() : -1;
- }
- bool CyCity::isHasBuildingClass(int /*BuildingClassTypes*/ iIndex) const
- {
- return m_pCity ? m_pCity->isHasBuildingClass(iIndex) : false;
- }
- bool CyCity::isSettlement() const
- {
- return m_pCity ? m_pCity->isSettlement() : false;
- }
- void CyCity::setCivilizationType(int iNewValue)
- {
- if (m_pCity)
- m_pCity->setCivilizationType(iNewValue);
- }
- // lfgr 03/2021
- int CyCity::getPlotRadius() const
- {
- return m_pCity ? m_pCity->getPlotRadius() : 0;
- }
- void CyCity::setPlotRadius(int iNewValue)
- {
- if (m_pCity)
- m_pCity->setPlotRadius(iNewValue);
- }
- // lfgr 03/2021
- int CyCity::getNumCityPlots() const
- {
- return m_pCity ? ::calculateNumCityPlots( getPlotRadius() ) : 0;
- }
- void CyCity::setSettlement(bool bNewValue)
- {
- if (m_pCity)
- m_pCity->setSettlement(bNewValue);
- }
- //FfH: End Add
- /********************************************************************************/
- /* Expose FfH Functions 02/28/12 lfgr */
- /********************************************************************************/
- bool CyCity::isUnhappyProduction() const
- {
- return m_pCity ? m_pCity->isUnhappyProduction() : false;
- }
- /********************************************************************************/
- /* Expose FfH Functions End lfgr */
- /********************************************************************************/
- /*************************************************************************************************/
- /** BETTER AI (New Functions Definition) Sephi **/
- /** **/
- /** **/
- /*************************************************************************************************/
- bool CyCity::AI_stopGrowth()
- {
- return m_pCity ? m_pCity->AI_stopGrowth() : false;
- }
- int CyCity::AI_neededSeaWorkers()
- {
- return m_pCity ? m_pCity->AI_neededSeaWorkers() : -1;
- }
- /*************************************************************************************************/
- /** END **/
- /*************************************************************************************************/
- int CyCity::getAltarLevel()
- {
- return m_pCity ? m_pCity->getAltarLevel() : -1;
- }
- //>>>>Unofficial Bug Fix: Added by Denev 2009/09/28
- //*** Assimilated city produces a unit with original civilization artstyle.
- const TCHAR* CyCity::getUnitArtStyleButton(int /*UnitTypes*/ eUnit) const
- {
- return m_pCity ? m_pCity->getUnitArtStyleButton((UnitTypes)eUnit) : TEXT("");
- }
- //<<<<Unofficial Bug Fix: End Add
- /************************************************************************************************/
- /* REVOLUTION_MOD 02/01/09 jdog5000 */
- /* */
- /* */
- /************************************************************************************************/
- int /*UnitTypes*/ CyCity::AI_bestUnit()
- {
- return (m_pCity ? m_pCity->AI_bestUnit() : -1);
- }
- int /*UnitTypes*/ CyCity::AI_bestUnitAI(int iUnitAIType)
- {
- return (m_pCity ? m_pCity->AI_bestUnitAI((UnitAITypes)iUnitAIType) : -1);
- }
- int /*BuildingTypes*/ CyCity::AI_bestBuilding(int iFocusFlags)
- {
- return (m_pCity ? m_pCity->AI_bestBuilding(iFocusFlags) : -1);
- }
- /************************************************************************************************/
- /* REVOLUTION_MOD END */
- /************************************************************************************************/
|