public interface IAIBuyWeaponStrategy
| Modifier and Type | Method | Description |
|---|---|---|
void |
buyWeapons(BuyWeapons target,
IShip ship,
IAIPlayer player,
ICity city) |
Buy the weapons.
|
java.util.Optional<BuyWeapons> |
shouldBuyWeapons(IShip ship,
IAIPlayer player,
ICity city) |
Determine if weapons should be bougth and if so to meet which target.
|
java.util.Optional<BuyWeapons> shouldBuyWeapons(IShip ship, IAIPlayer player, ICity city)
ship - for which the weapons should be boughtplayer - who is purchasing the weaponscity - in which to buy weaponsBuyWeapons defining the target that should be reached. If the optional is not filled
This means, no weapons should be bought.void buyWeapons(BuyWeapons target, IShip ship, IAIPlayer player, ICity city)
target - defining the target that should be met by buying the weapons.ship - for which the weapons should be boughtplayer - who is purchasing the weaponscity - in which to buy weaponsCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.