This commit is contained in:
@@ -2,6 +2,18 @@ package pm.macro;
|
||||
|
||||
import pm.Button;
|
||||
|
||||
public interface Event {
|
||||
public Button button = null;
|
||||
public abstract class Event {
|
||||
protected Button button;
|
||||
|
||||
public Event(Button button) {
|
||||
this.button = button;
|
||||
}
|
||||
|
||||
public Button getButton() {
|
||||
return button;
|
||||
}
|
||||
|
||||
public boolean equals(Event event) {
|
||||
return event.getClass().equals(getClass()) && event.getButton().equals(button); // Todo: controleren of equals goed werkt bij buttons van verschillende typen
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user