ManaPlus
Public Member Functions | Private Attributes
BoolData Class Reference

#include <variabledata.h>

Inheritance diagram for BoolData:
VariableData

Public Member Functions

 BoolData (const bool value)
 
bool getData () const
 
int getType () const
 
- Public Member Functions inherited from VariableData
 VariableData ()
 
virtual ~VariableData ()
 

Private Attributes

bool mData
 

Additional Inherited Members

- Public Types inherited from VariableData
enum  DataType {
  DATA_NONE = 0 , DATA_INT , DATA_STRING , DATA_FLOAT ,
  DATA_BOOL
}
 

Detailed Description

Definition at line 113 of file variabledata.h.

Constructor & Destructor Documentation

◆ BoolData()

BoolData::BoolData ( const bool  value)
inlineexplicit

Definition at line 116 of file variabledata.h.

116  :
117  VariableData(),
118  mData(value)
119  { }
bool mData
Definition: variabledata.h:130

Member Function Documentation

◆ getData()

bool BoolData::getData ( ) const
inline

Definition at line 123 of file variabledata.h.

124  { return mData; }

References PlayerInfo::mData.

◆ getType()

int BoolData::getType ( ) const
inlinevirtual

Implements VariableData.

Definition at line 126 of file variabledata.h.

127  { return DATA_BOOL; }

References VariableData::DATA_BOOL.

Field Documentation

◆ mData

bool BoolData::mData
private

Definition at line 130 of file variabledata.h.


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