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

#include <TypeInfo.hpp>

Inheritance diagram for yap::TypeInfo:
Collaboration diagram for yap::TypeInfo:

List of all members.

Public Member Functions

 TypeInfo ()
 TypeInfo (const ID &id)
 TypeInfo (const TypeInfo &copy)
const IDGetID () const
 Getters.
const StringGetName () const
const float & GetTypeEffect (const ID &typeID) const
void SetID (const ID &id)
 Setters.
void SetName (const String &name)
void AddTypeEffect (const ID &typeID, const float &effect)
bool operator== (const TypeInfo &right) const
ICloneable members.
virtual TypeInfoClone () const
- Public Member Functions inherited from yap::IIDLoadable
virtual ~IIDLoadable ()
- Public Member Functions inherited from yap::ICloneable
virtual ~ICloneable ()

Private Attributes

ID staticID_
String name_
collection::Map< ID, float > typeEffect_

Static Private Attributes

static const float DEFAULT_FACTOR_EFFECT_VALUE = 1.f

Detailed Description

Definition at line 13 of file TypeInfo.hpp.


Constructor & Destructor Documentation

yap::TypeInfo::TypeInfo ( )

Definition at line 7 of file TypeInfo.cpp.

Here is the caller graph for this function:

yap::TypeInfo::TypeInfo ( const ID id)

Definition at line 14 of file TypeInfo.cpp.

yap::TypeInfo::TypeInfo ( const TypeInfo copy)

Definition at line 21 of file TypeInfo.cpp.


Member Function Documentation

void yap::TypeInfo::AddTypeEffect ( const ID typeID,
const float &  effect 
)

Definition at line 63 of file TypeInfo.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

TypeInfo * yap::TypeInfo::Clone ( ) const
virtual

Implements yap::ICloneable.

Definition at line 28 of file TypeInfo.cpp.

Here is the call graph for this function:

const ID & yap::TypeInfo::GetID ( ) const

Getters.

Definition at line 34 of file TypeInfo.cpp.

Here is the caller graph for this function:

const String & yap::TypeInfo::GetName ( ) const

Definition at line 39 of file TypeInfo.cpp.

const float & yap::TypeInfo::GetTypeEffect ( const ID typeID) const

Definition at line 44 of file TypeInfo.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool yap::TypeInfo::operator== ( const TypeInfo right) const

Definition at line 68 of file TypeInfo.cpp.

Here is the call graph for this function:

void yap::TypeInfo::SetID ( const ID id)

Setters.

Definition at line 53 of file TypeInfo.cpp.

Here is the caller graph for this function:

void yap::TypeInfo::SetName ( const String name)

Definition at line 58 of file TypeInfo.cpp.

Here is the caller graph for this function:


Member Data Documentation

const float yap::TypeInfo::DEFAULT_FACTOR_EFFECT_VALUE = 1.f
staticprivate

Definition at line 42 of file TypeInfo.hpp.

String yap::TypeInfo::name_
private

Definition at line 39 of file TypeInfo.hpp.

ID yap::TypeInfo::staticID_
private

Definition at line 38 of file TypeInfo.hpp.

collection::Map<ID, float> yap::TypeInfo::typeEffect_
private

Definition at line 40 of file TypeInfo.hpp.


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