- Aug 8, 2020
- 2,710
- 7,775
Well thats just stupid, as I already said.Java enums are wild compared to C/C++/C#, and Inno abuses the hell of out them.
It have much more sense to have something like this for quests
Java:
class Player
{
private vector or what its in java, List???<QuestItem> active quests, finished quests;
}
class QuestItem
{
private QuestTreeNode starting quest point;
private QuestTreeNode current quest node;
public enum get_quest_status() const {}
public void try_update_quest(dump all info about player here) {}
}
class QuestTreeNode
{
private QuestTreeNode owner;
private List<QuestTreeNode> possible routes;
public void can_quest_progress(player inventory/position/etc) {}
}