Lines Matching refs:Battle

50 namespace Battle  namespace
58 size_t UpdateRandomSeed( const size_t seed, const Battle::Actions & actions ) in UpdateRandomSeed()
62 for ( const Battle::Command & command : actions ) { in UpdateRandomSeed()
63 if ( command.GetType() == Battle::CommandType::MSG_BATTLE_AUTO ) { in UpdateRandomSeed()
125 bool Battle::TargetInfo::operator==( const TargetInfo & ta ) const in operator ==()
130 Battle::Arena * Battle::GetArena( void ) in GetArena()
135 const Castle * Battle::Arena::GetCastle( void ) in GetCastle()
140 Battle::Bridge * Battle::Arena::GetBridge( void ) in GetBridge()
145 Battle::Board * Battle::Arena::GetBoard( void ) in GetBoard()
150 Battle::Graveyard * Battle::Arena::GetGraveyard( void ) in GetGraveyard()
155 Battle::Interface * Battle::Arena::GetInterface( void ) in GetInterface()
160 Battle::Tower * Battle::Arena::GetTower( int type ) in GetTower()
175 Battle::Arena::Arena( Army & a1, Army & a2, s32 index, bool local, Rand::DeterministicRandomGenerat… in Arena()
295 Battle::Arena::~Arena() in ~Arena()
311 void Battle::Arena::TurnTroop( Unit * troop, const Units & orderHistory ) in TurnTroop()
391 bool Battle::Arena::BattleValid( void ) const in BattleValid()
396 void Battle::Arena::Turns( void ) in Turns()
553 void Battle::Arena::RemoteTurn( const Unit & b, Actions & a ) in RemoteTurn()
559 void Battle::Arena::HumanTurn( const Unit & b, Actions & a ) in HumanTurn()
565 void Battle::Arena::TowerAction( const Tower & twr ) in TowerAction()
577 void Battle::Arena::CatapultAction( void ) in CatapultAction()
615 Battle::Indexes Battle::Arena::GetPath( const Unit & b, const Position & dst ) const in GetPath()
629 Battle::Indexes Battle::Arena::CalculateTwoMoveOverlap( int32_t indexTo, uint32_t movementRange ) c… in CalculateTwoMoveOverlap()
634 std::pair<int, uint32_t> Battle::Arena::CalculateMoveToUnit( const Unit & target ) const in CalculateMoveToUnit()
661 uint32_t Battle::Arena::CalculateMoveDistance( int32_t indexTo ) const in CalculateMoveDistance()
666 bool Battle::Arena::hexIsPassable( int32_t indexTo ) const in hexIsPassable()
671 Battle::Indexes Battle::Arena::getAllAvailableMoves( uint32_t moveRange ) const in getAllAvailableMoves()
676 int32_t Battle::Arena::GetNearestReachableCell( const Unit & currentUnit, const int32_t dst ) const in GetNearestReachableCell()
704 Battle::Unit * Battle::Arena::GetTroopBoard( s32 index ) in GetTroopBoard()
709 const Battle::Unit * Battle::Arena::GetTroopBoard( s32 index ) const in GetTroopBoard()
714 const HeroBase * Battle::Arena::GetCommander1( void ) const in GetCommander1()
719 const HeroBase * Battle::Arena::GetCommander2( void ) const in GetCommander2()
724 int Battle::Arena::GetArmyColor1( void ) const in GetArmyColor1()
729 int Battle::Arena::GetArmyColor2( void ) const in GetArmyColor2()
734 int Battle::Arena::GetCurrentColor( void ) const in GetCurrentColor()
739 int Battle::Arena::GetOppositeColor( int col ) const in GetOppositeColor()
744 Battle::Unit * Battle::Arena::GetTroopUID( u32 uid ) in GetTroopUID()
756 const Battle::Unit * Battle::Arena::GetTroopUID( u32 uid ) const in GetTroopUID()
768 const Battle::Unit * Battle::Arena::GetEnemyMaxQuality( int my_color ) const in GetEnemyMaxQuality()
785 void Battle::Arena::FadeArena( bool clearMessageLog ) const in FadeArena()
791 const SpellStorage & Battle::Arena::GetUsageSpells( void ) const in GetUsageSpells()
796 int32_t Battle::Arena::GetFreePositionNearHero( const int heroColor ) const in GetFreePositionNearHero()
821 bool Battle::Arena::CanSurrenderOpponent( int color ) const in CanSurrenderOpponent()
828 bool Battle::Arena::CanRetreatOpponent( int color ) const in CanRetreatOpponent()
834 bool Battle::Arena::isSpellcastDisabled() const in isSpellcastDisabled()
845 bool Battle::Arena::isDisableCastSpell( const Spell & spell, std::string * msg ) in isDisableCastSpell()
906 const Battle::Unit * b = ( *it ).GetUnit(); in isDisableCastSpell()
929 bool Battle::Arena::GraveyardAllowResurrect( s32 index, const Spell & spell ) const in GraveyardAllowResurrect()
961 const Battle::Unit * Battle::Arena::GraveyardLastTroop( s32 index ) const in GraveyardLastTroop()
966 std::vector<const Battle::Unit *> Battle::Arena::GetGraveyardTroops( const int32_t hexIndex ) const in GetGraveyardTroops()
970 std::vector<const Battle::Unit *> units( ids.size() ); in GetGraveyardTroops()
978 Battle::Indexes Battle::Arena::GraveyardClosedCells( void ) const in GraveyardClosedCells()
983 void Battle::Arena::SetCastleTargetValue( int target, u32 value ) in SetCastleTargetValue()
1031 u32 Battle::Arena::GetCastleTargetValue( int target ) const in GetCastleTargetValue()
1059 std::vector<int> Battle::Arena::GetCastleTargets( void ) const in GetCastleTargets()
1083 const HeroBase * Battle::Arena::getCommander( const int color ) const in getCommander()
1088 const HeroBase * Battle::Arena::getEnemyCommander( const int color ) const in getEnemyCommander()
1093 const HeroBase * Battle::Arena::GetCurrentCommander( void ) const in GetCurrentCommander()
1098 Battle::Unit * Battle::Arena::CreateElemental( const Spell & spell ) in CreateElemental()
1163 Battle::Unit * Battle::Arena::CreateMirrorImage( Unit & b, s32 pos ) in CreateMirrorImage()
1183 bool Battle::Arena::IsShootingPenalty( const Unit & attacker, const Unit & defender ) const in IsShootingPenalty()
1230 Battle::Force & Battle::Arena::GetForce1( void ) in GetForce1()
1235 Battle::Force & Battle::Arena::GetForce2( void ) in GetForce2()
1240 Battle::Force & Battle::Arena::getForce( const int color ) in getForce()
1245 Battle::Force & Battle::Arena::getEnemyForce( const int color ) in getEnemyForce()
1250 Battle::Force & Battle::Arena::GetCurrentForce( void ) in GetCurrentForce()
1255 int Battle::Arena::GetICNCovr( void ) const in GetICNCovr()
1260 u32 Battle::Arena::GetCurrentTurn( void ) const in GetCurrentTurn()
1265 Battle::Result & Battle::Arena::GetResult( void ) in GetResult()
1270 bool Battle::Arena::CanBreakAutoBattle( void ) const in CanBreakAutoBattle()
1275 void Battle::Arena::BreakAutoBattle( void ) in BreakAutoBattle()
1280 const Rand::DeterministicRandomGenerator & Battle::Arena::GetRandomGenerator() const in GetRandomGenerator()