Difference between revisions of "Adventure map state"

From VCMI Project Wiki
Jump to: navigation, search
(Created page with "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 o...")
 
(Important object classes)
 
Line 2: Line 2:
  
 
= Important object classes =
 
= 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.
+
* [[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.
+
* [[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.
+
* [[Town]] - town instance with built buildings, army and all town objects, such as dwellings or mage guild. Defined as CGTownInstance.

Latest revision as of 13:30, 10 November 2011

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.