KajiTetsushi / HomeworldSDL

Other
4 stars 1 forks source link

#22 add volley fire and ammunition shared modules #38

Open KajiTetsushi opened 3 years ago

KajiTetsushi commented 3 years ago

Closes #22

Architecture enhancement.

Note: See #39 for example.

To create a set of common features which can be easily reused. In the future, if forks (or even better yet, mods, i.e. with no coding intervention) of the original gameplay want to implement volley fire on other ships besides the set originally implemented by the Relic team, with this change, users are able to do so.

Changes

Any ship, in theory, can simply be enhanced with this:

  1. Include volley fire and ammunition headers.
  2. Initialize the specifics and statistics in the custom ship.
  3. Reuse the abstracted methods in those headers for housekeeping and special target attack behaviors.
  4. Implement additional logic as necessary to support those behaviors.
  5. Edit the existing ship configurations to use volley fire.

Note: See #39 for example.

Tests

New feature

Existing ships have no deviations from original behaviors:

Platforms

Known issues

Can't think of any.