us.asciiroth.client.terrain
Class VendingMachine
java.lang.Object
us.asciiroth.client.core.AbstractPiece
us.asciiroth.client.terrain.AbstractTerrain
us.asciiroth.client.terrain.VendingMachine
- All Implemented Interfaces:
- Piece, Terrain
public class VendingMachine
- extends AbstractTerrain
Asciiroth's means of supporting shops. This piece works like an Exchanger,
but it only excepts gold coins in variable amounts (and it doesn't put the
gold on the other side... the gold is just gone).
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERIALIZER
public static final Serializer<VendingMachine> SERIALIZER
- Type serializer.
VendingMachine
public VendingMachine(int cost)
onEnter
public void onEnter(Event event,
Player player,
Cell cell,
Direction dir)
- Description copied from interface:
Terrain
- Agent attempting to leave the
from
cell, heading
toward the to
cell. The terrain being used is the
terrain of the to
cell. The agent is still in the
from
- Specified by:
onEnter
in interface Terrain
- Overrides:
onEnter
in class AbstractTerrain
© 2009 Alx Dark