package Megumin.Actions;

import Megumin.Nodes.Sprite;

class Event {
    private Sprite sprite;
    private Action action;
    private String sceneName;

    Event() {
    }

    Event(Sprite sprite, Action action) {
        this(sprite, action, "");
    }

    Event(Sprite sprite, Action action, String sceneName) {
        this.sprite = sprite;
        this.action = action;
        this.sceneName = sceneName;
    }

    Event(Event event) {
        sprite = event.sprite;
        action = event.action;
    }

    public Sprite getSprite() {
        return sprite;
    }

    public void setSprite(Sprite sprite) {
        this.sprite = sprite;
    }

    public Action getAction() {
        return action;
    }

    public void setAction(Action action) {
        this.action = action;
    }

    public String getSceneName() {
        return sceneName;
    }

    public void setSceneName(String sceneName) {
        this.sceneName = sceneName;
    }

    @Override
    public boolean equals(Object o) {
        return ((Event)o).getSprite().equals(sprite) && ((Event)o).getAction().equals(action);
    }
}
package Megumin.Actions;

import Megumin.Nodes.Sprite;

class Event {
    private Sprite sprite;
    private Action action;
    private String sceneName;

    Event() {
    }

    Event(Sprite sprite, Action action) {
        this(sprite, action, "");
    }

    Event(Sprite sprite, Action action, String sceneName) {
        this.sprite = sprite;
        this.action = action;
        this.sceneName = sceneName;
    }

    Event(Event event) {
        sprite = event.sprite;
        action = event.action;
        sceneName = event.sceneName;
    }

    public Sprite getSprite() {
        return sprite;
    }

    public void setSprite(Sprite sprite) {
        this.sprite = sprite;
    }

    public Action getAction() {
        return action;
    }

    public void setAction(Action action) {
        this.action = action;
    }

    public String getSceneName() {
        return sceneName;
    }

    public void setSceneName(String sceneName) {
        this.sceneName = sceneName;
    }

    @Override
    public boolean equals(Object o) {
        return ((Event)o).getSprite().equals(sprite) && ((Event)o).getAction().equals(action);
    }
}
fix event