Replies: 1 comment
-
This framework seems very good for me. Here are my own disorderly thoughts:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here are some ideas on how to organize fleets to make allied ships work together:
Fleet structure
First, we should discuss how fleets are structured. So here is my idea:
A squadron consists of any number of ships of the same class (fighters, bombers, corvettes, destroyers, etc.). Fleets are structured hierarchically: There is a designated flag ship that commands other squadrons (usually the strongest ship, but it can be manually chosen as well). Those squadrons can also command sub squadrons etc. Squadron can only be subject to a squadron of higher classes, e.g. a fleet of squadrons cannot command destroyers.
Example:
Cruiser (flag ship)
-> Destroyer (attack)
--> 2 Bombers (attack)
-> 2 Corvettes (defend)
-> Corvette (intercept)
--> 2 Fighters (attack)
The class of a squadron determines which roles it can have.
Fleet creation
There will be a function to group a bunch of ships into fleets and squadrons based on the ship classes and an estimation of their combat strength. The role of the squadrons will also be set here.
Fleets can be merged by either changing the commanders of the respective squadrons or reassigning all ships into existing squadrons.
Behaviour
Squadron will give orders to their subjects according to the hierarchy. They will react on being attacked and otherwise wait for orders from their commander.
The only thing the ships can decide by themselves is when to flee. In this case they will inform their commander, possibly triggering some reaction.
The behaviour of squadrons depends on their role. Squadrons set to 'attack' will be used to attack hostile fleets of similar combat strength. When a squadron receives the command to attack another fleet it will also order its own attack squadrons to attack the same targets.
If a squadron is attacked by fighters or bombers, it orders a squadron of interceptors to attack that fleet and prefers to ignore the hostile fighter squadron itself.
The ships will periodically check if their estimated combat strength is much lower than that of the fleet they attack. In this case they will retreat. Guerilla can be implemented by making ships overestimate their lost shield, armour, and energy.
If a ship retreats, their commander may decides to sent another squadron there, to order back the squadron or to retreat as well. If the entire fleet decides to retreat they could possibly contact other fleets in the sector, asking for help. Then, they will make out a meeting point where the fleets will merge on arriving.
When encountering a hostile fleet, the flag ship will decide if to engage the fleet or not. In the latter case, the same behaviour could be triggered.
Destruction of ships
If a ship is destroyed it should be checked if the squadron became too weak and should either be disbanded or reinforced. Also, it should be considered to sent another squadron to fight the attackers.
Beta Was this translation helpful? Give feedback.
All reactions