public interface IEldermanOffice
| 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.
|
List<IEldermanTask> |
getTasks()
Retrieve the list of available tasks.
|
Optional<ICityViolation> |
getViolation()
Get the current violation.
|
List<IAcceptedEldermanTask> |
getWorkedOnTasks()
Retrieve the tasks that are currently worked on.
|
void |
update()
Monthly check if there should be new tasks or violations added.
|
List<IEldermanTask> getTasks()
Optional<ICityViolation> getViolation()
void update()
void addTask(IEldermanTask task, org.joda.time.DateTime limit, IPlayer player)
limit - time limit until when the task has to be completedtask - that is to be fullfiled.player - who is working on the taskvoid finished(IEldermanTask task)
task - completed taskList<IAcceptedEldermanTask> getWorkedOnTasks()
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.