Class GuildService
- java.lang.Object
-
- ch.sahits.game.openpatrician.clientserverinterface.service.GuildService
-
public class GuildService extends java.lang.Object
Functionality to access the guild from the UI and the engine.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Nov 06, 2016
-
-
Field Summary
Fields Modifier and Type Field Description private Date
date
private DateService
dateService
private GuildSettings
guildSettings
private static int
MAX_COMPANY_VALUE
private static int
MIN_COMPANY_VALUE
-
Constructor Summary
Constructors Constructor Description GuildService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalDateTime
cleanUpAuctionAndDetermineAuctionDate(java.time.LocalDateTime auctionDate, IGuild guild)
int
getEntryFee(IPlayer player)
Calculate the entry fee for the guild based on the company value.
-
-
-
Field Detail
-
MAX_COMPANY_VALUE
private static final int MAX_COMPANY_VALUE
- See Also:
- Constant Field Values
-
MIN_COMPANY_VALUE
private static final int MIN_COMPANY_VALUE
- See Also:
- Constant Field Values
-
guildSettings
@Autowired private GuildSettings guildSettings
-
dateService
@Autowired private DateService dateService
-
date
@Autowired private Date date
-
-
Method Detail
-
getEntryFee
public int getEntryFee(IPlayer player)
Calculate the entry fee for the guild based on the company value.- Parameters:
player
- for whom to calculate the entry fee- Returns:
- entry fee for the player.
-
cleanUpAuctionAndDetermineAuctionDate
public java.time.LocalDateTime cleanUpAuctionAndDetermineAuctionDate(java.time.LocalDateTime auctionDate, IGuild guild)
-
-