| 35 | namespace Algo { |
| 36 | |
| 37 | bool IsRowAdjusted(lcf::rpg::SaveActor::RowType row, lcf::rpg::System::BattleCondition cond, bool offense) { |
| 38 | return (cond == lcf::rpg::System::BattleCondition_surround |
| 39 | || (row != static_cast<int>(offense) |
| 40 | && (cond == lcf::rpg::System::BattleCondition_none || cond == lcf::rpg::System::BattleCondition_initiative)) |
| 41 | || (row == static_cast<int>(offense) |
| 42 | && (cond == lcf::rpg::System::BattleCondition_back)) |
| 43 | ); |
| 44 | } |
| 45 | |
| 46 | bool IsRowAdjusted(const Game_Battler& battler, lcf::rpg::System::BattleCondition cond, bool offense, bool allow_enemy) { |
| 47 | lcf::rpg::SaveActor::RowType row = lcf::rpg::SaveActor::RowType_front; |
no test coverage detected