Class AldermanOffice
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.city.cityhall.impl.AldermanOffice
-
- All Implemented Interfaces:
IAldermanOffice
@Component @Lazy public class AldermanOffice extends java.lang.Object implements IAldermanOffice
- Author:
- Andi Hotz, (c) Sahits GmbH, 2014 Created on Dec 31, 2014
-
-
Field Summary
Fields Modifier and Type Field Description private javafx.collections.ObservableList<IAldermanTask>
tasks
private java.util.Optional<ICityViolation>
violation
private java.util.List<IAcceptedAldermanTask>
workedOnTasks
-
Constructor Summary
Constructors Constructor Description AldermanOffice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTask(IAldermanTask task, java.time.LocalDateTime limit, IPlayer player)
Add a new task that is currently worked on.void
finished(IAldermanTask task)
Task is finished, so remove it from the list.-
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.IAldermanOffice
getTasks, getViolation, getWorkedOnTasks
-
-
-
-
Field Detail
-
tasks
private final javafx.collections.ObservableList<IAldermanTask> tasks
-
violation
private java.util.Optional<ICityViolation> violation
-
workedOnTasks
private java.util.List<IAcceptedAldermanTask> workedOnTasks
-
-
Method Detail
-
addTask
public void addTask(IAldermanTask task, java.time.LocalDateTime limit, IPlayer player)
Description copied from interface:IAldermanOffice
Add a new task that is currently worked on.- Specified by:
addTask
in interfaceIAldermanOffice
- Parameters:
task
- that is to be fullfiled.limit
- time limit until when the task has to be completedplayer
- who is working on the task
-
finished
public void finished(IAldermanTask task)
Description copied from interface:IAldermanOffice
Task is finished, so remove it from the list.- Specified by:
finished
in interfaceIAldermanOffice
- Parameters:
task
- completed task
-
-