jurpe.world
Class Inn

java.lang.Object
  extended by jurpe.world.Inn

public class Inn
extends java.lang.Object

The Inn is the place to rest.

Author:
Alessio Saltarin

Constructor Summary
Inn(int tLevel)
          Constructor.
Inn(int tLevel, int cPerHour)
          Constructor.
 
Method Summary
 int getCostPerHour()
          Return cost per hour in $
 int getDueFee()
          Get import due to pay the Inn fee.
 void restoreTime()
          Usually you call this method after the character has successfully paid the fee.
 void spendTime(int minutes)
          Add some minutes to the time spent by the character in this Inn.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Inn

public Inn(int tLevel,
           int cPerHour)
Constructor.

Parameters:
tLevel - Technology level of this world
cPerHour - Cost per Hour in this Inn
See Also:
GameWorld

Inn

public Inn(int tLevel)
Constructor.

Parameters:
tLevel - Technology level of this world
See Also:
GameWorld
Method Detail

spendTime

public void spendTime(int minutes)
Add some minutes to the time spent by the character in this Inn.

Parameters:
minutes - Minutes spent in the Inn

getCostPerHour

public int getCostPerHour()
Return cost per hour in $

Returns:
cost per hour

getDueFee

public int getDueFee()
Get import due to pay the Inn fee.

Returns:
fee to pay when done at the Inn

restoreTime

public void restoreTime()
Usually you call this method after the character has successfully paid the fee. It restores to zero the time spent at the Inn


Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net