

His only protective armor was a metal helmet which was mostly ineffective against direct gunfire, providing at best limited protection against shrapnel. The infantryman of World War II was typically armed with a bolt-action rifle similar to the ones carried by his World War I counterpart, like the German K98, or a semi-automatic rifle similar to the M1 Garand and might carry one or more grenades. Through it all the infantryman marched into battle, grimly facing every horror that the greatest minds on the planet could conceive of to throw at him. It was a time of remarkable advancement in the technology of killing, and as the decades passed ever more deadly ships, planes and land vehicles were introduced. Errors are possible.Ĭontributors may find help in the Contributors guide to the Civ5 API.The Infantry is a Gunpowder unit available in the Modern Era.Īs the 20th century opened, the world experienced two of the deadliest and most destructive wars in human history. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.įunctions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Unit: UnitClassDefenseModifier ( UnitClassType unitClass )

Unit: UnitClassAttackModifier ( UnitClassType unitClass ) Unit: GetUnitClassModifier ( UnitClassType index ) Team: IsUnitClassMaxedOut ( UnitClassType index, int extra ) Team: GetUnitClassMaking ( UnitClassType unitClass ) Team: GetUnitClassCountPlusMaking ( UnitClassType unitClass ) Team: GetUnitClassCount ( UnitClassType index ) Player: IsUnitClassMaxedOut ( UnitClassType index, int extra ) Player: IsProductionMaxedUnitClass ( UnitClassType unitClass ) Player: GetUnitClassMaking ( UnitClassType index ) Player: GetUnitClassCountPlusMaking ( UnitClassType index ) Player: GetUnitClassCount ( UnitClassType index ) IsUnitClassMaxedOut ( UnitClassType index, int extra ) GetUnitClassCreatedCount ( UnitClassType index ) Local description = GameInfo.UnitClasses().Description Those examples will return and assign the integer value 0. Here are different ways to query the database to retrieve the ID from the type. Here are the ID and Type columns found in this table. Integers labeled as UnitClassType corresponds to the ID column of the UnitClasses XML table.

Pseudo-types do not exist in Lua, they only serve a documentation purpose on the wiki! The UnitClassType pseudo-type is actually a regular integer. This page is a part of the Lua and UI Reference (Civ5).
