Skip to content

Implement Army Unit Attack Strategy handling #56

@krogenth

Description

@krogenth

The last Strategist play decision, attack, is as it sounds: order our units to go on the offensive, attacking enemy units as they can. There are some major caveats to this however:

  • what prioritizes a target over another?
  • is attacking the right call for unit x?

This decision is completely situation dependent, based on the unit in question, what units the enemy has, what enemy units are near by, what player units are near by, etc. All of this factors in to what a unit should do in some way.

  • If a unit is isolated, and has no allies around to support it, it should attempt to run away. Failing to find a path to take to run, or is taken towards the enemy units to run, should cause the unit to fight for its life(negotiable for this task if proven too difficult to handle).
  • For air-borne units, like Mutalisks, if there is no enemy anti-air units, can swiftly decide to route around and try to pick off enemy supply workers.
  • Enemy Army units should be first to be attacked. After that, supply workers, then buildings(preferably supply providing buildings, then others).

This task is to implement any such logic for ALL Army unit wrappers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions