Class ConcurrentState
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.people.impl.BaseTavernPerson
-
- ch.sahits.game.openpatrician.model.people.impl.ConcurrentState
-
- All Implemented Interfaces:
IConcurrent
,IPerson
,ISideRoomPerson
,ITavernPerson
public class ConcurrentState extends BaseTavernPerson implements IConcurrent
Implementation of a concurrent. Every city can have a concurrent 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 IPlayer
clientPlayer
private IPlayer
concurrentPlayer
private int
premium
-
Fields inherited from class ch.sahits.game.openpatrician.model.people.impl.BaseTavernPerson
date
-
-
Constructor Summary
Constructors Constructor Description ConcurrentState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getConcurrentName()
Name of the concurrent who is to be harmed.java.lang.String
getName()
Name of the client-
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.IConcurrent
getClientPlayer, getConcurrentPlayer, getPremium, setClientPlayer, setConcurrentPlayer, setPremium
-
Methods inherited from interface ch.sahits.game.openpatrician.model.people.ITavernPerson
arrive, getArrivalDate, getMaxDaysAbsent, getMaxDaysPresent, getNumberOfDaysSinceArrival, isPresent, isPresentProperty, leave, setCity
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:IConcurrent
Name of the client- Specified by:
getName
in interfaceIConcurrent
- Returns:
- name of the concurrent
-
getConcurrentName
public java.lang.String getConcurrentName()
Description copied from interface:IConcurrent
Name of the concurrent who is to be harmed.- Specified by:
getConcurrentName
in interfaceIConcurrent
- Returns:
- of the concurrent
-
-