Adventure map state

From VCMI Project Wiki
Revision as of 13:30, 10 November 2011 by Warmonger (talk | contribs) (Important object classes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.