Player.GetMinorCivFriendshipWithMajor (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:GetMinorCivFriendshipWithMajor(PlayerID major)


Returned Value

No description available.

Parameters

major: No description available.


Source code samples

Redundant occurences have been removed.

CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0411
SetUpMinorMeter( player:GetMinorCivFriendshipWithMajor( iActivePlayer ), controls, textColor );
0494
elseif (player:GetMinorCivFriendshipWithMajor(iActivePlayer) < 0) then      -- Angry


CityBannerManager.lua (G&K)

DLC/Expansion/UI/InGame/CityBannerManager.lua
0549
if (Players[iMinor]:GetMinorCivFriendshipWithMajor(iMajor) == 0) then


CityStateDiploPopup.lua

UI/InGame/Popups/CityStateDiploPopup.lua
0760
local iFriendship = pPlayer:GetMinorCivFriendshipWithMajor(iActivePlayer);


CityStateDiploPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/CityStateDiploPopup.lua
0251
local iAllyInf = pPlayer:GetMinorCivFriendshipWithMajor(iAlly);
0252
local iActivePlayerInf = pPlayer:GetMinorCivFriendshipWithMajor(iActivePlayer);


CityStateStatusHelper.lua (G&K)

DLC/Expansion/UI/CityStateStatusHelper.lua
0059
local iInf = pMinor:GetMinorCivFriendshipWithMajor(iMajor);
0192
elseif (pMinor:GetMinorCivFriendshipWithMajor(iMajor) < GameDefines["FRIENDSHIP_THRESHOLD_NEUTRAL"]) then
0227
local iInfluence = pMinor:GetMinorCivFriendshipWithMajor(iMajor);


DiploList.lua

UI/InGame/DiploList.lua
0472
local info = GetStatusRow(pOtherPlayer:GetMinorCivFriendshipWithMajor(Game.GetActivePlayer()), controlTable, color);


DiploRelationships.lua

UI/InGame/Popups/DiploRelationships.lua
0401
elseif (pPlayer:GetMinorCivFriendshipWithMajor(iActivePlayer) < 0) then      -- Angry
0478
local info = GetStatusRow(pPlayer:GetMinorCivFriendshipWithMajor(iActivePlayer));


InfoTooltipInclude.lua

UI/InGame/InfoTooltipInclude.lua
0340
pPlayer:GetMinorCivFriendshipWithMajor(iForPlayer),
0358
pPlayer:GetMinorCivFriendshipWithMajor(iForPlayer), GameDefines["MINOR_FRIENDSHIP_AT_WAR"]);
0374
elseif (pPlayer:GetMinorCivFriendshipWithMajor(iForPlayer) < 0) then      -- Angry
0382
pPlayer:GetMinorCivFriendshipWithMajor(iForPlayer) - GameDefines["FRIENDSHIP_THRESHOLD_NEUTRAL"],



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.