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
-
-
Constructor Summary
Constructors Constructor Description AldermanOffice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTask(IAldermanTask task, java.time.LocalDateTime limit, IPlayer player)Add a new task that is currently worked on.voidfinished(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
-
-
-
-
Method Detail
-
addTask
public void addTask(IAldermanTask task, java.time.LocalDateTime limit, IPlayer player)
Description copied from interface:IAldermanOfficeAdd a new task that is currently worked on.- Specified by:
addTaskin 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:IAldermanOfficeTask is finished, so remove it from the list.- Specified by:
finishedin interfaceIAldermanOffice- Parameters:
task- completed task
-
-