Home
last modified time | relevance | path

Searched refs:GetMaxHp (Results 1 – 17 of 17) sorted by relevance

/dports/games/easyrpg-player/Player-0.7.0/src/
H A Dgame_enemy.cpp43 hp = GetMaxHp(); in Game_Enemy()
104 hp = Utils::Clamp(_hp, 0, GetMaxHp()); in SetHp()
H A Dgame_interpreter_battle.cpp96 int hpmin = enemy.GetMaxHp() * condition.enemy_hp_min / 100; in AreConditionsMet()
97 int hpmax = enemy.GetMaxHp() * condition.enemy_hp_max / 100; in AreConditionsMet()
105 int hpmin = actor->GetMaxHp() * condition.actor_hp_min / 100; in AreConditionsMet()
106 int hpmax = actor->GetMaxHp() * condition.actor_hp_max / 100; in AreConditionsMet()
H A Dgame_battler.cpp157 int hp_change = item->recover_hp_rate * GetMaxHp() / 100 + item->recover_hp; in UseItem()
280 ChangeHp(GetMaxHp() * effect / 100 - revived, false); in UseSkill()
421 int hp = state.hp_change_val + (GetMaxHp() * state.hp_change_max / 100); in ApplyConditions()
482 int Game_Battler::GetMaxHp() const { in GetMaxHp() function in Game_Battler
487 return GetMaxHp() == GetHp(); in HasFullHp()
H A Dwindow_base.cpp176 int color = GetValueFontColor(actor.GetHp(), actor.GetMaxHp(), true); in DrawActorHp()
189 …contents->TextDraw(cx + dx, cy, Font::ColorDefault, std::to_string(actor.GetMaxHp()), Text::AlignR… in DrawActorHp()
334 …contents->TextDraw(cx, cy, GetValueFontColor(actor.GetHp(), actor.GetMaxHp(), true), std::to_strin… in DrawActorHpValue()
H A Dwindow_actorstatus.cpp56 max = actor->GetMaxHp(); in DrawStatus()
H A Dwindow_varlist.cpp143 ss << actor->GetName() << " " << actor->GetHp() << " / " << actor->GetMaxHp(); in UpdateList()
H A Dwindow_battlestatus.cpp159 DrawGaugeSystem2(fill_x, y, actor->GetHp(), actor->GetMaxHp(), 0); in RefreshGauge()
H A Dgame_battler.h268 virtual int GetMaxHp() const;
H A Dgame_party.cpp128 actor->SetHp(actor->GetMaxHp()); in SetupBattleTest()
669 total_hp += a->GetMaxHp(); in GetFatigue()
H A Dgame_actor.cpp110 SetHp(GetMaxHp()); in Game_Actor()
394 SetHp(GetMaxHp()); in FullHeal()
1159 data.current_hp = Utils::Clamp(hp, 0, GetMaxHp()); in SetHp()
H A Dautobattle.cpp95 const double tgt_max_hp = target.GetMaxHp(); in CalcSkillHealAutoBattleTargetRank()
H A Denemyai.cpp247 int hp_percent = source.GetHp() * 100 / source.GetMaxHp(); in IsActionValid()
H A Dgame_battlealgorithm.cpp1056 SetAffectedHp(target->GetMaxHp() * effect / 100); in vExecute()
1247 SetAffectedHp(item.recover_hp_rate * GetTarget()->GetMaxHp() / 100 + item.recover_hp); in vExecute()
H A Dgame_interpreter.cpp1114 value = actor->GetMaxHp(); in CommandControlVariables()
1294 value = (*Main_Data::game_enemyparty)[com.parameters[5]].GetMaxHp(); in CommandControlVariables()
/dports/games/easyrpg-player/Player-0.7.0/tests/
H A Dautobattle.cpp19 actor.SetHp(actor.GetMaxHp()); in MakeActor()
H A Dgame_actor.cpp35 REQUIRE_EQ(actor.GetMaxHp(), 100);
89 REQUIRE_EQ(actor.GetMaxHp(), hp); in testBaseLimits()
240 REQUIRE_EQ(actor.GetMaxHp(), 501);
H A Denemyai.cpp475 REQUIRE_EQ(100, enemy.GetMaxHp());