ManaPlus
Public Member Functions | Private Attributes
FloatData Class Reference

#include <variabledata.h>

Inheritance diagram for FloatData:
VariableData

Public Member Functions

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

Private Attributes

double 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 93 of file variabledata.h.

Constructor & Destructor Documentation

◆ FloatData()

FloatData::FloatData ( const double  value)
inlineexplicit

Definition at line 96 of file variabledata.h.

96  :
97  VariableData(),
98  mData(value)
99  { }
double mData
Definition: variabledata.h:110

Member Function Documentation

◆ getData()

double FloatData::getData ( ) const
inline

Definition at line 103 of file variabledata.h.

104  { return mData; }

References PlayerInfo::mData.

◆ getType()

int FloatData::getType ( ) const
inlinevirtual

Implements VariableData.

Definition at line 106 of file variabledata.h.

107  { return DATA_FLOAT; }

References VariableData::DATA_FLOAT.

Field Documentation

◆ mData

double FloatData::mData
private

Definition at line 110 of file variabledata.h.


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