attackpanel.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void showAttackAnimation (tfight &battle, GameMap *actmap, int ad=-1, int dd=-1)
 Performs the calculation of the attack and displays the result on screen.


Function Documentation

void showAttackAnimation ( tfight battle,
GameMap actmap,
int  ad = -1,
int  dd = -1 
)

Performs the calculation of the attack and displays the result on screen.

The result is not written to the involved units, this must be done separately.

Parameters:
battle The fight executer
actmap the map upon which the battle is fought
ad Attacker damage override (used for replays)
dd Target damage override (used for replays)

Definition at line 288 of file attackpanel.cpp.

References actmap, CGameOptions::attackspeed1, CGameOptions::attackspeed2, CGameOptions::attackspeed3, Player::getColor(), CGameOptions::Instance(), lighten_Color(), BattleSoundPlayer::playEnd(), GameMap::player, releasetimeslice(), ticker, and waitWithUpdate().

Referenced by PG_MapDisplay::showBattle().


Generated on Mon May 21 01:29:29 2012 for Advanced Strategic Command by  doxygen 1.5.1