Lines Matching refs:Battle

66 void Battle::Arena::BattleProcess( Unit & attacker, Unit & defender, s32 dst, int dir )  in BattleProcess()
142 void Battle::Arena::ApplyAction( Command & cmd ) in ApplyAction()
187 void Battle::Arena::ApplyActionSpellCast( Command & cmd ) in ApplyActionSpellCast()
236 void Battle::Arena::ApplyActionAttack( Command & cmd ) in ApplyActionAttack()
243 Battle::Unit * b1 = GetTroopUID( uid1 ); in ApplyActionAttack()
244 Battle::Unit * b2 = GetTroopUID( uid2 ); in ApplyActionAttack()
292 void Battle::Arena::ApplyActionMove( Command & cmd ) in ApplyActionMove()
297 Battle::Unit * b = GetTroopUID( uid ); in ApplyActionMove()
398 void Battle::Arena::ApplyActionSkip( Command & cmd ) in ApplyActionSkip()
403 Battle::Unit * battle = GetTroopUID( uid ); in ApplyActionSkip()
430 void Battle::Arena::ApplyActionEnd( Command & cmd ) in ApplyActionEnd()
434 Battle::Unit * battle = GetTroopUID( uid ); in ApplyActionEnd()
458 void Battle::Arena::ApplyActionMorale( Command & cmd ) in ApplyActionMorale()
463 Battle::Unit * b = GetTroopUID( uid ); in ApplyActionMorale()
493 void Battle::Arena::ApplyActionRetreat( const Command & /*cmd*/ ) in ApplyActionRetreat()
509 void Battle::Arena::ApplyActionSurrender( const Command & /*cmd*/ ) in ApplyActionSurrender()
538 void Battle::Arena::TargetsApplyDamage( Unit & attacker, const Unit & /*defender*/, TargetsInfo & t… in TargetsApplyDamage()
547 Battle::TargetsInfo Battle::Arena::GetTargetsForDamage( const Unit & attacker, Unit & defender, s32… in GetTargetsForDamage()
619 void Battle::Arena::TargetsApplySpell( const HeroBase * hero, const Spell & spell, TargetsInfo & ta… in TargetsApplySpell()
632 std::vector<Battle::Unit *> Battle::Arena::FindChainLightningTargetIndexes( const HeroBase * hero, … in FindChainLightningTargetIndexes()
634 std::vector<Battle::Unit *> result = { firstUnit }; in FindChainLightningTargetIndexes()
635 std::vector<Battle::Unit *> ignoredTroops = { firstUnit }; in FindChainLightningTargetIndexes()
637 … std::vector<Battle::Unit *> foundTroops = board.GetNearestTroops( result.back(), ignoredTroops ); in FindChainLightningTargetIndexes()
681 Battle::TargetsInfo Battle::Arena::TargetsForChainLightning( const HeroBase * hero, int32_t attacke… in TargetsForChainLightning()
702 Battle::TargetsInfo Battle::Arena::GetTargetsForSpells( const HeroBase * hero, const Spell & spell,… in GetTargetsForSpells()
830 void Battle::Arena::ApplyActionTower( Command & cmd ) in ApplyActionTower()
836 Battle::Unit * b2 = GetTroopUID( uid ); in ApplyActionTower()
860 void Battle::Arena::ApplyActionCatapult( Command & cmd ) in ApplyActionCatapult()
888 void Battle::Arena::ApplyActionAutoBattle( Command & cmd ) in ApplyActionAutoBattle()
908 void Battle::Arena::ApplyActionSpellSummonElemental( const Command & /*cmd*/, const Spell & spell ) in ApplyActionSpellSummonElemental()
917 void Battle::Arena::ApplyActionSpellDefaults( Command & cmd, const Spell & spell ) in ApplyActionSpellDefaults()
954 void Battle::Arena::ApplyActionSpellTeleport( Command & cmd ) in ApplyActionSpellTeleport()
980 void Battle::Arena::ApplyActionSpellEarthQuake( const Command & /*cmd*/ ) in ApplyActionSpellEarthQuake()
1004 void Battle::Arena::ApplyActionSpellMirrorImage( Command & cmd ) in ApplyActionSpellMirrorImage()
1014 …return Battle::Board::GetDistance( centerIndex, index1 ) < Battle::Board::GetDistance( centerIndex… in ApplyActionSpellMirrorImage()
1018 … distances.begin(), distances.end(), [troop]( const int32_t v ) { return Battle::Board::isValidMir… in ApplyActionSpellMirrorImage()