Class CityHall
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.city.cityhall.impl.CityHall
-
-
Constructor Summary
Constructors Constructor Description CityHall()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetAldermanElectionDate(java.time.LocalDateTime aldermanElectionDate)Set the elederman election date and verify that there are no clashed with election dates.voidsetElectionDate(java.time.LocalDateTime electionDate)Set the election date and verify that there are no clashed with election dates.voidsetHanseaticMeetingDate(java.util.Optional<java.time.LocalDateTime> meetingDate)Set the hanseatic meeting date and verify that there are no clashed with election dates.voidsetNextCouncilMeeting(java.util.Optional<java.time.LocalDateTime> nextCouncilMeeting)Set the next council meeting date and verify that there are no clashed with election dates.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.sahits.game.openpatrician.model.city.cityhall.ICityHall
getAlderman, getAldermanCandidates, getAldermanElectionDate, getAldermanOffice, getBallotResult, getCandidates, getCity, getCityGuard, getCouncilmen, getElectionDate, getElectionResult, getHanseaticMeetingDate, getMaxNumberMilita, getMayor, getNextCouncilMeeting, getNotices, getOutriggerContract, getPetition, getTreasury, setOutriggerContract, setPetition
-
-
-
-
Method Detail
-
setAldermanElectionDate
public void setAldermanElectionDate(java.time.LocalDateTime aldermanElectionDate)
Set the elederman election date and verify that there are no clashed with election dates. If there are the date is move as long as there are no clashes.- Parameters:
aldermanElectionDate- date of the alderman election
-
setElectionDate
public void setElectionDate(java.time.LocalDateTime electionDate)
Set the election date and verify that there are no clashed with election dates. If there are the date is move as long as there are no clashes.- Parameters:
electionDate- election data of the city mayor
-
setNextCouncilMeeting
public void setNextCouncilMeeting(java.util.Optional<java.time.LocalDateTime> nextCouncilMeeting)
Set the next council meeting date and verify that there are no clashed with election dates. If there are the date is move as long as there are no clashes.- Parameters:
nextCouncilMeeting- Optional date of the next council meeting
-
setHanseaticMeetingDate
public void setHanseaticMeetingDate(java.util.Optional<java.time.LocalDateTime> meetingDate)
Set the hanseatic meeting date and verify that there are no clashed with election dates. If there are the date is move as long as there are no clashes.- Parameters:
meetingDate- Optional date of the next hanseatic meeting
-
-