Class to build a quest from a plan created by a QuestGenerator. More...
Public Member Functions | |
virtual Quest | ConvertPlanToQuest (QuestEntity entity, StringField group, PlanStep goal, Motive motive, Plan plan, bool requireReturnToComplete, List< QuestContent > rewardsUIContents, List< RewardSystem > rewardSystems) |
Converts a plan generated by QuestGenerator into a quest. | |
Protected Member Functions | |
virtual void | BuildTitle (PlanStep goal, string mainTargetDescriptor, out string title, out string questID) |
Determine the quest's title and quest ID. | |
virtual void | SetMainInfo (QuestBuilder questBuilder, string questID, string title, StringField group, PlanStep goal) |
Sets the quest's main info. | |
virtual void | AddOfferText (QuestBuilder questBuilder, string mainTargetEntity, string mainTargetDescriptor, string domainName, PlanStep goal, Motive motive) |
Adds the quest's offer text . | |
virtual void | AddRewards (QuestBuilder questBuilder, QuestEntity entity, PlanStep goal, List< QuestContent > rewardsUIContents, List< RewardSystem > rewardSystems) |
Uses a list of reward systems to add rewards to the quest builder that are commensurate with the difficulty of the quest. | |
virtual void | AddQuestHeadings (QuestBuilder questBuilder, PlanStep goal) |
Adds quest heading text to the main quest's Dialogue, Journal, and HUD categories. | |
virtual void | AddQuestHeading (QuestBuilder questBuilder, QuestContentCategory category, bool addToSuccessfulList) |
Adds quest heading text to a specific UI category's active state (and possibly also its successful state). | |
virtual void | AddSuccessfulText (QuestBuilder questBuilder, string mainTargetEntity, string mainTargetDescriptor, string domainName, PlanStep goal) |
Adds text to show in UIs after a quest has been successfully completed. | |
virtual QuestNode | AddSteps (QuestBuilder questBuilder, string domainName, PlanStep goal, Plan plan) |
Adds the plan's steps. | |
virtual void | AddStepCondition (QuestBuilder questBuilder, QuestNode conditionNode, string targetEntity, string targetDescriptor, string domainName, HashSet< string > counterNames, out string counterName, out int requiredCounterValue, PlanStep goal, PlanStep step) |
virtual QuestMessageParticipant | GetSpecifier (StringField specifierID) |
virtual QuestMessageParticipant | GetSpecifier (QuestMessageParticipant specifier, StringField specifierID) |
virtual void | AddStepNodeText (QuestBuilder questBuilder, QuestNode conditionNode, QuestStateInfo state, string targetEntity, string targetDescriptor, string domainName, string counterName, int requiredCounterValue, PlanStep step, ActionStateText actionStateText) |
Adds the text for a step. | |
virtual void | AddStepNodeText (QuestBuilder questBuilder, QuestNode conditionNode, QuestStateInfo state, string targetEntity, string targetDescriptor, string domainName, string counterName, int requiredCounterValue, PlanStep step, ActionStateText actionStateText, bool isLastStepCompletion) |
Adds the text for a step. | |
virtual QuestNode | AddReturnNode (QuestBuilder questBuilder, QuestNode previousNode, QuestEntity entity, string mainTargetEntity, string mainTargetDescriptor, string domainName, PlanStep goal, int rewardsContentIndex=9999) |
Adds a final "return to quest giver" step. | |
virtual void | AddReturnNodeText (QuestBuilder questBuilder, QuestNode returnNode, QuestGiver questGiver, string mainTargetEntity, string mainTargetDescriptor, string domainName, PlanStep goal, string hudText) |
Adds UI content to the return node. | |
virtual void | AddReturnNodeAlert (QuestBuilder questBuilder, QuestNode returnNode, List< QuestAction > actionList, string hudText) |
Adds an alert action to the return node. | |
virtual void | AddReturnNodeIndicators (QuestBuilder questBuilder, QuestNode returnNode, List< QuestAction > actionList, QuestEntity entity) |
Adds actions to set up the quest giver's quest indicators to the return node. | |
virtual void | AddRewardsNode (QuestBuilder questBuilder, int rewardsContentIndex=9999) |
Adds rewards text content to unconnected node at end so it appears in journal. | |
virtual string | ReplaceStepTags (string s, string targetEntity, string targetDescriptor, string domainName, string counterName, int counterValue) |
Replaces special tags that are specific to generated quests. | |
virtual void | AddTagsToDictionary (TagDictionary tagDictionary, PlanStep goal) |
Class to build a quest from a plan created by a QuestGenerator.
If you want your generators to build quests differently, define a subclass. Then create an instance of the subclass and assign it to the QuestGeneratorEntity's questGenerator.planToQuestBuilder property.
|
inlineprotectedvirtual |
Adds the quest's offer text .
questBuilder | QuestBuilder. |
mainTargetEntity | Target of the quest. |
mainTargetDescriptor | Descriptor of the target (with count). |
domainName | Domain where the target is located. |
goal | Final step to complete quest. |
motive | Motive for goal. |
|
inlineprotectedvirtual |
Adds quest heading text to a specific UI category's active state (and possibly also its successful state).
questBuilder | QuestBuilder. |
category | Category for which to add text. |
addToSuccessfulList | If true, add content to the successful state. |
|
inlineprotectedvirtual |
Adds quest heading text to the main quest's Dialogue, Journal, and HUD categories.
questBuilder | QuestBuilder. |
goal | Goal step, which may contain completion text. |
|
inlineprotectedvirtual |
Adds a final "return to quest giver" step.
Reimplemented in PixelCrushers.QuestMachine.InventoryProPlanToQuestBuilder, and PixelCrushers.QuestMachine.uSurvivalPlanToQuestBuilder.
|
inlineprotectedvirtual |
Adds an alert action to the return node.
|
inlineprotectedvirtual |
Adds actions to set up the quest giver's quest indicators to the return node.
|
inlineprotectedvirtual |
Adds UI content to the return node.
|
inlineprotectedvirtual |
Uses a list of reward systems to add rewards to the quest builder that are commensurate with the difficulty of the quest.
questBuilder | QuestBuilder to receive reward offers. |
entity | Quest giver entity. |
goal | Goal step (determines quest difficulty). |
rewardsUIContents | Text to introduce rewards. |
rewardSystems | Reward systems from which to get rewards. |
|
inlineprotectedvirtual |
Adds rewards text content to unconnected node at end so it appears in journal.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
Adds the text for a step.
Now calls variant that has isLastStepCompletion parameter, passing false.
|
inlineprotectedvirtual |
Adds the text for a step.
API change: Added isLastStep.
|
inlineprotectedvirtual |
Adds the plan's steps.
questBuilder | QuestBuilder. |
domainName | Main target's domain. |
goal | Goal step. |
plan | List of steps that end with goal step. |
|
inlineprotectedvirtual |
Adds text to show in UIs after a quest has been successfully completed.
questBuilder | QuestBuilder. |
mainTargetEntity | Main target entity that quest is about. |
mainTargetDescriptor | Target descriptor (with count). |
domainName | Target's domain. |
goal | Goal step in quest. |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
Determine the quest's title and quest ID.
By default, it's set to goal action + main target (e.g., "Kill" + "3 Orcs").
|
inlinevirtual |
Converts a plan generated by QuestGenerator into a quest.
entity | Entity generating the quest (e.g., QuestGiver). |
group | Optional quest group under which to categorize this quest. |
goal | Final step to accomplish quest. |
motive | Motive for the goal. |
plan | Steps required to complete the goal step. |
requireReturnToComplete | If true, add a quest node that requires quester to return to entity. |
rewardsUIContents | UI content to show in the rewards offer section. |
rewardSystems | Reward systems to use to |
Reimplemented in PixelCrushers.QuestMachine.InventoryProPlanToQuestBuilder, and PixelCrushers.QuestMachine.uSurvivalPlanToQuestBuilder.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
Replaces special tags that are specific to generated quests.
s | Text to modify |
targetEntity | Target entity name. |
targetDescriptor | Target descriptor (including count). |
domainName | Domain name. |
counterName | Counter name. |
counterValue | Counter value. |
|
inlineprotectedvirtual |
Sets the quest's main info.
questBuilder | QuestBuilder |
questID | Quest ID. |
title | Quest title. |
group | Quest group. |
goal | Final step to accomplish the plan. |