Adventure map state
From VCMI Project Wiki
Adventure map holds all adventure objects. defined in ObjectHandler.h. These objects are represented by big classes with multiple properties and reahc functionality. Major part of game state is defined directly by properties of these objects.
Important object classes
- Armed instance - root class for all objects that have army and can be engaged in battle. It involves heroes, towns, monsters, but also mines, guarded artifacts or resources and creature banks.
- Hero - hero instance with stats, abilities, army and artifacts. Defined as CGHeroInstance.
- Town - town instance with built buildings, army and all town objects, such as dwellings or mage guild. Defined as CGTownInstance.