public interface IShipyard
| Modifier and Type | Method and Description |
|---|---|
void |
addShipBuildingOrder(IShipDueDate dueDate,
Optional<TimedTask> task)
Add an order for building a new ship to the list.
|
void |
addShipRefitOrder(IShipDueDate dueDate,
Optional<TimedTask> task)
Add an order for refitting a ship to the list.
|
void |
addShipRepairOrder(IShipDueDate dueDate,
Optional<TimedTask> task)
Add an order for repairing a ship to the list.
|
int |
calculateBuildTime(EShipType type)
Calculate the build time for the ship of type.
|
int |
calculateConstructionCosts(EShipType type)
Calculate the labor costs for building a new ship of the indicated type.
|
int |
calculateRefitCosts(EShipType type,
int levels)
Calculate the labor costs for the refit based on the ship type and how many levels
should be upgraded.
|
int |
calculateRefitTime(EShipType type)
Calculate the time in days it takes for refitting.
|
int |
calculateRepairCosts(int repairTime,
int materialCosts)
Calculate the repair costs.
|
int |
calculateRepairMaterialCosts(IShip ship,
int damage)
Calculate the material costs for the repair.
|
int |
calculateRepairTime(EShipType type)
Calculate the repair time for the ship of type.
|
void |
cancelRepair(IShip ship)
Cancel the repair of the ship.
|
void |
cancelShipBuildingOrder(java.time.LocalDateTime finish)
Cancel the order of the building, finished on the given date.
|
EShipType[] |
getBuildableShipTypes()
Retrieve a list of all the types of ships this yard can build.
|
java.time.LocalDateTime |
getBuildCompleteDate(EShipType type)
Retrieve the date when the building of a new ship will be finished.
|
ICity |
getCity()
Retrieve the city the shipyard belongs to.
|
List<IShipDueDate> |
getShipBuildingList()
Retrieve an immutable list of the ships that are ordered
to be built on this shipyard.
|
List<IShipDueDate> |
getShipRepairList()
Retrieve the list of all ships that are to be repaired.
|
List<IShipDueDate> |
getShipUpgradeList()
Retrieve the list of all ships that are to be upgraded.
|
void |
removeCompletedConstruction(IShip ship)
Remove the build entry once it is completed.
|
void |
removeCompletedRepair(IShip ship)
Remove the repair entry once it is completed.
|
void |
removeCompletedUpgrade(IShip ship)
Remove the upgrade entry once it is completed.
|
ICity getCity()
List<IShipDueDate> getShipBuildingList()
java.time.LocalDateTime getBuildCompleteDate(EShipType type)
type - of the ship to be builtvoid addShipBuildingOrder(IShipDueDate dueDate, Optional<TimedTask> task)
dueDate - when the ship is finished buildingtask - that is executed on completion.void addShipRepairOrder(IShipDueDate dueDate, Optional<TimedTask> task)
dueDate - when the ship is finished repairingtask - that is executed on completion.void addShipRefitOrder(IShipDueDate dueDate, Optional<TimedTask> task)
dueDate - when the ship is refittedtask - that is executed on completion.void cancelShipBuildingOrder(java.time.LocalDateTime finish)
finish - dateList<IShipDueDate> getShipRepairList()
List<IShipDueDate> getShipUpgradeList()
void cancelRepair(IShip ship)
ship - which's repair order is to be canceledint calculateRepairCosts(int repairTime,
int materialCosts)
repairTime - materialCosts - int calculateRepairMaterialCosts(IShip ship, int damage)
ship - damage - int calculateRefitCosts(EShipType type, int levels)
type - levels - int calculateRefitTime(EShipType type)
type - destination levelEShipType[] getBuildableShipTypes()
int calculateConstructionCosts(EShipType type)
type - of the shipint calculateBuildTime(EShipType type)
type - int calculateRepairTime(EShipType type)
type - void removeCompletedRepair(IShip ship)
ship - that is to be repaired.void removeCompletedConstruction(IShip ship)
ship - that is to be built.void removeCompletedUpgrade(IShip ship)
ship - that is to be upgraded.Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.