public class BuildingResourceAcquireHook extends java.lang.Object implements AcquireHook
| Modifier and Type | Field and Description |
|---|---|
protected int |
resourceID |
| Constructor and Description |
|---|
BuildingResourceAcquireHook() |
BuildingResourceAcquireHook(int resourceID) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acquired(OID activatorOid,
AgisItem item)
Adds the item to the Building Resources map for the player and returns true telling the item to be
destroyed.
|
int |
getResourceID() |
static void |
sendBuildingResources(OID oid,
java.util.HashMap<java.lang.String,java.lang.Integer> resources)
Sends down the map of Building Resources the player has to the client.
|
void |
setResourceID(int resourceID) |
java.lang.String |
toString() |
public BuildingResourceAcquireHook()
public BuildingResourceAcquireHook(int resourceID)
public void setResourceID(int resourceID)
public int getResourceID()
public boolean acquired(OID activatorOid, AgisItem item)
acquired in interface AcquireHookpublic static void sendBuildingResources(OID oid, java.util.HashMap<java.lang.String,java.lang.Integer> resources)
oid - resources - public java.lang.String toString()
toString in class java.lang.Object