Package zombie.Quests
Class Quest
java.lang.Object
zombie.Quests.Quest
- All Implemented Interfaces:
Completable
public class Quest extends java.lang.Object implements Completable
-
Field Summary
Fields Modifier and Type Field Description boolean
Complete
boolean
Failed
int
NumQuestTasks
java.util.Stack
OnCompleteActions
java.util.Stack
QuestTaskStack
boolean
Unlocked
-
Constructor Summary
Constructors Constructor Description Quest(java.lang.String InternalName, java.lang.String QuestNameString)
-
Method Summary
Modifier and Type Method Description QuestTask
AddQuestTask_EquipItem(java.lang.String InternalName, java.lang.String TaskNameString, java.lang.String ItemType)
QuestTask
AddTask_FindItem(java.lang.String InternalName, java.lang.String TaskNameString, java.lang.String ItemType, int NumRequired)
QuestTask
AddTask_GiveItem(java.lang.String InternalName, java.lang.String TaskNameString, java.lang.String TaskItemName, java.lang.String TaskCharacterName)
QuestTask
AddTask_GotoLocation(java.lang.String InternalName, java.lang.String TaskNameString, int x, int y, int z)
QuestTask
AddTask_TalkTo(java.lang.String InternalName, java.lang.String TaskNameString, java.lang.String TaskCharacterName)
QuestTask
AddTask_UseItemOn(java.lang.String InternalName, java.lang.String TaskNameString, java.lang.String ItemType, ScriptCharacter TaskCharacter)
QuestTask
FindTask(java.lang.String InternalName)
java.lang.String
getInternalName()
java.lang.String
getName()
int
getNumTasks()
java.lang.String
getTaskName(int i)
boolean
IsComplete()
boolean
IsFailed()
boolean
TaskComplete(int i)
boolean
TaskFailed(int i)
void
Update()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
Complete
public boolean Complete -
Failed
public boolean Failed -
NumQuestTasks
public int NumQuestTasks -
OnCompleteActions
public java.util.Stack OnCompleteActions -
QuestTaskStack
public java.util.Stack QuestTaskStack -
Unlocked
public boolean Unlocked
-
-
Constructor Details
-
Quest
public Quest(java.lang.String InternalName, java.lang.String QuestNameString)
-
-
Method Details
-
AddQuestTask_EquipItem
public QuestTask AddQuestTask_EquipItem(java.lang.String InternalName, java.lang.String TaskNameString, java.lang.String ItemType) -
AddTask_FindItem
public QuestTask AddTask_FindItem(java.lang.String InternalName, java.lang.String TaskNameString, java.lang.String ItemType, int NumRequired) -
AddTask_GiveItem
public QuestTask AddTask_GiveItem(java.lang.String InternalName, java.lang.String TaskNameString, java.lang.String TaskItemName, java.lang.String TaskCharacterName) -
AddTask_GotoLocation
public QuestTask AddTask_GotoLocation(java.lang.String InternalName, java.lang.String TaskNameString, int x, int y, int z) -
AddTask_TalkTo
public QuestTask AddTask_TalkTo(java.lang.String InternalName, java.lang.String TaskNameString, java.lang.String TaskCharacterName) -
AddTask_UseItemOn
public QuestTask AddTask_UseItemOn(java.lang.String InternalName, java.lang.String TaskNameString, java.lang.String ItemType, ScriptCharacter TaskCharacter) -
FindTask
-
getInternalName
public java.lang.String getInternalName() -
getName
public java.lang.String getName() -
getNumTasks
public int getNumTasks() -
getTaskName
public java.lang.String getTaskName(int i) -
IsComplete
public boolean IsComplete()- Specified by:
IsComplete
in interfaceCompletable
-
IsFailed
public boolean IsFailed()- Specified by:
IsFailed
in interfaceCompletable
-
TaskComplete
public boolean TaskComplete(int i) -
TaskFailed
public boolean TaskFailed(int i) -
Update
public void Update()
-