QtBase  v6.3.1
Public Types | Public Member Functions | List of all members
Character Class Reference

[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...
 

Detailed Description

[0]

Definition at line 59 of file character.h.

Member Enumeration Documentation

◆ ClassType

Enumerator
Warrior 
Mage 
Archer 

Definition at line 64 of file character.h.

Constructor & Destructor Documentation

◆ Character() [1/2]

Character::Character ( )

Definition at line 56 of file character.cpp.

◆ Character() [2/2]

Character::Character ( const QString name,
int  level,
Character::ClassType  classType 
)

Definition at line 61 of file character.cpp.

Member Function Documentation

◆ classType()

Character::ClassType Character::classType ( ) const

Definition at line 90 of file character.cpp.

Here is the caller graph for this function:

◆ level()

int Character::level ( ) const

Definition at line 80 of file character.cpp.

Here is the caller graph for this function:

◆ name()

QString Character::name ( ) const

Definition at line 70 of file character.cpp.

Here is the caller graph for this function:

◆ print()

void Character::print ( int  indentation = 0) const

[1]

Definition at line 123 of file character.cpp.

Here is the caller graph for this function:

◆ read()

void Character::read ( const QJsonObject json)

[0]

Definition at line 101 of file character.cpp.

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

◆ setClassType()

void Character::setClassType ( Character::ClassType  classType)

Definition at line 95 of file character.cpp.

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

◆ setLevel()

void Character::setLevel ( int  level)

Definition at line 85 of file character.cpp.

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

◆ setName()

void Character::setName ( const QString name)

Definition at line 75 of file character.cpp.

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

◆ write()

void Character::write ( QJsonObject json) const

[0]

[1]

Definition at line 115 of file character.cpp.

Here is the caller graph for this function:

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