From 05f1b225a03adeab4cda01a6c96595359464ac0e Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Sun, 17 Jun 2012 06:38:09 +0000 Subject: (Hopefully) Allows SWACS ships to do more than sit around. Needs testing. --- Stars45/CombatUnit.cpp | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'Stars45/CombatUnit.cpp') diff --git a/Stars45/CombatUnit.cpp b/Stars45/CombatUnit.cpp index 951cb87..f03b349 100644 --- a/Stars45/CombatUnit.cpp +++ b/Stars45/CombatUnit.cpp @@ -114,26 +114,6 @@ CombatUnit::GetDescription() const // +----------------------------------------------------------------------+ bool -CombatUnit::CanAssign() const -{ - bool result = false; - - switch (type) { - case Ship::FIGHTER: - case Ship::ATTACK: - case Ship::CORVETTE: - case Ship::FRIGATE: - case Ship::DESTROYER: - case Ship::CRUISER: - case Ship::CARRIER: result = true; break; - } - - return result; -} - -// +----------------------------------------------------------------------+ - -bool CombatUnit::CanLaunch() const { bool result = false; @@ -262,6 +242,9 @@ double CombatUnit::PowerVersus(CombatUnit* tgt) const else if (type == Ship::CARRIER) { return 0; } + else if (type == Ship::SWACS) { + return 0; + } else if (type == Ship::CRUISER) { if (tgt->type <= Ship::ATTACK) return type * effectiveness; -- cgit v1.1