PolicyType (Civ5 Type)

From Civilization Modding Wiki
Revision as of 14:52, 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 PolicyType 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 PolicyType corresponds to the ID column of the Policies XML table.


XML: the Policies table

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

ID Type
0 POLICY_LIBERTY
1 POLICY_COLLECTIVE_RULE
2 POLICY_CITIZENSHIP
3 POLICY_REPUBLIC
4 POLICY_REPRESENTATION
5 POLICY_MERITOCRACY
6 POLICY_TRADITION
7 POLICY_ARISTOCRACY
8 POLICY_OLIGARCHY
9 POLICY_LEGALISM
10 POLICY_LANDED_ELITE
11 POLICY_MONARCHY
12 POLICY_HONOR
13 POLICY_WARRIOR_CODE
14 POLICY_DISCIPLINE
15 POLICY_MILITARY_TRADITION
16 POLICY_MILITARY_CASTE
17 POLICY_PROFESSIONAL_ARMY
18 POLICY_PIETY
19 POLICY_ORGANIZED_RELIGION
20 POLICY_MANDATE_OF_HEAVEN
21 POLICY_THEOCRACY
22 POLICY_REFORMATION
23 POLICY_FREE_RELIGION
24 POLICY_PATRONAGE
25 POLICY_PHILANTHROPY
26 POLICY_AESTHETICS
27 POLICY_SCHOLASTICISM
28 POLICY_CULTURAL_DIPLOMACY
29 POLICY_EDUCATED_ELITE
30 POLICY_COMMERCE
31 POLICY_TRADE_UNIONS
32 POLICY_NAVAL_TRADITION
33 POLICY_MERCANTILISM
34 POLICY_MERCHANT_NAVY
35 POLICY_PROTECTIONISM
36 POLICY_RATIONALISM
37 POLICY_SECULARISM
38 POLICY_HUMANISM
39 POLICY_FREE_THOUGHT
40 POLICY_SOVEREIGNTY
41 POLICY_SCIENTIFIC_REVOLUTION
42 POLICY_FREEDOM
43 POLICY_CONSTITUTION
44 POLICY_UNIVERSAL_SUFFRAGE
45 POLICY_CIVIL_SOCIETY
46 POLICY_FREE_SPEECH
47 POLICY_DEMOCRACY
48 POLICY_ORDER
49 POLICY_UNITED_FRONT
50 POLICY_SOCIALISM
51 POLICY_NATIONALISM
52 POLICY_PLANNED_ECONOMY
53 POLICY_COMMUNISM
54 POLICY_AUTOCRACY
55 POLICY_POPULISM
56 POLICY_MILITARISM
57 POLICY_FASCISM
58 POLICY_POLICE_STATE
59 POLICY_TOTAL_WAR
60 POLICY_TRADITION_FINISHER
61 POLICY_LIBERTY_FINISHER
62 POLICY_HONOR_FINISHER
63 POLICY_PIETY_FINISHER
64 POLICY_PATRONAGE_FINISHER
65 POLICY_COMMERCE_FINISHER
66 POLICY_RATIONALISM_FINISHER
67 POLICY_FREEDOM_FINISHER
68 POLICY_ORDER_FINISHER
69 POLICY_AUTOCRACY_FINISHER


Examples

Used by

Game.HandleAction(PolicyType action)
GridButton:RegisterCallback(MouseType arg0, (void func(PolicyType Id, ResourceType none, Button control)) OnEndTurnClicked)
int Player:CanAdoptPolicy(PolicyType policy)
Player:DoAdoptPolicy(PolicyType policy)
bool Player:GetPolicyBranchChosen(PolicyType policyBranch)
int Player:HasPolicy(PolicyType policy)
bool Player:IsPolicyBlocked(PolicyType i)
Player:SetHasPolicy(PolicyType index, bool newValue)



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.