Class SocialRankChecker
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.SocialRankChecker
-
public class SocialRankChecker extends java.lang.Object
This checker checks at the end of month if the next social rank can be reached- Author:
- Andi Hotz, (c) Sahits GmbH, 2012 Created on Jul 24, 2012
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.eventbus.AsyncEventBus
clientServerEventBus
private Date
date
private GuildList
guildList
private IMap
map
private PlayerList
players
private ReputationCalculator
repCalculator
-
Constructor Summary
Constructors Constructor Description SocialRankChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doMonthlyCheck()
private boolean
isNextRankAchievable(IPlayer player)
private boolean
isReputationTooLow(IPlayer player)
private boolean
notEnoughMoney(IPlayer player)
-
-
-
Field Detail
-
clientServerEventBus
@Autowired @Qualifier("serverClientEventBus") private com.google.common.eventbus.AsyncEventBus clientServerEventBus
-
players
@Autowired private PlayerList players
-
repCalculator
@Autowired private ReputationCalculator repCalculator
-
guildList
@Autowired private GuildList guildList
-
date
@Autowired private Date date
-
map
@Autowired private IMap map
-
-