public class EldermanOffice extends Object implements IEldermanOffice
| Modifier and Type | Field and Description |
|---|---|
private javafx.collections.ObservableList<IEldermanTask> |
tasks |
private Optional<ICityViolation> |
violation |
private List<IAcceptedEldermanTask> |
workedOnTasks |
| Constructor and Description |
|---|
EldermanOffice(javafx.collections.ObservableList<IEldermanTask> tasks) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTask(IEldermanTask task,
org.joda.time.DateTime limit,
IPlayer player)
Add a new task that is currently worked on.
|
void |
finished(IEldermanTask task)
Task is finished, so remove it from the list.
|
void |
update()
Monthly check if there should be new tasks or violations added.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTasks, getViolation, getWorkedOnTasksprivate final javafx.collections.ObservableList<IEldermanTask> tasks
private Optional<ICityViolation> violation
private List<IAcceptedEldermanTask> workedOnTasks
public EldermanOffice(javafx.collections.ObservableList<IEldermanTask> tasks)
public void update()
IEldermanOfficeupdate in interface IEldermanOfficepublic void addTask(IEldermanTask task, org.joda.time.DateTime limit, IPlayer player)
IEldermanOfficeaddTask in interface IEldermanOfficetask - that is to be fullfiled.limit - time limit until when the task has to be completedplayer - who is working on the taskpublic void finished(IEldermanTask task)
IEldermanOfficefinished in interface IEldermanOfficetask - completed taskCopyright © 2011-2015 Sahits GmbH. All Rights Reserved.