1 /* 2 * This file is part of EasyRPG Player. 3 * 4 * EasyRPG Player is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation, either version 3 of the License, or 7 * (at your option) any later version. 8 * 9 * EasyRPG Player is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with EasyRPG Player. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #ifndef EP_BATTLE_MESSAGE_H 19 #define EP_BATTLE_MESSAGE_H 20 21 #include <string> 22 #include "string_view.h" 23 #include <lcf/rpg/fwd.h> 24 25 class Game_Battler; 26 27 namespace BattleMessage { 28 29 std::string GetStateInflictMessage(const Game_Battler& target, const lcf::rpg::State& state); 30 31 std::string GetStateRecoveryMessage(const Game_Battler& target, const lcf::rpg::State& state); 32 33 std::string GetStateAffectedMessage(const Game_Battler& target, const lcf::rpg::State& state); 34 35 std::string GetStateAlreadyMessage(const Game_Battler& target, const lcf::rpg::State& state); 36 37 std::string GetDeathMessage(const Game_Battler& target); 38 39 std::string GetPhysicalFailureMessage(const Game_Battler& source, const Game_Battler& target); 40 41 std::string GetSkillFailureMessage(const Game_Battler& source, const Game_Battler& target, const lcf::rpg::Skill& skill); 42 43 std::string GetUndamagedMessage(const Game_Battler& target); 44 45 std::string GetCriticalHitMessage(const Game_Battler& source, const Game_Battler& target); 46 47 std::string GetHpRecoveredMessage(const Game_Battler& target, int value); 48 49 std::string GetSpRecoveredMessage(const Game_Battler& target, int value); 50 51 std::string GetParameterAbsorbedMessage(const Game_Battler& source, const Game_Battler& target, int value, StringView points); 52 53 std::string GetHpAbsorbedMessage(const Game_Battler& source, const Game_Battler& target, int value); 54 55 std::string GetSpAbsorbedMessage(const Game_Battler& source, const Game_Battler& target, int value); 56 57 std::string GetAtkAbsorbedMessage(const Game_Battler& source, const Game_Battler& target, int value); 58 59 std::string GetDefAbsorbedMessage(const Game_Battler& source, const Game_Battler& target, int value); 60 61 std::string GetSpiAbsorbedMessage(const Game_Battler& source, const Game_Battler& target, int value); 62 63 std::string GetAgiAbsorbedMessage(const Game_Battler& source, const Game_Battler& target, int value); 64 65 std::string GetDamagedMessage(const Game_Battler& target, int value); 66 67 std::string GetParameterChangeMessage(const Game_Battler& target, int value, StringView points); 68 69 std::string GetSpReduceMessage(const Game_Battler& target, int value); 70 71 std::string GetAtkChangeMessage(const Game_Battler& target, int value); 72 73 std::string GetDefChangeMessage(const Game_Battler& target, int value); 74 75 std::string GetSpiChangeMessage(const Game_Battler& target, int value); 76 77 std::string GetAgiChangeMessage(const Game_Battler& target, int value); 78 79 std::string GetAttributeShiftMessage(const Game_Battler& target, int value, const lcf::rpg::Attribute& attribute); 80 81 std::string GetNormalAttackStartMessage2k(const Game_Battler& source); 82 83 std::string GetDefendStartMessage2k(const Game_Battler& source); 84 85 std::string GetObserveStartMessage2k(const Game_Battler& source); 86 87 std::string GetChargeUpStartMessage2k(const Game_Battler& source); 88 89 std::string GetSelfDestructStartMessage2k(const Game_Battler& source); 90 91 std::string GetEscapeStartMessage2k(const Game_Battler& source); 92 93 std::string GetTransformStartMessage(const Game_Battler& source, const lcf::rpg::Enemy& new_enemy); 94 95 std::string GetSkillFirstStartMessage2k(const Game_Battler& source, const Game_Battler* target, const lcf::rpg::Skill& skill); 96 97 std::string GetSkillSecondStartMessage2k(const Game_Battler& source, const Game_Battler* target, const lcf::rpg::Skill& skill); 98 99 std::string GetItemStartMessage2k(const Game_Battler& source, const lcf::rpg::Item& item); 100 101 std::string GetDoubleAttackStartMessage2k3(const Game_Battler& source); 102 103 std::string GetSkillStartMessage2k3(const Game_Battler& source, const Game_Battler* target, const lcf::rpg::Skill& skill); 104 105 std::string GetItemStartMessage2k3(const Game_Battler& source, const lcf::rpg::Item& item); 106 107 std::string GetObserveStartMessage2k3(const Game_Battler& source); 108 109 std::string GetDefendStartMessage2k3(const Game_Battler& source); 110 111 std::string GetChargeUpStartMessage2k3(const Game_Battler& source); 112 113 std::string GetSelfDestructStartMessage2k3(const Game_Battler& source); 114 115 std::string GetEscapeStartMessage2k3(const Game_Battler& source); 116 117 } // namespace BattleMessage 118 119 #endif 120