Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

attackpanel.cpp File Reference

#include <pgimage.h>
#include <pgtooltiphelp.h>
#include "attackpanel.h"
#include "../paradialog.h"
#include "../attack.h"
#include "../explosivemines.h"
#include "../iconrepository.h"
#include "../soundList.h"
#include "../gamemap.h"
#include "../events.h"
#include "../gameoptions.h"
#include "../windowing.h"
#include <pgcolors.h>

Include dependency graph for attackpanel.cpp:

Go to the source code of this file.

Defines

#define USE_COLOR_CONSTANTS

Functions

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

Variables

const int maxdefenseshown = 2
const int maxattackshown = 2


Define Documentation

#define USE_COLOR_CONSTANTS
 

Definition at line 26 of file attackpanel.cpp.


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 265 of file attackpanel.cpp.

References CGameOptions::Instance(), lighten_Color(), BattleSoundPlayer::playEnd(), GameMap::player, releasetimeslice(), and ticker.

Referenced by PG_MapDisplay::showBattle().


Variable Documentation

const int maxattackshown = 2
 

Definition at line 262 of file attackpanel.cpp.

const int maxdefenseshown = 2
 

Definition at line 261 of file attackpanel.cpp.


Generated on Tue Jun 24 01:31:59 2008 for Advanced Strategic Command by  doxygen 1.4.2