PrimitiveAttackCoordinator

public class PrimitiveAttackCoordinator implements Serializable

A class that offers primitive micromanagement of soldiers Just sends them to the nearest building, shooting anything in range

Author:The Condor

Fields

attackers

List<Integer> attackers

playernum

int playernum

primarytargetID

Integer primarytargetID

Constructors

PrimitiveAttackCoordinator

public PrimitiveAttackCoordinator(int playernum)

Methods

addAttacker

public void addAttacker(Integer attacker)

coordinate

public void coordinate(StateView state, Map<Integer, Action> actions)

Append the relevant actions to the action set. This will replace previous ones, as Builder does not have any means to check.

Parameters:
  • state
  • actions