YAPOG  0.0.1
Yet Another Pokemon Online Game
PokemonEVTable.cpp
Go to the documentation of this file.
2 #include "Pokemon/Pokemon.hpp"
3 
4 namespace yse
5 {
7  : pokemonID_ (1)
8  , hp_ (1)
9  , attack_ (1)
10  , defense_ (1)
11  , specialAttack_ (1)
12  , specialDefense_ (1)
13  , speed_ (1)
14  {
15  }
16 
18  {
19  pokemonID_ = pokemon.GetUniqueID ();
20 
21  const yap::PokemonStat& stats = pokemon.GetStats ();
22 
23  hp_ = stats.GetHitPoint ().GetEffortValue ();
24  attack_ = stats.GetAttack ().GetEffortValue ();
25  defense_ = stats.GetDefense ().GetEffortValue ();
28  speed_ = stats.GetSpeed ().GetEffortValue ();
29  }
30 
31 } // namespace yse