2011-05-13 04:24:42 -04:00
|
|
|
package org.moparscape.msc.gs.quest;
|
2011-04-27 01:44:26 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Handles the list of possible quest triggers
|
|
|
|
*/
|
|
|
|
public enum QuestAction {
|
2011-06-25 01:44:53 -04:00
|
|
|
KILLED_NPC("The player killed a NPC", 0), TALKED_NPC(
|
|
|
|
"The player talked to a NPC", 1), USED_OBJECT(
|
|
|
|
"The player used an object", 2), USED_ITEM(
|
|
|
|
"The player used an inventory item", 3), ITEM_PICKED_UP(
|
|
|
|
"The player picked up an item", 4), ITEM_USED_ON_OBJECT(
|
|
|
|
"The player used an item on an object", 5), ITEM_USED_ON_ITEM(
|
|
|
|
"The player used an item on another item", 6), ATTACKED_NPC(
|
|
|
|
"The player attacked an NPC", 7);
|
2011-04-27 01:44:26 -04:00
|
|
|
|
2011-06-25 01:44:53 -04:00
|
|
|
private String description = "";
|
|
|
|
private int id = -1;
|
2011-04-27 01:44:26 -04:00
|
|
|
|
2011-06-25 01:44:53 -04:00
|
|
|
public String toString() {
|
|
|
|
return description + " (id " + id + ")";
|
|
|
|
}
|
2011-04-27 01:44:26 -04:00
|
|
|
|
2011-06-25 01:44:53 -04:00
|
|
|
public int getID() {
|
|
|
|
return id;
|
|
|
|
}
|
2011-04-27 01:44:26 -04:00
|
|
|
|
2011-06-25 01:44:53 -04:00
|
|
|
private QuestAction(String description, int id) {
|
|
|
|
this.description = description;
|
|
|
|
this.id = id;
|
|
|
|
}
|
2011-04-27 01:44:26 -04:00
|
|
|
}
|