Enums
PlayerHouseElementType
Role
ClanType
WarRound
BattleModifier
WarState
- class coc.WarState
Enum to map the state of the war. Compared to the api docs a few states are missing, but those were never observed in the wild.
- not_in_war = 'notInWar'
- preparation = 'preparation'
- in_war = 'inWar'
- war_ended = 'warEnded'
- property in_game_name: str
Get a neat client-facing string value for the war state.
WarResult
ProductionBuildingType
- class coc.ProductionBuildingType
An enumeration.
- barracks = 'Barracks'
- dark_barracks = 'Dark Barracks'
- spell_factory = 'Spell Factory'
- dark_spell_factory = 'Dark Spell Factory'
- hero_hall = 'Hero Hall'
- builder_barracks = 'Builder Barracks'
- blacksmith = 'Blacksmith'
- pet_house = 'Pet House'
- workshop = 'Workshop'
- none = 'None'
Resource
- class coc.Resource
An enumeration.
- gold = 'Gold'
- elixir = 'Elixir'
- dark_elixir = 'Dark Elixir'
- builder_gold = 'Builder Gold'
- builder_elixir = 'Builder Elixir'
- gems = 'Gems'
- shiny_ore = 'Shiny Ore'
- glowy_ore = 'Glowy Ore'
- starry_ore = 'Starry Ore'
- medal_event_soft_currency = 'Medal Event Soft Currency'
- league_medals = 'League Medals'
- sparky_stones = 'Sparky Stones'