TechType (Civ5 Type)

From Civilization Modding Wiki
Revision as of 14:56, 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).


ID.png The TechType pseudo-type is actually a regular integer. Pseudo-types do not exist in Lua, they only serve a documentation purpose on the wiki!
  • DB.png Integers labeled as TechType corresponds to the ID column of the Technologies XML table.


XML: the Technologies table

Here are the ID and Type columns found in this table.

ID Type
0 TECH_AGRICULTURE
1 TECH_POTTERY
2 TECH_ANIMAL_HUSBANDRY
3 TECH_ARCHERY
4 TECH_MINING
5 TECH_SAILING
6 TECH_CALENDAR
7 TECH_WRITING
8 TECH_TRAPPING
9 TECH_THE_WHEEL
10 TECH_MASONRY
11 TECH_BRONZE_WORKING
12 TECH_OPTICS
13 TECH_PHILOSOPHY
14 TECH_HORSEBACK_RIDING
15 TECH_MATHEMATICS
16 TECH_CONSTRUCTION
17 TECH_IRON_WORKING
17 TECH_DRAMA
18 TECH_THEOLOGY
19 TECH_CIVIL_SERVICE
20 TECH_CURRENCY
21 TECH_ENGINEERING
22 TECH_METAL_CASTING
23 TECH_COMPASS
23 TECH_GUILDS
24 TECH_EDUCATION
25 TECH_CHIVALRY
26 TECH_MACHINERY
27 TECH_PHYSICS
28 TECH_STEEL
29 TECH_ASTRONOMY
30 TECH_ACOUSTICS
31 TECH_BANKING
32 TECH_PRINTING_PRESS
33 TECH_GUNPOWDER
34 TECH_NAVIGATION
35 TECH_ECONOMICS
36 TECH_CHEMISTRY
37 TECH_METALLURGY
37 TECH_ARCHITECTURE
38 TECH_ARCHAEOLOGY
39 TECH_SCIENTIFIC_THEORY
40 TECH_MILITARY_SCIENCE
41 TECH_FERTILIZER
42 TECH_RIFLING
43 TECH_BIOLOGY
43 TECH_INDUSTRIALIZATION
44 TECH_STEAM_POWER
45 TECH_ELECTRICITY
46 TECH_REPLACEABLE_PARTS
47 TECH_RAILROAD
48 TECH_DYNAMITE
49 TECH_REFRIGERATION
50 TECH_TELEGRAPH
51 TECH_RADIO
52 TECH_FLIGHT
53 TECH_COMBUSTION
54 TECH_PLASTIC
55 TECH_PENICILIN
56 TECH_ELECTRONICS
57 TECH_MASS_MEDIA
58 TECH_RADAR
58 TECH_BALLISTICS
59 TECH_ATOMIC_THEORY
60 TECH_ECOLOGY
61 TECH_COMPUTERS
62 TECH_ROCKETRY
63 TECH_LASERS
63 TECH_COMBINED_ARMS
64 TECH_NUCLEAR_FISSION
65 TECH_GLOBALIZATION
66 TECH_ROBOTICS
67 TECH_SATELLITES
68 TECH_STEALTH
68 TECH_TELECOM
69 TECH_ADVANCED_BALLISTICS
69 TECH_MOBILE_TACTICS
70 TECH_PARTICLE_PHYSICS
71 TECH_NUCLEAR_FUSION
72 TECH_NANOTECHNOLOGY
73 TECH_FUTURE_TECH


Examples

Used by

Events.NotificationAdded(CityAIFocusType notification, NotificationType notificationType, string toolTip, string summary, int gameValue, TechType extraGameData)
int Game.CountKnownTechNumTeams(TechType tech)
bool Game.IsTechRecommended(TechType arg0, AdvisorType advisorLoop)
GameEvents.TeamSetHasTech(TeamID team, TechType tech, bool adopted)
GameEvents.TeamTechResearched(TeamID team, TechType tech, int change)
Grid:SetVoid1(TechType tech)
Grid:SetVoids(TechType void1, ResourceType void2)
int Player:CalculateResearchModifier(TechType tech)
bool Player:CanEverResearch(TechType tech)
int Player:CanResearch(TechType tech, bool trade = false)
bool Player:CanResearchForFree(TechType tech)
int Player:FindPathLength(TechType tech, bool cost)
int Player:GetAdvancedStartTechCost(TechType tech, bool add)
TechType Player:GetCurrentResearch()
int Player:GetQueuePosition(TechType tech)
int Player:GetResearchCost(TechType currentTech)
int Player:GetResearchProgress(TechType currentTech)
int Player:GetResearchTurnsLeft(TechType tech, bool overflow)
Player:PopResearch(TechType tech)
Player:SetResearchingTech(TechType index, bool newValue)
bool Team:IsHasTech(TechType index)
Team:SetHasTech(TechType index, bool newValue, PlayerID player, bool first, bool announce)
TeamTechs:ChangeResearchProgress(TechType index, int change, PlayerID player)
int TeamTechs:ChangeResearchProgressPercent(TechType index, int percent, PlayerID player)
TeamTechs:ChangeResearchProgressTimes100(TechType index, int change, PlayerID player)
TechType TeamTechs:GetLastTechAcquired(TechType index)
int TeamTechs:GetNumTechsKnown(TechType index)
int TeamTechs:GetResearchCost(TechType tech)
int TeamTechs:GetResearchLeft(TechType tech)
int TeamTechs:GetResearchProgress(TechType index)
int TeamTechs:GetTechCount(TechType index)
TeamTechs:IncrementTechCount(TechType index)
bool TeamTechs:IsNoTradeTech(TechType index)
TeamTechs:SetHasTech(TechType index, bool newValue)
TeamTechs:SetNoTradeTech(TechType index, bool newValue)
TeamTechs:SetResearchProgress(TechType index, int newValue, PlayerID player)



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.