Class WarehouseTenant
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.people.impl.BaseTavernPerson
-
- ch.sahits.game.openpatrician.model.people.impl.WarehouseTenant
-
- All Implemented Interfaces:
IPerson
,ISideRoomPerson
,ITavernPerson
,IWarehouseTenant
public class WarehouseTenant extends BaseTavernPerson implements IWarehouseTenant
Implementation of a warehouse tenant. Every city can have a warehouse tenant and is referenced through it's TavernEngine.- Author:
- Andi Hotz, (c) Sahits GmbH, 2013 Created on Jan 20, 2013
-
-
Field Summary
Fields Modifier and Type Field Description private int
amount
private java.lang.String
name
-
Fields inherited from class ch.sahits.game.openpatrician.model.people.impl.BaseTavernPerson
date
-
-
Constructor Summary
Constructors Constructor Description WarehouseTenant()
WarehouseTenant(IWarehouseTenant tenant)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getRentPerWeek()
Retrieve the sum that will be payed per week.-
Methods inherited from class ch.sahits.game.openpatrician.model.people.impl.BaseTavernPerson
arrive, getMaxDaysAbsent, getMaxDaysPresent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave
-
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.people.ITavernPerson
arrive, getArrivalDate, getMaxDaysAbsent, getMaxDaysPresent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave, setCity
-
Methods inherited from interface ch.sahits.game.openpatrician.model.people.IWarehouseTenant
getAmount, getName, setAmount, setName
-
-
-
-
Constructor Detail
-
WarehouseTenant
public WarehouseTenant()
-
WarehouseTenant
public WarehouseTenant(IWarehouseTenant tenant)
-
-
Method Detail
-
getRentPerWeek
public int getRentPerWeek()
Description copied from interface:IWarehouseTenant
Retrieve the sum that will be payed per week.- Specified by:
getRentPerWeek
in interfaceIWarehouseTenant
- Returns:
- weekly rent
-
-