Deal.GetGoldAvailable (Civ5 API)

From Civilization Modding Wiki
Revision as of 18:46, 19 September 2012 by DonQuich (talk | contribs) (Bot update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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


Function.png This function is a member of Deal.

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


Usage

int Deal:GetGoldAvailable(PlayerID us, TradeableItemType itemToBeChanged)


Returned Value

No description available.

Parameters

us: No description available.
itemToBeChanged: No description available.


Source code samples

Redundant occurences have been removed.

DiploRelationships.lua

UI/InGame/Popups/DiploRelationships.lua
0278
local iGold = g_Deal:GetGoldAvailable(iPlayer, iItemToBeChanged);


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
1000
local iGold = g_Deal:GetGoldAvailable(g_iUs, iItemToBeChanged);
1015
iGold = g_Deal:GetGoldAvailable(g_iThem, iItemToBeChanged);
1663
strTooltip = Locale.ConvertTextKey( "TXT_KEY_DIPLO_CURRENT_GOLD", g_Deal:GetGoldAvailable(g_iUs, iItemToBeChanged) );
1670
strTooltip = Locale.ConvertTextKey( "TXT_KEY_DIPLO_CURRENT_GOLD", g_Deal:GetGoldAvailable(g_iThem, iItemToBeChanged) );
1876
iAmountAvailable = g_Deal:GetGoldAvailable(g_iUs, iItemToBeChanged);
1883
iAmountAvailable = g_Deal:GetGoldAvailable(g_iThem, iItemToBeChanged);
1926
iAmountAvailable = g_Deal:GetGoldAvailable(g_iUs, TradeableItems.TRADE_ITEM_GOLD);
1935
local strTooltip = Locale.ConvertTextKey( "TXT_KEY_DIPLO_CURRENT_GOLD", g_Deal:GetGoldAvailable(g_iUs, iItemToBeChanged) );
1941
iAmountAvailable = g_Deal:GetGoldAvailable(g_iThem, TradeableItems.TRADE_ITEM_GOLD);
1950
local strTooltip = Locale.ConvertTextKey( "TXT_KEY_DIPLO_CURRENT_GOLD", g_Deal:GetGoldAvailable(g_iThem, iItemToBeChanged) );



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.