Class BuyWeaponTradeStep
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.tradesteps.BuyWeaponTradeStep
-
- All Implemented Interfaces:
ITradeStep
public class BuyWeaponTradeStep extends java.lang.Object implements ITradeStep
Trade step for buying weapons. Weapons can only be bought for ships not convoys. If the setvessel
is a convoy, nothing will be bought.- Author:
- Andi Hotz, (c) Sahits GmbH, 2017 Created on Oct 19, 2017
-
-
Constructor Summary
Constructors Constructor Description BuyWeaponTradeStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute()
Execute the trade step.java.lang.String
toString()
-
-
-
Field Detail
-
city
private ICity city
-
player
private IAIPlayer player
-
vessel
private INavigableVessel vessel
-
-
Method Detail
-
execute
public boolean execute()
Description copied from interface:ITradeStep
Execute the trade step.- Specified by:
execute
in interfaceITradeStep
- Returns:
- true if the next step can be executed on completion or if the execution is triggered by the arrival of the ship in the next port.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-