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

#include <HitPoint.hpp>

Inheritance diagram for yap::HitPoint:
Collaboration diagram for yap::HitPoint:

List of all members.

Public Member Functions

 HitPoint ()
 HitPoint (const UInt16 &currentValue, const UInt16 &ev, const UInt16 &iv)
UInt16 GetCurrentValue () const
void SetCurrentValue (const UInt16 &value)
void Restore ()
- Public Member Functions inherited from yap::BaseStat
 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)

Private Attributes

UInt16 currentValue_

Static Private Attributes

static const UInt16 INITIAL_CURRENT_VALUE = 0

Additional Inherited Members

- Protected Attributes inherited from yap::BaseStat
UInt16 value_
UInt16 individualValue_
UInt16 effortValue_

Detailed Description

Definition at line 9 of file HitPoint.hpp.


Constructor & Destructor Documentation

yap::HitPoint::HitPoint ( )

Definition at line 8 of file HitPoint.cpp.

yap::HitPoint::HitPoint ( const UInt16 currentValue,
const UInt16 ev,
const UInt16 iv 
)

Definition at line 13 of file HitPoint.cpp.


Member Function Documentation

UInt16 yap::HitPoint::GetCurrentValue ( ) const

Definition at line 22 of file HitPoint.cpp.

Here is the caller graph for this function:

void yap::HitPoint::Restore ( )

Definition at line 31 of file HitPoint.cpp.

Here is the caller graph for this function:

void yap::HitPoint::SetCurrentValue ( const UInt16 value)

Definition at line 25 of file HitPoint.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

UInt16 yap::HitPoint::currentValue_
private

Definition at line 21 of file HitPoint.hpp.

const UInt16 yap::HitPoint::INITIAL_CURRENT_VALUE = 0
staticprivate

Definition at line 22 of file HitPoint.hpp.


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