Uses of Interface
ch.sahits.game.openpatrician.model.people.ICaptain
-
-
Uses of ICaptain in ch.sahits.game.openpatrician.model.people.impl
Classes in ch.sahits.game.openpatrician.model.people.impl that implement ICaptain Modifier and Type Class Description classCaptainStateImplementation of the captain.Methods in ch.sahits.game.openpatrician.model.people.impl that return types with arguments of type ICaptain Modifier and Type Method Description java.util.List<ICaptain>CaptainsState. getAllFreeCaptains()Retrieve a list of all captains that are not assigned to a town.java.util.Optional<ICaptain>CaptainsState. getCaptain(ICity city)Return a captain for a town if there is one.Methods in ch.sahits.game.openpatrician.model.people.impl with parameters of type ICaptain Modifier and Type Method Description voidCaptainsState. addCaptain(ICity city, java.time.LocalDateTime arrival, ICaptain captain)voidCaptainsState. assignCaptainToCity(ICaptain captain, ICity city, java.time.LocalDateTime arrivalDate)Assign the captain to a new town.java.util.Optional<ICity>CaptainsState. findCaptainsCurrentCity(ICaptain captain)Find the current city of a captain.java.time.LocalDateTimeCaptainsState. getArrivalDate(ICaptain captain)Retrieve the arrival date of a captain in a town.voidCaptainsState. hireCaptain(ICaptain captain, ICity city)Remove the captain from the availables. -
Uses of ICaptain in ch.sahits.game.openpatrician.model.player
Methods in ch.sahits.game.openpatrician.model.player that return types with arguments of type ICaptain Modifier and Type Method Description java.util.Optional<ICaptain>IAICaptainHireStrategy. getCaptain(ICity city)Retrieve the captain to be hired.Methods in ch.sahits.game.openpatrician.model.player with parameters of type ICaptain Modifier and Type Method Description voidIAICaptainHireStrategy. hire(IAIPlayer player, IShip vessel, ICaptain captain, ICity city)playerhirescaptainon thevessel. -
Uses of ICaptain in ch.sahits.game.openpatrician.model.ship
Methods in ch.sahits.game.openpatrician.model.ship that return types with arguments of type ICaptain Modifier and Type Method Description java.util.Optional<ICaptain>INavigableVessel. getCaptian()Retrieve the captain of the ship.Methods in ch.sahits.game.openpatrician.model.ship with parameters of type ICaptain Modifier and Type Method Description voidIShip. setCaptain(ICaptain captain)Set the captain on the ship -
Uses of ICaptain in ch.sahits.game.openpatrician.model.ship.impl
Methods in ch.sahits.game.openpatrician.model.ship.impl that return types with arguments of type ICaptain Modifier and Type Method Description java.util.Optional<ICaptain>Convoy. getCaptian()Retrieve the captain of the Orleg ship.java.util.Optional<ICaptain>ShipGroup. getCaptian()Methods in ch.sahits.game.openpatrician.model.ship.impl with parameters of type ICaptain Modifier and Type Method Description voidShip. setCaptain(ICaptain captain)
-