Lines Matching refs:Battle

45 Battle::ModeDuration::ModeDuration( u32 mode, u32 duration )  in ModeDuration()
49 bool Battle::ModeDuration::isMode( u32 mode ) const in isMode()
54 bool Battle::ModeDuration::isZeroDuration( void ) const in isZeroDuration()
59 void Battle::ModeDuration::DecreaseDuration( void ) in DecreaseDuration()
65 Battle::ModesAffected::ModesAffected() in ModesAffected()
70 u32 Battle::ModesAffected::GetMode( u32 mode ) const in GetMode()
72 …const_iterator it = std::find_if( begin(), end(), [mode]( const Battle::ModeDuration & v ) { retur… in GetMode()
76 void Battle::ModesAffected::AddMode( u32 mode, u32 duration ) in AddMode()
78 …iterator it = std::find_if( begin(), end(), [mode]( const Battle::ModeDuration & v ) { return v.is… in AddMode()
85 void Battle::ModesAffected::RemoveMode( u32 mode ) in RemoveMode()
87 …iterator it = std::find_if( begin(), end(), [mode]( const Battle::ModeDuration & v ) { return v.is… in RemoveMode()
95 void Battle::ModesAffected::DecreaseDuration( void ) in DecreaseDuration()
97 std::for_each( begin(), end(), []( Battle::ModeDuration & v ) { v.DecreaseDuration(); } ); in DecreaseDuration()
100 u32 Battle::ModesAffected::FindZeroDuration( void ) const in FindZeroDuration()
102 …const_iterator it = std::find_if( begin(), end(), []( const Battle::ModeDuration & v ) { return v.… in FindZeroDuration()
106 Battle::Unit::Unit( const Troop & t, int32_t pos, bool ref, const Rand::DeterministicRandomGenerato… in Unit()
133 Battle::Unit::~Unit() in ~Unit()
141 void Battle::Unit::SetPosition( s32 pos ) in SetPosition()
156 void Battle::Unit::SetPosition( const Position & pos ) in SetPosition()
175 void Battle::Unit::SetReflection( bool r ) in SetReflection()
183 void Battle::Unit::UpdateDirection( void ) in UpdateDirection()
189 bool Battle::Unit::UpdateDirection( const fheroes2::Rect & pos ) in UpdateDirection()
200 bool Battle::Unit::isBattle( void ) const in isBattle()
205 bool Battle::Unit::isModes( u32 v ) const in isModes()
210 std::string Battle::Unit::GetShotString( void ) const in GetShotString()
223 std::string Battle::Unit::GetSpeedString() const in GetSpeedString()
235 uint32_t Battle::Unit::GetInitialCount() const in GetInitialCount()
240 u32 Battle::Unit::GetDead( void ) const in GetDead()
245 u32 Battle::Unit::GetHitPointsLeft( void ) const in GetHitPointsLeft()
250 uint32_t Battle::Unit::GetMissingHitPoints() const in GetMissingHitPoints()
257 u32 Battle::Unit::GetAffectedDuration( u32 mod ) const in GetAffectedDuration()
262 u32 Battle::Unit::GetSpeed( void ) const in GetSpeed()
267 int Battle::Unit::GetMorale() const in GetMorale()
278 bool Battle::Unit::isUID( u32 v ) const in isUID()
283 u32 Battle::Unit::GetUID( void ) const in GetUID()
288 Battle::Unit * Battle::Unit::GetMirror() in GetMirror()
293 void Battle::Unit::SetMirror( Unit * ptr ) in SetMirror()
298 u32 Battle::Unit::GetShots( void ) const in GetShots()
303 const Battle::Position & Battle::Unit::GetPosition( void ) const in GetPosition()
308 s32 Battle::Unit::GetHeadIndex( void ) const in GetHeadIndex()
313 s32 Battle::Unit::GetTailIndex( void ) const in GetTailIndex()
318 void Battle::Unit::SetRandomMorale( void ) in SetRandomMorale()
336 void Battle::Unit::SetRandomLuck( void ) in SetRandomLuck()
351 bool Battle::Unit::isFlying( void ) const in isFlying()
356 bool Battle::Unit::isValid( void ) const in isValid()
361 bool Battle::Unit::isReflect( void ) const in isReflect()
366 bool Battle::Unit::OutOfWalls( void ) const in OutOfWalls()
371 bool Battle::Unit::canReach( int index ) const in canReach()
384 bool Battle::Unit::canReach( const Unit & unit ) const in canReach()
394 bool Battle::Unit::isHandFighting( void ) const in isHandFighting()
409 bool Battle::Unit::isHandFighting( const Unit & a, const Unit & b ) in isHandFighting()
418 int Battle::Unit::GetAnimationState() const in GetAnimationState()
423 bool Battle::Unit::isIdling() const in isIdling()
428 bool Battle::Unit::checkIdleDelay() in checkIdleDelay()
433 void Battle::Unit::NewTurn( void ) in NewTurn()
470 u32 Battle::Unit::GetSpeed( bool skipStandingCheck, bool skipMovedCheck ) const in GetSpeed()
493 uint32_t Battle::Unit::GetMoveRange() const in GetMoveRange()
498 uint32_t Battle::Unit::CalculateRetaliationDamage( uint32_t damageTaken ) const in CalculateRetaliationDamage()
517 u32 Battle::Unit::CalculateMinDamage( const Unit & enemy ) const in CalculateMinDamage()
522 u32 Battle::Unit::CalculateMaxDamage( const Unit & enemy ) const in CalculateMaxDamage()
527 u32 Battle::Unit::CalculateDamageUnit( const Unit & enemy, double dmg ) const in CalculateDamageUnit()
594 u32 Battle::Unit::GetDamage( const Unit & enemy ) const in GetDamage()
613 u32 Battle::Unit::HowManyWillKilled( u32 dmg ) const in HowManyWillKilled()
618 u32 Battle::Unit::ApplyDamage( u32 dmg ) in ApplyDamage()
660 void Battle::Unit::PostKilledAction( void ) in PostKilledAction()
704 u32 Battle::Unit::Resurrect( u32 points, bool allow_overflow, bool skip_dead ) in Resurrect()
730 u32 Battle::Unit::ApplyDamage( Unit & enemy, u32 dmg ) in ApplyDamage()
758 bool Battle::Unit::AllowApplySpell( const Spell & spell, const HeroBase * hero, std::string * msg, … in AllowApplySpell()
829 bool Battle::Unit::isUnderSpellEffect( const Spell & spell ) const in isUnderSpellEffect()
888 bool Battle::Unit::ApplySpell( const Spell & spell, const HeroBase * hero, TargetInfo & target ) in ApplySpell()
911 std::vector<Spell> Battle::Unit::getCurrentSpellEffects() const in getCurrentSpellEffects()
964 std::string Battle::Unit::String( bool more ) const in String()
988 bool Battle::Unit::AllowResponse( void ) const in AllowResponse()
994 void Battle::Unit::SetResponse( void ) in SetResponse()
999 void Battle::Unit::PostAttackAction() in PostAttackAction()
1026 void Battle::Unit::ResetBlind( void ) in ResetBlind()
1036 void Battle::Unit::SetBlindAnswer( bool value ) in SetBlindAnswer()
1041 u32 Battle::Unit::GetAttack( void ) const in GetAttack()
1051 u32 Battle::Unit::GetDefense( void ) const in GetDefense()
1085 s32 Battle::Unit::GetScoreQuality( const Unit & defender ) const in GetScoreQuality()
1159 u32 Battle::Unit::GetHitPoints( void ) const in GetHitPoints()
1164 int Battle::Unit::GetControl( void ) const in GetControl()
1169 bool Battle::Unit::isArchers( void ) const in isArchers()
1174 void Battle::Unit::SpellModesAction( const Spell & spell, u32 duration, const HeroBase * hero ) in SpellModesAction()
1311 void Battle::Unit::SpellApplyDamage( const Spell & spell, u32 spoint, const HeroBase * hero, Target… in SpellApplyDamage()
1475 void Battle::Unit::SpellRestoreAction( const Spell & spell, u32 spoint, const HeroBase * hero ) in SpellRestoreAction()
1520 bool Battle::Unit::isTwiceAttack( void ) const in isTwiceAttack()
1535 bool Battle::Unit::isMagicResist( const Spell & spell, u32 spower ) const in isMagicResist()
1540 u32 Battle::Unit::GetMagicResist( const Spell & spell, u32 spower ) const in GetMagicResist()
1576 int Battle::Unit::GetSpellMagic() const in GetSpellMagic()
1593 bool Battle::Unit::isHaveDamage( void ) const in isHaveDamage()
1598 int Battle::Unit::GetFrame( void ) const in GetFrame()
1603 void Battle::Unit::SetCustomAlpha( uint32_t alpha ) in SetCustomAlpha()
1608 uint32_t Battle::Unit::GetCustomAlpha() const in GetCustomAlpha()
1613 void Battle::Unit::IncreaseAnimFrame( bool loop ) in IncreaseAnimFrame()
1618 bool Battle::Unit::isFinishAnimFrame( void ) const in isFinishAnimFrame()
1623 bool Battle::Unit::SwitchAnimation( int rule, bool reverse ) in SwitchAnimation()
1629 bool Battle::Unit::SwitchAnimation( const std::vector<int> & animationList, bool reverse ) in SwitchAnimation()
1635 int Battle::Unit::M82Attk( void ) const in M82Attk()
1649 int Battle::Unit::M82Kill() const in M82Kill()
1654 int Battle::Unit::M82Move() const in M82Move()
1659 int Battle::Unit::M82Wnce() const in M82Wnce()
1664 int Battle::Unit::M82Expl( void ) const in M82Expl()
1681 fheroes2::Rect Battle::Unit::GetRectPosition() const in GetRectPosition()
1686 fheroes2::Point Battle::Unit::GetBackPoint() const in GetBackPoint()
1692 fheroes2::Point Battle::Unit::GetCenterPoint() const in GetCenterPoint()
1702 fheroes2::Point Battle::Unit::GetStartMissileOffset( size_t direction ) const in GetStartMissileOffset()
1707 int Battle::Unit::GetArmyColor( void ) const in GetArmyColor()
1712 int Battle::Unit::GetColor( void ) const in GetColor()
1717 int Battle::Unit::GetCurrentColor() const in GetCurrentColor()
1728 int Battle::Unit::GetCurrentOrArmyColor() const in GetCurrentOrArmyColor()
1739 int Battle::Unit::GetCurrentControl() const in GetCurrentControl()
1755 const HeroBase * Battle::Unit::GetCommander( void ) const in GetCommander()
1760 const HeroBase * Battle::Unit::GetCurrentOrArmyCommander() const in GetCurrentOrArmyCommander()