11 #include "Pokemon/Pokemon.hpp"
17 , isMainPokemon_ (isMainPokemon)
19 , normalBackground_ (nullptr)
20 , selectedBackground_ (nullptr)
22 , name_ (new yap::Label (pokemon.GetName ()))
23 , level_ (new yap::Label ())
26 , hpBarContent_ (nullptr)
27 , hpLabel_ (new yap::Label (
28 yap::StringHelper::ToString (
29 pokemon.GetCurrentHP ()) +
" / " +
30 yap::StringHelper::ToString (pokemon.GetMaxHP ())))
34 "Pictures/TeamManager/ItemBox.png",
true);
37 "Pictures/TeamManager/ItemBoxSelected.png",
true);
50 static_cast<int>(pokemon.
GetLevel ())));
54 new yap::Sprite (
"Pictures/Battle/HPTeamManagerBar.png"));
56 new yap::Sprite (
"Pictures/Battle/HPBarContent.png"));
67 static_cast<float> (pokemon.
GetMaxHP ()) <= 0.25)
70 static_cast<float> (pokemon.
GetMaxHP ()) <= 0.5)
111 firstLineInfo->
AddChild (*
name_, yap::LayoutBox::Align::BOTTOM);
115 firstLineInfo->
AddChild (*levelAndGender);
117 firstLine->
AddChild (*firstLineIcon);
118 firstLine->
AddChild (*firstLineInfo);
166 ver2->
AddChild (*hor1, yap::LayoutBox::Align::CENTER);