package sig.map;

import sig.engine.String;
import sig.events.Event;
import sig.events.SpawnEvent;
import sig.objects.Erinoah;

public enum DataTile {
    NULL, //File is populated by 0s by default. This represents nothing.
    BUN1(new SpawnEvent("Spawns a blue bun",Erinoah.class)),
    BUN2(new SpawnEvent("Spawns a green bun",Erinoah.class)),
    BUN3(new SpawnEvent("Spawns a yellow bun",Erinoah.class)),
    BUN4(new SpawnEvent("Spawns a red bun",Erinoah.class));

    String description;
    Event event;

    DataTile(){
        this.description=new String("");
    }
    DataTile(Event e) {
        this.description=e.getDescription();
        this.event=e;
    }
    public String getDescription() {
        return description;
    }
    public boolean perform(int x, int y) {
        return event.perform(x, y);
    }
}
