|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This convenience interface allows the implementing object to be called when someone drops something in a square that the object overlaps. You can also do this using a hook, but this is easier.
Don't confuse this with PickupInterest, which you use to know when *you* have been picked up or dropped.
Method Summary | |
void |
objectDropped(Commandable agent,
GameObject obj,
int x,
int y)
Notification that an agent used the "drop" command to drop something on the ground in a square occupied by this object. |
Method Detail |
public void objectDropped(Commandable agent, GameObject obj, int x, int y)
agent
- the agent doing the dropobj
- the object being droppedx
- the x locationy
- the y location
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |