Crossfire Server, Trunk
MonsterResistances Class Reference

#include <MonsterResistances.h>

+ Inheritance diagram for MonsterResistances:
+ Collaboration diagram for MonsterResistances:

Public Member Functions

 MonsterResistances (QWidget *parent)
 

Private Member Functions

void buildGraph ()
 

Private Attributes

QGraphicsView * myDisplay
 
std::map< int, QColor > myResistances
 
QGraphicsScene * myScene
 

Detailed Description

Display a histogram of monster resistances to fire, cold, electricity, poison.

Definition at line 24 of file MonsterResistances.h.

Constructor & Destructor Documentation

◆ MonsterResistances()

MonsterResistances::MonsterResistances ( QWidget *  parent)

Definition at line 37 of file MonsterResistances.cpp.

References ATNR_COLD, ATNR_ELECTRICITY, ATNR_FIRE, ATNR_POISON, buildGraph(), myDisplay, myResistances, and myScene.

+ Here is the call graph for this function:

Member Function Documentation

◆ buildGraph()

void MonsterResistances::buildGraph ( )
private

Definition at line 57 of file MonsterResistances.cpp.

References archininventory::arch, AssetsManager::archetypes(), AssetsCollection< T, Key >::each(), FLAG_MONSTER, getManager(), myDisplay, myResistances, myScene, QUERY_FLAG, ring_occidental_mages::r, resist_plus, and SCALE.

Referenced by MonsterResistances().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ myDisplay

QGraphicsView* MonsterResistances::myDisplay
private

Definition at line 32 of file MonsterResistances.h.

Referenced by buildGraph(), and MonsterResistances().

◆ myResistances

std::map<int, QColor> MonsterResistances::myResistances
private

Definition at line 34 of file MonsterResistances.h.

Referenced by buildGraph(), and MonsterResistances().

◆ myScene

QGraphicsScene* MonsterResistances::myScene
private

Definition at line 33 of file MonsterResistances.h.

Referenced by buildGraph(), and MonsterResistances().


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