QtBase
v6.3.1
|
[0] More...
#include <character.h>
Public Types | |
enum | ClassType { Warrior , Mage , Archer } |
Public Member Functions | |
Character () | |
Character (const QString &name, int level, ClassType classType) | |
QString | name () const |
void | setName (const QString &name) |
int | level () const |
void | setLevel (int level) |
ClassType | classType () const |
void | setClassType (ClassType classType) |
void | read (const QJsonObject &json) |
[0] More... | |
void | write (QJsonObject &json) const |
[0] More... | |
void | print (int indentation=0) const |
[1] More... | |
[0]
Definition at line 59 of file character.h.
enum Character::ClassType |
Enumerator | |
---|---|
Warrior | |
Mage | |
Archer |
Definition at line 64 of file character.h.
Character::Character | ( | ) |
Definition at line 56 of file character.cpp.
Character::Character | ( | const QString & | name, |
int | level, | ||
Character::ClassType | classType | ||
) |
Definition at line 61 of file character.cpp.
Character::ClassType Character::classType | ( | ) | const |
int Character::level | ( | ) | const |
QString Character::name | ( | ) | const |
void Character::print | ( | int | indentation = 0 | ) | const |
void Character::read | ( | const QJsonObject & | json | ) |
[0]
Definition at line 101 of file character.cpp.
void Character::setClassType | ( | Character::ClassType | classType | ) |
Definition at line 95 of file character.cpp.
void Character::setLevel | ( | int | level | ) |
Definition at line 85 of file character.cpp.
Definition at line 75 of file character.cpp.
void Character::write | ( | QJsonObject & | json | ) | const |