Entity interface should be an abstract class rather than an interface, as Entities mostly share implementations of methods.
Consider an interface for clickable objects
public interface Clickable {
boolean onDown();
boolean onMove();
boolean onUp();
}
Clickable objects touched with an event, can be iterated over according to the inverse of their draw order. If the raised event returns true, the event is consumed and propagation to objects below stops.
Entity interface should be an abstract class rather than an interface, as Entities mostly share implementations of methods.
Consider an interface for clickable objects
Clickable objects touched with an event, can be iterated over according to the inverse of their draw order. If the raised event returns true, the event is consumed and propagation to objects below stops.