TeamTechs.HasTech (Civ5 API)

From Civilization Modding Wiki
Revision as of 11:47, 20 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 TeamTechs.

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


Usage

int TeamTechs:HasTech(int index)


Returned Value

No description available.

Parameters

index: No description available.


Source code samples

Redundant occurences have been removed.

Demographics.lua

UI/InGame/Popups/Demographics.lua
0388
not pTeamTechs:HasTech( iWriting ) ) then
0394
if( pTeamTechs:HasTech( row.ID ) ) then


PlotMouseoverInclude.lua

UI/InGame/PlotMouseoverInclude.lua
0184
if (iTechCityTrade ~= -1 and not pTeam:GetTeamTechs():HasTech(iTechCityTrade)) then


TechHelpInclude.lua

UI/InGame/TechTree/TechHelpInclude.lua
0018
if (pTeamTechs:HasTech(iTechID)) then
0028
if (iProgress == 0 or pTeamTechs:HasTech(iTechID)) then


TechPopup.lua

UI/InGame/TechPopup.lua
0288
if activeTeam:GetTeamTechs():HasTech(tech.ID) then


TechTree.lua

UI/InGame/TechTree/TechTree.lua
0588
if activeTeam:GetTeamTechs():HasTech(techID) then -- the player (or more accurately his team) has already researched this one


TopPanel.lua

UI/InGame/TopPanel.lua
0165
if (pTeam:GetTeamTechs():HasTech(GameInfoTypes[pResource.TechReveal])) then
0166
if (pTeam:GetTeamTechs():HasTech(GameInfoTypes[pResource.TechCityTrade])) then


TurnsRemaining.lua - DLC_02 DLC

DLC/DLC_02/Scenarios/NewWorldScenario/TurnsRemaining.lua
0294
if (pTeam:GetTeamTechs():HasTech(iTech)) then


UnitPanel.lua

UI/InGame/WorldView/UnitPanel.lua
1116
if (iPrereqTech ~= -1 and not pActiveTeam:GetTeamTechs():HasTech(iPrereqTech)) 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.