Crossfire Server, Trunk  R20513
Public Member Functions | Protected Slots | Private Member Functions | Private Attributes
CRECombatSimulator Class Reference

#include <CRECombatSimulator.h>

Inheritance diagram for CRECombatSimulator:
Inheritance graph
Collaboration diagram for CRECombatSimulator:
Collaboration graph

Public Member Functions

 CRECombatSimulator ()
 
virtual ~CRECombatSimulator ()
 

Protected Slots

void fight ()
 

Private Member Functions

void fight (const archetype *first, const archetype *second)
 

Private Attributes

QSpinBox * myCombats
 
QComboBox * myFirst
 
int myFirstMaxHp
 
int myFirstMinHp
 
int myFirstVictories
 
QSpinBox * myMaxRounds
 
QLabel * myResult
 
QLabel * myResultLabel
 
QComboBox * mySecond
 
int mySecondMaxHp
 
int mySecondMinHp
 
int mySecondVictories
 

Detailed Description

Definition at line 16 of file CRECombatSimulator.h.

Constructor & Destructor Documentation

CRECombatSimulator::CRECombatSimulator ( )
CRECombatSimulator::~CRECombatSimulator ( )
virtual

Definition at line 61 of file CRECombatSimulator.cpp.

Member Function Documentation

void CRECombatSimulator::fight ( )
protectedslot

Definition at line 135 of file CRECombatSimulator.cpp.

References liv::maxhp, myCombats, myFirst, myFirstMaxHp, myFirstMinHp, myFirstVictories, myResult, myResultLabel, mySecond, mySecondMaxHp, mySecondMinHp, mySecondVictories, archt::name, object_create_arch(), object_free2(), and obj::stats.

Referenced by CRECombatSimulator().

Here is the call graph for this function:

Here is the caller graph for this function:

void CRECombatSimulator::fight ( const archetype first,
const archetype second 
)
private

Field Documentation

QSpinBox* CRECombatSimulator::myCombats
private

Definition at line 32 of file CRECombatSimulator.h.

Referenced by CRECombatSimulator(), and fight().

QComboBox* CRECombatSimulator::myFirst
private

Definition at line 30 of file CRECombatSimulator.h.

Referenced by CRECombatSimulator(), and fight().

int CRECombatSimulator::myFirstMaxHp
private

Definition at line 39 of file CRECombatSimulator.h.

Referenced by fight().

int CRECombatSimulator::myFirstMinHp
private

Definition at line 38 of file CRECombatSimulator.h.

Referenced by fight().

int CRECombatSimulator::myFirstVictories
private

Definition at line 37 of file CRECombatSimulator.h.

Referenced by fight().

QSpinBox* CRECombatSimulator::myMaxRounds
private

Definition at line 33 of file CRECombatSimulator.h.

Referenced by CRECombatSimulator(), and fight().

QLabel* CRECombatSimulator::myResult
private

Definition at line 35 of file CRECombatSimulator.h.

Referenced by CRECombatSimulator(), and fight().

QLabel* CRECombatSimulator::myResultLabel
private

Definition at line 34 of file CRECombatSimulator.h.

Referenced by CRECombatSimulator(), and fight().

QComboBox* CRECombatSimulator::mySecond
private

Definition at line 31 of file CRECombatSimulator.h.

Referenced by CRECombatSimulator(), and fight().

int CRECombatSimulator::mySecondMaxHp
private

Definition at line 42 of file CRECombatSimulator.h.

Referenced by fight().

int CRECombatSimulator::mySecondMinHp
private

Definition at line 41 of file CRECombatSimulator.h.

Referenced by fight().

int CRECombatSimulator::mySecondVictories
private

Definition at line 40 of file CRECombatSimulator.h.

Referenced by fight().


The documentation for this class was generated from the following files: