summaryrefslogtreecommitdiffhomepage
path: root/Stars45/CombatUnit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/CombatUnit.cpp')
-rw-r--r--Stars45/CombatUnit.cpp23
1 files changed, 3 insertions, 20 deletions
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;