|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimogl.resource.AbstractResource
simogl.resource.Food
public class Food
Represents the resource "food"
| Constructor Summary | |
|---|---|
Food(int amount,
long intervall)
Creates an object of the resource food 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 Food(int amount,
long intervall)
amount - initial amount of foodintervall - intervall of time in miliseconds in which
calculations on resources will be performed, effecting the
amount of the player's resources| Method Detail |
|---|
public void update(long elapsedTime)
AbstractResource
update in class AbstractResourceelapsedTime - time between two calls of the updater thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||