Crossfire Server, Trunk
CRECombatSimulator Class Reference

#include <CRECombatSimulator.h>

+ Inheritance diagram for CRECombatSimulator:
+ Collaboration diagram for CRECombatSimulator:

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
 
ArchetypeComboBoxmyFirst
 
int myFirstMaxHp
 
int myFirstMinHp
 
int myFirstVictories
 
QSpinBox * myMaxRounds
 
QLabel * myResult
 
QLabel * myResultLabel
 
ArchetypeComboBoxmySecond
 
int mySecondMaxHp
 
int mySecondMinHp
 
int mySecondVictories
 

Detailed Description

Definition at line 27 of file CRECombatSimulator.h.

Constructor & Destructor Documentation

◆ CRECombatSimulator()

CRECombatSimulator::CRECombatSimulator ( )

Definition at line 22 of file CRECombatSimulator.cpp.

References say::box, fight(), is_valid_types_gen::line, myCombats, myFirst, myMaxRounds, myResult, myResultLabel, and mySecond.

+ Here is the call graph for this function:

◆ ~CRECombatSimulator()

CRECombatSimulator::~CRECombatSimulator ( )
virtual

Definition at line 63 of file CRECombatSimulator.cpp.

Member Function Documentation

◆ fight [1/2]

void CRECombatSimulator::fight ( )
protectedslot

◆ fight() [2/2]

Field Documentation

◆ myCombats

QSpinBox* CRECombatSimulator::myCombats
private

Definition at line 43 of file CRECombatSimulator.h.

Referenced by CRECombatSimulator(), and fight().

◆ myFirst

ArchetypeComboBox* CRECombatSimulator::myFirst
private

Definition at line 41 of file CRECombatSimulator.h.

Referenced by CRECombatSimulator(), and fight().

◆ myFirstMaxHp

int CRECombatSimulator::myFirstMaxHp
private

Definition at line 50 of file CRECombatSimulator.h.

Referenced by fight().

◆ myFirstMinHp

int CRECombatSimulator::myFirstMinHp
private

Definition at line 49 of file CRECombatSimulator.h.

Referenced by fight().

◆ myFirstVictories

int CRECombatSimulator::myFirstVictories
private

Definition at line 48 of file CRECombatSimulator.h.

Referenced by fight().

◆ myMaxRounds

QSpinBox* CRECombatSimulator::myMaxRounds
private

Definition at line 44 of file CRECombatSimulator.h.

Referenced by CRECombatSimulator(), and fight().

◆ myResult

QLabel* CRECombatSimulator::myResult
private

Definition at line 46 of file CRECombatSimulator.h.

Referenced by CRECombatSimulator(), and fight().

◆ myResultLabel

QLabel* CRECombatSimulator::myResultLabel
private

Definition at line 45 of file CRECombatSimulator.h.

Referenced by CRECombatSimulator(), and fight().

◆ mySecond

ArchetypeComboBox* CRECombatSimulator::mySecond
private

Definition at line 42 of file CRECombatSimulator.h.

Referenced by CRECombatSimulator(), and fight().

◆ mySecondMaxHp

int CRECombatSimulator::mySecondMaxHp
private

Definition at line 53 of file CRECombatSimulator.h.

Referenced by fight().

◆ mySecondMinHp

int CRECombatSimulator::mySecondMinHp
private

Definition at line 52 of file CRECombatSimulator.h.

Referenced by fight().

◆ mySecondVictories

int CRECombatSimulator::mySecondVictories
private

Definition at line 51 of file CRECombatSimulator.h.

Referenced by fight().


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