Add icons for CPs.

This commit is contained in:
Dan Albert
2021-05-21 21:43:02 -07:00
parent f8cb9e2bd3
commit c0ead4a484
25 changed files with 105 additions and 24 deletions

View File

@@ -786,6 +786,11 @@ class ControlPoint(MissionTarget, ABC):
def strike_targets(self) -> List[Union[MissionTarget, Unit]]:
return []
@property
@abstractmethod
def category(self) -> str:
...
class Airfield(ControlPoint):
def __init__(
@@ -863,6 +868,10 @@ class Airfield(ControlPoint):
def income_per_turn(self) -> int:
return 20
@property
def category(self) -> str:
return "airfield"
class NavalControlPoint(ControlPoint, ABC):
@property
@@ -956,6 +965,10 @@ class Carrier(NavalControlPoint):
def total_aircraft_parking(self) -> int:
return 90
@property
def category(self) -> str:
return "cv"
class Lha(NavalControlPoint):
def __init__(self, name: str, at: Point, cp_id: int):
@@ -986,6 +999,10 @@ class Lha(NavalControlPoint):
def total_aircraft_parking(self) -> int:
return 20
@property
def category(self) -> str:
return "lha"
class OffMapSpawn(ControlPoint):
def runway_is_operational(self) -> bool:
@@ -1036,6 +1053,10 @@ class OffMapSpawn(ControlPoint):
def can_deploy_ground_units(self) -> bool:
return False
@property
def category(self) -> str:
return "offmap"
class Fob(ControlPoint):
def __init__(self, name: str, at: Point, cp_id: int):
@@ -1100,3 +1121,7 @@ class Fob(ControlPoint):
@property
def income_per_turn(self) -> int:
return 10
@property
def category(self) -> str:
return "fob"