forked from MagicBane/Server
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
601 B
27 lines
601 B
package engine.QuestSystem; |
|
|
|
import engine.objects.ItemBase; |
|
import engine.objects.NPC; |
|
import engine.objects.PlayerCharacter; |
|
|
|
import java.util.ArrayList; |
|
|
|
public class QuestObject { |
|
|
|
public String QuestName; |
|
public String description; |
|
public int objectiveCount; |
|
public int objectiveCountRequired; |
|
public ArrayList<String> progressionNames; |
|
public PlayerCharacter owner; |
|
|
|
public QuestObject(){ |
|
|
|
} |
|
public void tryProgress(String option){ |
|
if(this.progressionNames.contains(option)) |
|
this.objectiveCount++; |
|
else |
|
return; |
|
} |
|
}
|
|
|