void Weapon::Manage() { Refresh(); Game * game_loop = Game::GetInstance(); if (game_loop->ReadState() != Game::PLAYING) return; if (IsOnCooldownFromShot()) return ; if (ActiveTeam().ReadNbUnits() == 0) { Deselect(); if (m_can_change_weapon) Select(); else game_loop->SetState(Game::HAS_PLAYED); } }
bool PolecatLauncher::IsReady() const { return !IsOnCooldownFromShot() && WeaponLauncher::IsReady(); }
bool Mine::ShouldBeDrawn() { return !IsOnCooldownFromShot(); }