|
|
@@ -150,7 +150,9 @@ CDefenceAnimation::CDefenceAnimation(StackAttackedInfo _attackedInfo, CBattleInt
|
|
|
: CBattleStackAnimation(_owner, _attackedInfo.defender),
|
|
|
attacker(_attackedInfo.attacker), rangedAttack(_attackedInfo.indirectAttack),
|
|
|
killed(_attackedInfo.killed)
|
|
|
-{}
|
|
|
+{
|
|
|
+ logAnim->debugStream() << "Created defence anim for " << _attackedInfo.defender->getName();
|
|
|
+}
|
|
|
|
|
|
bool CDefenceAnimation::init()
|
|
|
{
|
|
|
@@ -364,7 +366,9 @@ bool CMeleeAttackAnimation::init()
|
|
|
|
|
|
CMeleeAttackAnimation::CMeleeAttackAnimation(CBattleInterface * _owner, const CStack * attacker, BattleHex _dest, const CStack * _attacked)
|
|
|
: CAttackAnimation(_owner, attacker, _dest, _attacked)
|
|
|
-{}
|
|
|
+{
|
|
|
+ logAnim->debugStream() << "Created melee attack anim for " << attacker->getName();
|
|
|
+}
|
|
|
|
|
|
void CMeleeAttackAnimation::endAnim()
|
|
|
{
|
|
|
@@ -521,11 +525,14 @@ CMovementAnimation::CMovementAnimation(CBattleInterface *_owner, const CStack *_
|
|
|
progress(0.0),
|
|
|
nextHex(destTiles.front())
|
|
|
{
|
|
|
+ logAnim->debugStream() << "Created movement anim for " << stack->getName();
|
|
|
}
|
|
|
|
|
|
CMovementEndAnimation::CMovementEndAnimation(CBattleInterface * _owner, const CStack * _stack, BattleHex destTile)
|
|
|
: CBattleStackAnimation(_owner, _stack), destinationTile(destTile)
|
|
|
-{}
|
|
|
+{
|
|
|
+ logAnim->debugStream() << "Created movement end anim for " << stack->getName();
|
|
|
+}
|
|
|
|
|
|
bool CMovementEndAnimation::init()
|
|
|
{
|
|
|
@@ -562,7 +569,9 @@ void CMovementEndAnimation::endAnim()
|
|
|
|
|
|
CMovementStartAnimation::CMovementStartAnimation(CBattleInterface * _owner, const CStack * _stack)
|
|
|
: CBattleStackAnimation(_owner, _stack)
|
|
|
-{}
|
|
|
+{
|
|
|
+ logAnim->debugStream() << "Created movement start anim for " << stack->getName();
|
|
|
+}
|
|
|
|
|
|
bool CMovementStartAnimation::init()
|
|
|
{
|
|
|
@@ -592,7 +601,9 @@ void CMovementStartAnimation::endAnim()
|
|
|
|
|
|
CReverseAnimation::CReverseAnimation(CBattleInterface * _owner, const CStack * stack, BattleHex dest, bool _priority)
|
|
|
: CBattleStackAnimation(_owner, stack), hex(dest), priority(_priority)
|
|
|
-{}
|
|
|
+{
|
|
|
+ logAnim->debugStream() << "Created reverse anim for " << stack->getName();
|
|
|
+}
|
|
|
|
|
|
bool CReverseAnimation::init()
|
|
|
{
|
|
|
@@ -654,7 +665,9 @@ void CReverseAnimation::setupSecondPart()
|
|
|
|
|
|
CShootingAnimation::CShootingAnimation(CBattleInterface * _owner, const CStack * attacker, BattleHex _dest, const CStack * _attacked, bool _catapult, int _catapultDmg)
|
|
|
: CAttackAnimation(_owner, attacker, _dest, _attacked), catapultDamage(_catapultDmg)
|
|
|
-{}
|
|
|
+{
|
|
|
+ logAnim->debugStream() << "Created shooting anim for " << stack->getName();
|
|
|
+}
|
|
|
|
|
|
bool CShootingAnimation::init()
|
|
|
{
|