|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimogl.resource.AbstractResource
simogl.resource.Gold
public class Gold
Represents the resource "gold"
Constructor Summary | |
---|---|
Gold(int amount,
long intervall)
Creates a object of the resource gold with the specified initial amount |
Method Summary | |
---|---|
void |
update(long elapsedTime)
Recalculates the available amount of the resource |
Methods inherited from class simogl.resource.AbstractResource |
---|
decrease, getCurrentAmount, getUpdateIntervall, increase, setCurrentAmount, setUpdateIntervall |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Gold(int amount, long intervall)
amount
- initial amount of goldintervall
- intervall of time in miliseconds in which
calculations on resources will be performed, effecting the
amount of the player's resourcesMethod Detail |
---|
public void update(long elapsedTime)
AbstractResource
update
in class AbstractResource
elapsedTime
- time between two calls of the updater thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |