YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::BaseStat Class Reference

#include <BaseStat.hpp>

Inheritance diagram for yap::BaseStat:
Collaboration diagram for yap::BaseStat:

List of all members.

Public Member Functions

 BaseStat ()
 Constructors.
 BaseStat (const UInt16 &ev, const UInt16 &iv)
const UInt16GetValue () const
 Getters.
const UInt16GetIndividualValue () const
const UInt16GetEffortValue () const
void SetIndividualValue (const UInt16 &iv)
 Setters.
void SetEffortValue (const UInt16 &ev)
void AddValue (int value)
void ComputeValue (const int &base, const UInt16 level)
void ComputeValue (const int &base, const UInt16 level, const float &natureFactor)

Protected Attributes

UInt16 value_
UInt16 individualValue_
UInt16 effortValue_

Private Member Functions

void SetValue (const UInt16 &value)

Static Private Attributes

static const UInt16 INITIAL_STAT_VALUE = 0
static const UInt16 INITIAL_EFFORT_VALUE = 1

Detailed Description

Definition at line 9 of file BaseStat.hpp.


Constructor & Destructor Documentation

yap::BaseStat::BaseStat ( )

Constructors.

Definition at line 10 of file BaseStat.cpp.

Here is the call graph for this function:

yap::BaseStat::BaseStat ( const UInt16 ev,
const UInt16 iv 
)

Definition at line 17 of file BaseStat.cpp.


Member Function Documentation

void yap::BaseStat::AddValue ( int  value)

Definition at line 65 of file BaseStat.cpp.

Here is the caller graph for this function:

void yap::BaseStat::ComputeValue ( const int &  base,
const UInt16  level 
)

Definition at line 57 of file BaseStat.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BaseStat::ComputeValue ( const int &  base,
const UInt16  level,
const float &  natureFactor 
)

Definition at line 70 of file BaseStat.cpp.

Here is the call graph for this function:

const UInt16 & yap::BaseStat::GetEffortValue ( ) const

Definition at line 37 of file BaseStat.cpp.

Here is the caller graph for this function:

const UInt16 & yap::BaseStat::GetIndividualValue ( ) const

Definition at line 32 of file BaseStat.cpp.

Here is the caller graph for this function:

const UInt16 & yap::BaseStat::GetValue ( ) const

Getters.

Definition at line 26 of file BaseStat.cpp.

Here is the caller graph for this function:

void yap::BaseStat::SetEffortValue ( const UInt16 ev)

Definition at line 52 of file BaseStat.cpp.

void yap::BaseStat::SetIndividualValue ( const UInt16 iv)

Setters.

Definition at line 47 of file BaseStat.cpp.

void yap::BaseStat::SetValue ( const UInt16 value)
private

Definition at line 42 of file BaseStat.cpp.

Here is the caller graph for this function:


Member Data Documentation

UInt16 yap::BaseStat::effortValue_
protected

Definition at line 37 of file BaseStat.hpp.

UInt16 yap::BaseStat::individualValue_
protected

Definition at line 36 of file BaseStat.hpp.

const UInt16 yap::BaseStat::INITIAL_EFFORT_VALUE = 1
staticprivate

Definition at line 43 of file BaseStat.hpp.

const UInt16 yap::BaseStat::INITIAL_STAT_VALUE = 0
staticprivate

Definition at line 42 of file BaseStat.hpp.

UInt16 yap::BaseStat::value_
protected

Definition at line 35 of file BaseStat.hpp.


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