Skip to content

Refactoring Entities #3

@mlaskus

Description

@mlaskus

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions