9 package micropolisj.engine;
11 class TranslatedToolEffect
implements ToolEffectIfc
13 public final ToolEffectIfc base;
17 TranslatedToolEffect(ToolEffectIfc base,
int dx,
int dy)
25 public int getTile(
int x,
int y)
27 return base.getTile(x+dx, y+dy);
31 public void makeSound(
int x,
int y, Sound sound)
33 base.makeSound(x+dx, y+dy, sound);
37 public void setTile(
int x,
int y,
int tileValue)
39 base.setTile(x+dx, y+dy, tileValue);
43 public void spend(
int amount)
49 public void toolResult(ToolResult tr)
54 public int getPlayerID() {
55 return base.getPlayerID();