ManaPlus
Public Member Functions | Private Attributes
IntData Class Reference

#include <variabledata.h>

Inheritance diagram for IntData:
VariableData

Public Member Functions

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

Private Attributes

int 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 53 of file variabledata.h.

Constructor & Destructor Documentation

◆ IntData()

IntData::IntData ( const int  value)
inlineexplicit

Definition at line 56 of file variabledata.h.

56  :
57  VariableData(),
58  mData(value)
59  { }
int mData
Definition: variabledata.h:70

Member Function Documentation

◆ getData()

int IntData::getData ( ) const
inline

Definition at line 63 of file variabledata.h.

64  { return mData; }

References PlayerInfo::mData.

◆ getType()

int IntData::getType ( ) const
inlinevirtual

Implements VariableData.

Definition at line 66 of file variabledata.h.

67  { return DATA_INT; }

References VariableData::DATA_INT.

Field Documentation

◆ mData

int IntData::mData
private

Definition at line 70 of file variabledata.h.


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