Player.CalculateGoldRate (Civ5 API)

From Civilization Modding Wiki
Revision as of 07:28, 20 September 2012 by DonQuich (talk | contribs) (Bot update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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:CalculateGoldRate()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

DiploRelationships.lua

UI/InGame/Popups/DiploRelationships.lua
0289
local iGoldPerTurn = Players[iPlayer]:CalculateGoldRate();


TopPanel.lua

UI/InGame/TopPanel.lua
0042
local iGoldPerTurn = pPlayer:CalculateGoldRate();


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
1034
local iGoldPerTurn = g_pUs:CalculateGoldRate();
1049
iGoldPerTurn = g_pThem:CalculateGoldRate();
1686
strTooltip = Locale.ConvertTextKey( "TXT_KEY_DIPLO_CURRENT_GPT", g_pUs:CalculateGoldRate() - data1 );
1695
strTooltip = Locale.ConvertTextKey( "TXT_KEY_DIPLO_CURRENT_GPT", g_pThem:CalculateGoldRate() - data1 );
1976
if (iGoldPerTurn > g_pUs:CalculateGoldRate()) then
1977
iGoldPerTurn = g_pUs:CalculateGoldRate();
1983
if (iGoldPerTurn > g_pThem:CalculateGoldRate()) then
2039
local strTooltip = Locale.ConvertTextKey( "TXT_KEY_DIPLO_CURRENT_GPT", g_pUs:CalculateGoldRate() - iGoldPerTurn );
2052
local strTooltip = Locale.ConvertTextKey( "TXT_KEY_DIPLO_CURRENT_GPT", g_pThem:CalculateGoldRate() - iGoldPerTurn );



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.