Bazaar developer reference

CvLuaTeam::PushMethods(lua_State *, int)

Defined in
Lua/CvLuaTeam.cpp, line 36
Class
CvLuaTeam
Hook name
CivHooks::CvLuaTeam_PushMethods

Hooks

static bool BeforeCvLuaTeam_PushMethods(lua_State* L, int t);static void AfterCvLuaTeam_PushMethods(lua_State* L, int t);static void ReplaceCvLuaTeam_PushMethods(void (*original)(lua_State*, int), lua_State* L, int t);CivRegisterBefore<CivHooks::CvLuaTeam_PushMethods>(host, &BeforeCvLuaTeam_PushMethods);CivRegisterAfter<CivHooks::CvLuaTeam_PushMethods>(host, &AfterCvLuaTeam_PushMethods);CivRegisterReplace<CivHooks::CvLuaTeam_PushMethods>(host, &ReplaceCvLuaTeam_PushMethods);

Code

36void CvLuaTeam::PushMethods(lua_State* L, int t)37{38	Method(IsNone);3940	Method(AddTeam);4142	Method(CanChangeWarPeace);43	Method(CanDeclareWar);44	Method(DeclareWar);45	Method(MakePeace);46	Method(GetNumTurnsLockedIntoWar);47	Method(Meet);4849	Method(GetScore);50	Method(GetPower);51	Method(GetDefensivePower);52	Method(GetNumNukeUnits);5354	Method(GetTeamVotingForInDiplo);55	Method(GetProjectedVotesFromMinorAllies);56	Method(GetProjectedVotesFromLiberatedMinors);57	Method(GetProjectedVotesFromCivs);58	Method(GetTotalProjectedVotes);59	Method(GetTotalSecuredVotes); // DEPRECATED, use GetTotalProjectedVotes instead6061	Method(GetAtWarCount);62	Method(GetHasMetCivCount);63	Method(HasMetHuman);64	Method(GetDefensivePactCount);6566	Method(GetUnitClassMaking);67	Method(GetUnitClassCountPlusMaking);68	Method(GetBuildingClassMaking);69	Method(GetBuildingClassCountPlusMaking);7071	Method(CountNumUnitsByArea);72	Method(CountNumCitiesByArea);73	Method(CountTotalPopulationByArea);74	Method(CountEnemyDangerByArea);7576	Method(IsHuman);77	Method(IsBarbarian);7879#if defined(MOD_API_LUA_EXTENSIONS)80	Method(IsMajorCiv);81#endif82	Method(IsMinorCiv);83	Method(IsMinorCivWarmonger);8485	Method(GetLeaderID);86	Method(GetSecretaryID);87	Method(GetHandicapType);88	Method(GetName);89	Method(GetNameKey);9091	Method(GetNumMembers);92	Method(IsAlive);93	Method(IsEverAlive);94	Method(GetNumCities);95	Method(GetTotalPopulation);96	Method(GetTotalLand);97	Method(GetNukeInterception);98	Method(ChangeNukeInterception);99100	Method(GetForceTeamVoteEligibilityCount);101	Method(IsForceTeamVoteEligible);102	Method(ChangeForceTeamVoteEligibilityCount);103	Method(GetExtraWaterSeeFromCount);104	Method(IsExtraWaterSeeFrom);105	Method(ChangeExtraWaterSeeFromCount);106	Method(GetMapTradingCount);107	Method(IsMapTrading);108	Method(ChangeMapTradingCount);109	Method(GetTechTradingCount);110	Method(IsTechTrading);111	Method(ChangeTechTradingCount);112	Method(GetGoldTradingCount);113	Method(IsGoldTrading);114	Method(ChangeGoldTradingCount);115	Method(GetAllowEmbassyTradingAllowedCount);116	Method(IsAllowEmbassyTradingAllowed);117	Method(ChangeAllowEmbassyTradingAllowedCount);118	Method(GetOpenBordersTradingAllowedCount);119	Method(IsOpenBordersTradingAllowed);120	Method(IsOpenBordersTradingAllowedWithTeam);121	Method(ChangeOpenBordersTradingAllowedCount);122	Method(GetDefensivePactTradingAllowedCount);123	Method(IsDefensivePactTradingAllowed);124	Method(IsDefensivePactTradingAllowedWithTeam);125	Method(ChangeDefensivePactTradingAllowedCount);126	Method(IsResearchAgreementTradingAllowed);127	Method(IsResearchAgreementTradingAllowedWithTeam);128	Method(IsTradeAgreementTradingAllowed);129	Method(GetPermanentAllianceTradingCount);130	Method(IsPermanentAllianceTrading);131	Method(ChangePermanentAllianceTradingCount);132#if defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_TECHS_CITY_WORKING)133	Method(GetCityWorkingChange);134	Method(IsCityWorkingChange);135	Method(ChangeCityWorkingChange);136#endif137#if defined(MOD_API_LUA_EXTENSIONS) && defined(MOD_TECHS_CITY_AUTOMATON_WORKERS)138	Method(GetCityAutomatonWorkersChange);139	Method(IsCityAutomatonWorkersChange);140	Method(ChangeCityAutomatonWorkersChange);141#endif142	Method(GetBridgeBuildingCount);143	Method(IsBridgeBuilding);144	Method(ChangeBridgeBuildingCount);145	Method(GetWaterWorkCount);146	Method(IsWaterWork);147	Method(ChangeWaterWorkCount);148149	Method(GetBorderObstacleCount);150	Method(IsBorderObstacle);151	Method(ChangeBorderObstacleCount);152153	Method(IsMapCentering);154	Method(SetMapCentering);155156	Method(GetID);157158	Method(GetTechShareCount);159	Method(IsTechShare);160	Method(ChangeTechShareCount);161162	Method(GetExtraMoves);163	Method(ChangeExtraMoves);164165	Method(CanEmbark);166	Method(CanDefensiveEmbark);167168	Method(IsHasMet);169	Method(IsAtWar);170	Method(IsPermanentWarPeace);171	Method(SetPermanentWarPeace);172173	Method(GetLiberatedByTeam);174	Method(GetKilledByTeam);175176	Method(HasEmbassyAtTeam);177#if defined(MOD_API_LUA_EXTENSIONS)178	Method(HasSpyAtTeam);179#endif180	Method(IsAllowsOpenBordersToTeam);181	Method(IsForcePeace);182	Method(IsDefensivePact);183	Method(GetRouteChange);184	Method(ChangeRouteChange);185	Method(GetProjectCount);186	Method(GetProjectDefaultArtType);187	Method(SetProjectDefaultArtType);188	Method(GetProjectArtType);189	Method(SetProjectArtType);190	Method(IsProjectMaxedOut);191	Method(IsProjectAndArtMaxedOut);192	Method(ChangeProjectCount);193	Method(GetProjectMaking);194	Method(GetUnitClassCount);195	Method(IsUnitClassMaxedOut);196	Method(GetBuildingClassCount);197	Method(IsBuildingClassMaxedOut);198	Method(GetObsoleteBuildingCount);199	Method(IsObsoleteBuilding);200201	Method(IsHasResearchAgreement);202	Method(IsHasTradeAgreement);203204	Method(IsHasTech);205	Method(SetHasTech);206207	Method(GetTeamTechs);208209	Method(GetImprovementYieldChange);210	Method(ChangeImprovementYieldChange);211212	Method(IsHomeOfUnitedNations);213214	Method(GetVictoryCountdown);215	Method(GetVictoryDelay);216	Method(CanLaunch);217218	Method(GetVictoryPoints);219	Method(ChangeVictoryPoints);220221	Method(GetCurrentEra);222	Method(SetCurrentEra);223224	Method(UpdateEmbarkGraphics);225}

Calls