Difference between revisions of "Battle state"

From VCMI Project Wiki
Jump to: navigation, search
(Created page with "Battle states defines structure of battlefield, positions of stacks and spells possible to cast.")
 
(Creature stack)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Battle states defines structure of battlefield, positions of stacks and spells possible to cast.
+
Battle state defines structure of battlefield, positions of stacks and spells possible to cast.
 +
 
 +
Battle is unusual structure, as it is avaliable only during combat.
 +
Info about current battle is handled by BattleState class in BattleState.cpp
 +
 
 +
= Creature stack =
 +
Creature stack in a battle is represented by class CStack defined in BattleState.h file, which also defines stack state, active spells or current count. It's different from [[stack]] representing a group of creatures in an army.

Latest revision as of 15:20, 10 November 2011

Battle state defines structure of battlefield, positions of stacks and spells possible to cast.

Battle is unusual structure, as it is avaliable only during combat. Info about current battle is handled by BattleState class in BattleState.cpp

Creature stack

Creature stack in a battle is represented by class CStack defined in BattleState.h file, which also defines stack state, active spells or current count. It's different from stack representing a group of creatures in an army.