public abstract class Resource extends NeutralImpl
Modifier | Constructor and Description |
---|---|
protected |
Resource(Unit unit,
Map map) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
abstract int |
getAmount()
Returns the current amount of resources for this Resource (same as unit()->getResources).
|
abstract int |
getInitialAmount()
Returns the initial amount of resources for this Resource (same as
unit()->getInitialResources).
|
int |
hashCode() |
getBlockedAreas, getBottomRight, getCenter, getLastStacked, getMap, getNextStacked, getSize, getTopLeft, getUnit, isBlocking, isSameUnitTypeAs, setBlocking, simulateCPPObjectDestructor
public abstract int getInitialAmount()
public abstract int getAmount()
public boolean equals(java.lang.Object object)
equals
in class NeutralImpl
public int hashCode()
hashCode
in class NeutralImpl