Rogue: Savage Rats, a retro-themed dungeon crawler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rogue-savage-rats/src/mightypork/rogue/world/gui/interaction/MapInteractionPlugin.java

32 lines
687 B

10 years ago
package mightypork.rogue.world.gui.interaction;
import mightypork.gamecore.eventbus.events.Updateable;
import mightypork.gamecore.util.math.constraints.vect.Vect;
import mightypork.rogue.world.events.PlayerStepEndListener;
10 years ago
import mightypork.rogue.world.gui.MapView;
public abstract class MapInteractionPlugin implements Updateable, PlayerStepEndListener {
protected final MapView mapView;
public MapInteractionPlugin(MapView mapView)
{
super();
this.mapView = mapView;
}
public abstract boolean onClick(Vect mouse, int button, boolean down);
public abstract boolean onKey(int key, boolean down);
@Override
public abstract void update(double delta);
}