Player.IsMinorCiv (Civ5 API)

From Civilization Modding Wiki
Jump to: navigation, search

This page is a part of the Lua and UI Reference (Civ5).


Function.png This function is a member of Player.

This is an instance method, invoke it with a colon.


Usage

int Player:IsMinorCiv()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0150
local isCapital = city:IsCapital() or Players[city:GetOriginalOwner()]:IsMinorCiv();
0152
if (city:IsCapital() and not player:IsMinorCiv()) then
0156
DoResizeBanner(controls, convertedKey, isCapital, player:IsMinorCiv(), isActiveTeamCity);
0409
if( player:IsMinorCiv() ) then
0425
if( pOriginalOwner:IsMinorCiv() ) then
0465
elseif (player:IsMinorCiv()) then
1115
if player:IsMinorCiv() then


CityStateStatusHelper.lua (G&K)

DLC/Expansion/UI/CityStateStatusHelper.lua
0417
if (Players[iQuestData1]:IsMinorCiv()) then


CivsAlive.lua - DLC_01 DLC

DLC/DLC_01/Scenarios/Mongol Scenario/CivsAlive.lua
0076
if (Players[playerID]:IsMinorCiv()) then


ConfirmGiftPopup.lua

UI/InGame/PopupsGeneric/ConfirmGiftPopup.lua
0020
if (pGiftedPlayer:IsMinorCiv()) then


DeclareWarMovePopup.lua

UI/InGame/PopupsGeneric/DeclareWarMovePopup.lua
0019
if (not owner:IsMinorCiv() and Teams[Game.GetActiveTeam()]:IsOpenBordersTradingAllowed()) then
0025
if (owner:IsMinorCiv()) then


DeclareWarMovePopup.lua (G&K)

DLC/Expansion/UI/InGame/PopupsGeneric/DeclareWarMovePopup.lua
0019
if (not owner:IsMinorCiv() and Teams[Game.GetActiveTeam()]:IsOpenBordersTradingAllowedWithTeam(plot:GetTeam())) then


Demographics.lua

UI/InGame/Popups/Demographics.lua
0047
if(pPlayer:IsAlive() and not pPlayer:IsMinorCiv()) then


DiploList.lua

UI/InGame/DiploList.lua
0421
if( pOtherPlayer:IsMinorCiv() and
0521
if( Players[iQuestData1]:IsMinorCiv() ) then


DiploRelationships.lua

UI/InGame/Popups/DiploRelationships.lua
0057
if (pOtherPlayer:IsMinorCiv()) then


DiploVotePopup.lua

UI/InGame/Popups/DiploVotePopup.lua
0060
if (not pOtherPlayer:IsMinorCiv()) then


EnemyUnitPanel.lua

UI/InGame/WorldView/EnemyUnitPanel.lua
0105
if pPlayer:IsMinorCiv() then
1073
if (iModifier ~= 0 and pTheirPlayer:IsMinorCiv()) then


PlotMouseoverInclude.lua

UI/InGame/PlotMouseoverInclude.lua
0012
if( pOtherPlayer:IsMinorCiv() and iActiveTeam ~= iOtherTeam and pOtherPlayer:IsAlive() and pTeam:IsHasMet( iOtherTeam ) ) then


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
2578
elseif (pLoopPlayer:IsMinorCiv()) then
2616
elseif (pLoopPlayer:IsMinorCiv() and pLoopPlayer:GetAlly() == iFromPlayer) then


TradeLogic.lua (G&K)

DLC/Expansion/UI/InGame/WorldView/TradeLogic.lua
2985
if (Players[iOtherPlayer]:IsMinorCiv()) then


TurnsRemaining.lua - DLC_02 DLC

DLC/DLC_02/Scenarios/NewWorldScenario/TurnsRemaining.lua
0099
if( pPlayer1:IsMinorCiv() ) then
0145
if (bAdjacentChina and not player:IsMinorCiv() and not player:IsBarbarian()) then
0408
if (pPlayer:IsAlive() and not pPlayer:IsMinorCiv() and (iPlayer == iNWOwner or iNWOwner == -1 or iNWOwner > 7)) then
0452
if( newPlayer:IsMinorCiv() ) then
0457
if (not oldPlayer:IsMinorCiv()) then


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
0651
if (bAdjacentChina and not player:IsMinorCiv() and not player:IsBarbarian() and iNumConquistadors < 3) then


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/SteampunkScenario/TurnsRemaining.lua
0516
if (not pPlayer:IsMinorCiv() and pPlayer:GetNumCities() == 1) then


TutorialChecks.lua

Tutorial/TutorialChecks.lua
1125
if (pOtherPlayer:IsMinorCiv() and pOtherPlayer:IsAlive() and not pTeam:IsAtWar(iOtherTeam)) then
2464
if (iPlotOwner >= 0 and Players[iPlotOwner]:IsMinorCiv() and not pTeam:IsAtWar(iPlotTeam)) then


UnitPanel.lua

UI/InGame/WorldView/UnitPanel.lua
0451
if( pPlayer:IsMinorCiv() ) then


VictoryProgress.lua

UI/InGame/Popups/VictoryProgress.lua
0217
if(not pPlayer:IsMinorCiv() and pPlayer:IsEverAlive()) then
0447
if(not v:IsMinorCiv() and v:IsAlive() and (leadAI == nil or v:GetNumPolicyBranchesFinished() > maxPolicies) and i ~= Game.GetActivePlayer()) then


VictoryProgress.lua (G&K)

DLC/Expansion/UI/InGame/Popups/VictoryProgress.lua
0720
if (pLeaderLoop:IsMinorCiv() and pTeamLoop:GetTeamVotingForInDiplo() == iTeam) then
0735
elseif (not pLeaderLoop:IsMinorCiv() and Game.GetPreviousVoteCast(iTeamLoop) == iTeam) then



The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.