37 static bool activate(
Tracker *
t,
const std::string &
id, std::string *reason =
nullptr);
39 static bool canActivate(
Tracker *
t,
const std::string &
id, std::string *reason =
nullptr);
41 static std::string canActivateReason(
Tracker *
t,
const std::string &
id);
44 static void notify(
Tracker *
t,
const std::string &topic,
const std::string &
target,
int amount);
47 static bool claim(
Tracker *
t,
const std::string &
id, std::string *reason =
nullptr);
50 static bool reset(
Tracker *
t,
const std::string &
id);
52 static bool abandon(
Tracker *
t,
const std::string &
id);
54 static bool fail(
Tracker *
t,
const std::string &
id,
const std::string &reason);
60 static bool isObjectivesSatisfied(
const Tracker &
t,
const std::string &
id);
67 static std::string dialoguePhase(
const Tracker &
t,
const std::string &questId);
72 static std::string dialogueConversationId(
const Tracker &
t,
const std::string &questId,
73 const std::string &dialogueBase);
81 static int applyClock(
Tracker *
t,
double nowSeconds);
88 static int refreshByKey(
Tracker *
t,
const std::string &refreshKey,
const std::string &
stamp);
91 static void pollEvents(
Tracker *
t, std::vector<QuestEvent> &
out);