|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Common.DefaultQuest
public class DefaultQuest
| Nested Class Summary | |
|---|---|
protected static class |
DefaultQuest.JScriptQuest
|
static class |
DefaultQuest.MysteryData
MysteryData is a helper class for QuestState that stores quest state variables for the parsing of quests that make use of the "mystery" variables (mystery as in Sherlock Holmes, not as in unknown). |
static class |
DefaultQuest.PreservedQuestObject
Objects selected for use by a quest can be preserved or released from quest-state to quest-state. |
static class |
DefaultQuest.QuestState
A quest state class maps the parse-state of a quest, since quest parsing is highly state dependent, but the state is not explicit in the script itself. |
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Common.interfaces.Quest |
|---|
Quest.QuestScript |
| Field Summary | |
|---|---|
protected java.lang.String |
author
|
protected static java.lang.String[] |
CCODES
|
protected java.lang.String |
displayName
|
protected boolean |
durable
|
protected int |
duration
|
DVector |
internalFiles
|
protected long |
lastStartDateTime
|
protected int |
maxWait
|
protected int |
minPlayers
|
protected int |
minWait
|
protected java.lang.String |
name
|
protected java.lang.String |
playerMask
|
protected java.lang.String |
rawScriptParameter
|
protected int |
runLevel
|
protected int |
spawn
|
protected java.lang.String |
startDate
|
protected java.util.Map<java.lang.String,java.lang.Long> |
stepEllapsedTimes
|
protected int |
ticksRemaining
|
protected int |
waitRemaining
|
protected java.util.Map<java.lang.String,java.lang.Long> |
winners
|
| Fields inherited from interface com.planet_ink.coffee_mud.Common.interfaces.Quest |
|---|
FLAG_SUSPENDED, MYSTERY_QCODES, QCODES, QOBJS, ROOM_REFERENCE_QCODES, SPAWN_ANY, SPAWN_DESCS, SPAWN_FIRST, SPAWN_NO |
| Constructor Summary | |
|---|---|
DefaultQuest()
|
|
| Method Summary | |
|---|---|
java.lang.String |
author()
Returns the author of the quest |
void |
autostartup()
After a quest is added to the list of quests, this method is called to put the quest into its initial wait state, and get it thread time. |
void |
cleanQuestStep()
|
int |
compareTo(CMObject o)
|
CMObject |
copyOf()
Similar to Cloneable.clone(), but does its best to make sure that any internal objects to this class are also copyOfed. |
void |
declareWinner(java.lang.String name)
Registers the given player name as having won this quest. |
java.lang.String |
displayName()
Returns the friendly display name of the quest |
int |
duration()
Returns the duration, in ticks of this quest. |
boolean |
enterDormantState()
A dormant state is the state where a quest is no longer running, but is not, or has not yet, been scheduled to wait for another run time. |
void |
enterRunningState()
|
protected void |
errorOccurred(DefaultQuest.QuestState q,
boolean quietFlag,
java.lang.String msg)
|
protected void |
filterOutThoseInUse(java.util.List<? extends Environmental> choices,
java.lang.String choicesStr,
DefaultQuest.QuestState q,
boolean isQuiet,
boolean reselect)
|
protected int |
getCodeNum(java.lang.String code)
|
java.lang.Object |
getDesignatedObject(java.lang.String named)
From the given official quest variable name, it derives either an object or a vector of objects that reflect it. |
long |
getFlags()
Returns flag bitmap |
Quest |
getMainQuestObject()
|
int |
getObjectInUseIndex(java.lang.String name)
Returns the index of a room, mob, or item of the given name in use by this quest. |
Item |
getQuestItem(int i)
Returns the item in use by this quest at the given index |
int |
getQuestItemIndex(java.lang.String name)
Returns the index of a item of the given name in use by this quest |
java.lang.String |
getQuestItemName(int i)
Returns the name of the item in use by this quest at the given index |
MOB |
getQuestMob(int i)
Returns the mob in use by this quest at the given index |
int |
getQuestMobIndex(java.lang.String name)
Returns the index of a mob of the given name in use by this quest |
java.lang.String |
getQuestMobName(int i)
Returns the name of the mob in use by this quest at the given index |
Room |
getQuestRoom(int i)
Returns the room in use by this quest at the given index |
java.lang.String |
getQuestRoomID(int i)
Returns the id of the room in use by this quest at the given index |
int |
getQuestRoomIndex(java.lang.String roomID)
Returns the index of a room of the given id in use by this quest |
Environmental |
getQuestThing(java.util.Iterator<? extends Environmental> e,
int dex,
CMClass.CMObjectType type,
int[] num)
|
int |
getQuestThingIndex(java.util.Iterator<? extends Environmental> i,
java.lang.String name,
CMClass.CMObjectType type,
int[] num)
|
java.lang.StringBuffer |
getResourceFileData(java.lang.String named,
boolean showErrors)
Quest scripts can have files of various sorts embedded in them. |
int |
getSaveStatIndex()
Returns the index into the stat codes array where extra savable fields begins. |
int |
getSpawn()
Returns the flag denoting whether this quest spawns new ones from its several steps and if so, by what method. |
java.lang.String |
getStat(java.lang.String code)
An alternative means of retreiving the values of those fields on this object which are modifiable at run-time by builders. |
java.lang.String[] |
getStatCodes()
Returns an array of the string names of those fields which are modifiable on this object at run-time by builders. |
int |
getTickStatus()
A coded status for this object during the period where its tick method is being called. |
java.util.Map<java.lang.String,java.lang.Long> |
getWinners()
Returns the names of all the winners of this quest |
java.lang.String |
getWinnerStr()
Returns a semicolon delimited string of all the winners of this quest |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
void |
initializeClass()
Called ONCE after all objects are loaded, but before the map is read in during initialization. |
void |
internalQuestDelete()
If any files are embedded and cached inside this quest script, this method will clear them from resources and memory. |
boolean |
isCopy()
Returns whether this quest object is a spawned copy |
boolean |
isObjectInUse(Environmental E)
Returns whether the exact given object is in use by this quest. |
boolean |
isStat(java.lang.String code)
An alternative means of retreiving the values of those fields on this object which are modifiable at run-time by builders. |
int |
minPlayers()
The minimum number of players matching player criteria required before this quest will start |
int |
minsRemaining()
Returns the number of minutes before this quest will go from a running state to a stopped state. |
int |
minWait()
Returns the minimum number of ticks between attempts to run this quest. |
java.lang.String |
name()
Returns the unique name of the quest |
CMObject |
newInstance()
Returns a new instance of this class. |
java.util.Vector |
parseLoadScripts(java.lang.String text,
java.util.List oldArgs,
java.util.List args,
boolean showErrors)
|
void |
parseQuestScript(java.util.Vector script,
java.util.List args,
int startLine)
|
void |
parseQuestScriptWArgs(java.util.Vector script,
java.util.List args)
|
java.lang.String |
playerMask()
Returns the zappermask that determines who counts as an elligible player for the purposes of the minPlayer setting. |
void |
resetQuest(int firstPauseTicks)
this will stop executing of the quest script. |
boolean |
resetWaitRemaining(long ellapsedTime)
Sets the number of ticks before this quest will attempt to start. |
int |
runLevel()
Returns the run level. |
boolean |
running()
Returns whether this quest is in a running state |
void |
runtimeRegisterAbility(MOB mob,
java.lang.String abilityID,
java.lang.String parms,
boolean give)
they are called when you want the quest engine to be aware of a a quest-specific object thats being added to the map, so that it can be cleaned up later. |
void |
runtimeRegisterBehavior(PhysicalAgent behaving,
java.lang.String behaviorID,
java.lang.String parms,
boolean give)
Called when you want the quest engine to be aware of a quest specific object that is being added to the map, so that it can be cleaned up later. |
void |
runtimeRegisterEffect(PhysicalAgent affected,
java.lang.String abilityID,
java.lang.String parms,
boolean give)
Called when you want the quest engine to be aware of a quest specific object that is being added to the map, so that it can be cleaned up later. |
void |
runtimeRegisterObject(PhysicalAgent P)
Called when you want the quest engine to be aware of a quest specific object that is being added to the map, so that it can be cleaned up later. |
void |
runtimeRegisterStat(Environmental E,
java.lang.String stat,
java.lang.String parms,
boolean give)
|
boolean |
sameAs(DefaultQuest E)
|
java.lang.String |
script()
Returns the unparsed quest script as a single happy string. |
void |
setAuthor(java.lang.String newName)
Sets the author of the quest |
void |
setCopy(boolean truefalse)
Sets whether this quest object is a spawned copy |
void |
setDisplayName(java.lang.String newName)
Sets the friendly display name of the quest |
void |
setDuration(int newTicks)
Sets the duration, in ticks of this quest. |
void |
setFlags(long flags)
Sets the flag bitmap |
void |
setMinPlayers(int players)
Sets minimum number of players matching player criteria required before this quest will start |
void |
setMinWait(int wait)
Sets the minimum number of ticks between attempts to run this quest. |
void |
setName(java.lang.String newName)
Sets the unique name of the quest |
void |
setPlayerMask(java.lang.String mask)
Sets the zappermask that determines who counts as an elligible player for the purposes of the minPlayer setting. |
void |
setRunLevel(int level)
Sets the run level. |
boolean |
setScript(java.lang.String parm,
boolean showErrors)
Sets the quest script. |
void |
setSpawn(int spawnFlag)
Sets the flag denoting whether this quest spawns new ones from its several steps and if so, by what method. |
void |
setStartDate(java.lang.String newDate)
Sets the real-life start date of this quest. |
void |
setStartMudDate(java.lang.String newDate)
Sets the in-game mud start date of this quest. |
void |
setStat(java.lang.String code,
java.lang.String val)
An alternative means of setting the values of those fields on this object which are modifiable at run-time by builders. |
void |
setSuspended(boolean truefalse)
Sets whether this quest object is suspended. |
void |
setVars(java.util.List<?> script,
int startAtLine)
Accepts a pre-parsed quest script and extracts certain non-iterative variables, such as the quest name and similar variables. |
void |
setWaitInterval(int wait)
Sets the maximum ticks, above the minimum wait, that must go by before an attempt to run a quest. |
void |
setWinners(java.lang.String list)
Sets the list of player names that have won this quest |
boolean |
spawnQuest(java.lang.String script,
java.util.Vector baseVars,
boolean reTime)
|
java.lang.String |
startDate()
Returns the unique start date of the quest. |
boolean |
startQuest()
This will execute the quest script. |
boolean |
startQuestInternal()
|
protected boolean |
startQuestOnTime()
|
boolean |
stepQuest()
This method is called when a quest is done with a particular step in a multi-step quest. |
boolean |
stopping()
Returns whether this quest is in a midway stopping state |
void |
stopQuest()
this will stop executing of the quest script. |
void |
stopQuestInternal()
|
boolean |
suspended()
Returns whether this quest object is suspended. |
boolean |
tick(Tickable ticking,
int tickID)
this is the method which is called periodically by the threading engine. |
int |
ticksRemaining()
Returns the number of ticks before this quest will go from a running state to a stopped state. |
boolean |
waiting()
Returns whether this quest is in a wait state between runs |
int |
waitInterval()
Returns the maximum ticks, above the minimum wait, that must go by before an attempt to run a quest. |
int |
waitRemaining()
Returns the number of ticks before this quest will attempt to start. |
boolean |
wasWinner(java.lang.String name)
Returns whether a player of the given name has won this quest |
java.lang.Long |
whenLastWon(java.lang.String name)
Returns when a player of the given name last won this quest or null |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected java.lang.String author
protected java.lang.String displayName
protected java.lang.String startDate
protected int duration
protected java.lang.String rawScriptParameter
protected boolean durable
protected int minWait
protected int minPlayers
protected java.lang.String playerMask
protected int runLevel
protected int maxWait
protected int waitRemaining
protected int ticksRemaining
protected long lastStartDateTime
protected int spawn
public DVector internalFiles
protected final java.util.Map<java.lang.String,java.lang.Long> stepEllapsedTimes
protected final java.util.Map<java.lang.String,java.lang.Long> winners
protected static java.lang.String[] CCODES
| Constructor Detail |
|---|
public DefaultQuest()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectpublic java.lang.String name()
Quest
name in interface Questname in interface CMObjectname in interface TickableQuest.setName(String)public void setName(java.lang.String newName)
Quest
setName in interface QuestnewName - the unique name of the questQuest.name()public java.lang.String author()
Quest
author in interface QuestQuest.setAuthor(String)public void setAuthor(java.lang.String newName)
Quest
setAuthor in interface QuestnewName - the author of the questQuest.author()public java.lang.String displayName()
Quest
displayName in interface QuestQuest.setDisplayName(String)public void setDisplayName(java.lang.String newName)
Quest
setDisplayName in interface QuestnewName - the friendly display name of the questQuest.displayName()public CMObject copyOf()
CMObject
copyOf in interface CMObjectpublic boolean suspended()
Quest
suspended in interface QuestQuest.setSuspended(boolean)public void setSuspended(boolean truefalse)
Quest
setSuspended in interface Questtruefalse - true if this quest object is suspendedQuest.suspended()public CMObject newInstance()
CMObject
newInstance in interface CMObjectpublic void initializeClass()
CMObject
initializeClass in interface CMObjectpublic java.lang.Object getDesignatedObject(java.lang.String named)
Quest
getDesignatedObject in interface Questnamed - the code to return a string, object, or vector for
Quest.QOBJSpublic void internalQuestDelete()
Quest
internalQuestDelete in interface Questpublic java.lang.String startDate()
Quest
startDate in interface QuestQuest.setStartDate(String),
Quest.setStartMudDate(String)public void setStartDate(java.lang.String newDate)
Quest
setStartDate in interface QuestnewDate - the real-life start date of this questQuest.startDate(),
Quest.setStartMudDate(String)public void setStartMudDate(java.lang.String newDate)
Quest
setStartMudDate in interface QuestnewDate - the in-game mud start date of this questQuest.startDate(),
Quest.setStartDate(String)public int duration()
Quest
duration in interface QuestQuest.setDuration(int)public void setDuration(int newTicks)
Quest
setDuration in interface QuestnewTicks - the duration, in ticks, of this questQuest.duration()public void setCopy(boolean truefalse)
Quest
setCopy in interface Questtruefalse - true if this quest object is a spawned copyQuest.isCopy()public boolean isCopy()
Quest
isCopy in interface QuestQuest.setCopy(boolean)public void setSpawn(int spawnFlag)
Quest
setSpawn in interface QuestspawnFlag - the quest spawn flag infoQuest.SPAWN_ANY,
Quest.SPAWN_FIRST,
Quest.SPAWN_NO,
Quest.SPAWN_DESCS,
Quest.getSpawn()public int getSpawn()
Quest
getSpawn in interface QuestQuest.SPAWN_ANY,
Quest.SPAWN_FIRST,
Quest.SPAWN_NO,
Quest.SPAWN_DESCS,
Quest.setSpawn(int)public int minPlayers()
Quest
minPlayers in interface QuestQuest.setMinPlayers(int),
Quest.playerMask(),
Quest.setPlayerMask(String)public void setMinPlayers(int players)
Quest
setMinPlayers in interface Questplayers - minimum number of players matching player criteria requiredQuest.minPlayers(),
Quest.playerMask(),
Quest.setPlayerMask(String)public int runLevel()
Quest
runLevel in interface QuestQuest.setRunLevel(int)public void setRunLevel(int level)
Quest
setRunLevel in interface Questlevel - the run level. -1 means runs alwaysQuest.runLevel()public java.lang.String playerMask()
Quest
playerMask in interface QuestMaskingLibrary,
Quest.setMinPlayers(int),
Quest.minPlayers(),
Quest.setPlayerMask(String)public void setPlayerMask(java.lang.String mask)
Quest
setPlayerMask in interface Questmask - the zappermask that determines who counts as a playerMaskingLibrary,
Quest.setMinPlayers(int),
Quest.minPlayers(),
Quest.playerMask()
public boolean setScript(java.lang.String parm,
boolean showErrors)
Quest
setScript in interface Questparm - the actual quest scriptshowErrors - true to report file errors, false otherwise
Quest.script()public java.lang.String script()
Quest
script in interface QuestQuest.setScript(String, boolean)public void autostartup()
Quest
autostartup in interface Quest
public void setVars(java.util.List<?> script,
int startAtLine)
Quest
setVars in interface Questscript - the parsed quest scriptstartAtLine - which line of the script to start atQuest
public java.lang.StringBuffer getResourceFileData(java.lang.String named,
boolean showErrors)
Quest
getResourceFileData in interface Questnamed - the name of the resource path file to returnshowErrors - true to report file errors, false otherwise
Quest
public void parseQuestScriptWArgs(java.util.Vector script,
java.util.List args)
protected void errorOccurred(DefaultQuest.QuestState q,
boolean quietFlag,
java.lang.String msg)
protected void filterOutThoseInUse(java.util.List<? extends Environmental> choices,
java.lang.String choicesStr,
DefaultQuest.QuestState q,
boolean isQuiet,
boolean reselect)
public void parseQuestScript(java.util.Vector script,
java.util.List args,
int startLine)
public boolean spawnQuest(java.lang.String script,
java.util.Vector baseVars,
boolean reTime)
public boolean startQuest()
Quest
startQuest in interface QuestQuest.resetQuest(int),
Quest.stepQuest(),
Quest.stopQuest()public boolean startQuestInternal()
public void enterRunningState()
public void cleanQuestStep()
public boolean stepQuest()
Quest
stepQuest in interface QuestQuest.startQuest(),
Quest.stopQuest()public void resetQuest(int firstPauseTicks)
Quest
resetQuest in interface QuestfirstPauseTicks - ticks to remain in stopped state before restartingQuest.startQuest(),
Quest.stepQuest(),
Quest.stopQuest()public void stopQuest()
Quest
stopQuest in interface QuestQuest.startQuest(),
Quest.stepQuest(),
Quest.resetQuest(int)public void stopQuestInternal()
public boolean enterDormantState()
Quest
enterDormantState in interface Questpublic boolean resetWaitRemaining(long ellapsedTime)
Quest
resetWaitRemaining in interface QuestellapsedTime - the number of miliseconds already ellapsed before wait began
Quest.waitRemaining()public int minWait()
Quest
minWait in interface QuestQuest.setMinWait(int),
Quest.waitInterval(),
Quest.setWaitInterval(int)public void setMinWait(int wait)
Quest
setMinWait in interface Questwait - the minimum number of ticks between attempts to run this quest.Quest.minWait(),
Quest.waitInterval(),
Quest.setWaitInterval(int)public int waitInterval()
Quest
waitInterval in interface QuestQuest.setMinWait(int),
Quest.minWait(),
Quest.setWaitInterval(int)public void setWaitInterval(int wait)
Quest
setWaitInterval in interface Questwait - the maximum ticks, above the minimum wait, that must go byQuest.setMinWait(int),
Quest.minWait(),
Quest.waitInterval()public int waitRemaining()
Quest
waitRemaining in interface QuestQuest.resetWaitRemaining(long)public Quest getMainQuestObject()
public void declareWinner(java.lang.String name)
Quest
declareWinner in interface Questname - the player nameQuest.getWinners(),
Quest.getWinnerStr(),
Quest.wasWinner(String),
Quest.setWinners(String),
Quest.whenLastWon(String)public java.lang.String getWinnerStr()
Quest
getWinnerStr in interface QuestQuest.declareWinner(String),
Quest.getWinners(),
Quest.wasWinner(String),
Quest.setWinners(String),
Quest.whenLastWon(String)public void setWinners(java.lang.String list)
Quest
setWinners in interface Questlist - a semicolon delimtied list of player namesQuest.declareWinner(String),
Quest.getWinners(),
Quest.getWinnerStr(),
Quest.wasWinner(String)public java.util.Map<java.lang.String,java.lang.Long> getWinners()
Quest
getWinners in interface QuestQuest.declareWinner(String),
Quest.getWinnerStr(),
Quest.wasWinner(String),
Quest.setWinners(String),
Quest.whenLastWon(String)public boolean wasWinner(java.lang.String name)
Quest
wasWinner in interface Questname - the player name
Quest.declareWinner(String),
Quest.getWinners(),
Quest.getWinnerStr(),
Quest.setWinners(String),
Quest.whenLastWon(String)public java.lang.Long whenLastWon(java.lang.String name)
Quest
whenLastWon in interface Questname - the player name
Quest.declareWinner(String),
Quest.getWinners(),
Quest.getWinnerStr(),
Quest.setWinners(String),
Quest.wasWinner(String)public boolean running()
Quest
running in interface QuestQuest.suspended(),
Quest.waiting(),
Quest.startQuest()public boolean stopping()
Quest
stopping in interface QuestQuest.suspended(),
Quest.waiting(),
Quest.running(),
Quest.stopQuest()public boolean waiting()
Quest
waiting in interface QuestQuest.suspended(),
Quest.waiting(),
Quest.running(),
Quest.stopQuest()public int ticksRemaining()
Quest
ticksRemaining in interface QuestQuest.minsRemaining(),
Quest.startQuest()public int minsRemaining()
Quest
minsRemaining in interface QuestQuest.ticksRemaining(),
Quest.startQuest()public int getTickStatus()
Tickable
getTickStatus in interface TickableTickable.tick(Tickable, int)
public boolean tick(Tickable ticking,
int tickID)
Tickable
tick in interface Tickableticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in Tickable
Tickable,
ServiceEngine,
TickableGroupprotected boolean startQuestOnTime()
public void runtimeRegisterAbility(MOB mob,
java.lang.String abilityID,
java.lang.String parms,
boolean give)
Quest
runtimeRegisterAbility in interface Questmob - the mob receiving the abilityabilityID - the id of the abilityparms - any ability parametersgive - false to remove this ability, true to replace an existing oneQuest.runtimeRegisterBehavior(PhysicalAgent, String, String, boolean),
Quest.runtimeRegisterEffect(PhysicalAgent, String, String, boolean),
Quest.runtimeRegisterObject(PhysicalAgent)public void runtimeRegisterObject(PhysicalAgent P)
Quest
runtimeRegisterObject in interface QuestP - the object added to the mapQuest.runtimeRegisterAbility(MOB, String, String, boolean),
Quest.runtimeRegisterBehavior(PhysicalAgent, String, String, boolean),
Quest.runtimeRegisterEffect(PhysicalAgent, String, String, boolean),
Quest
public void runtimeRegisterEffect(PhysicalAgent affected,
java.lang.String abilityID,
java.lang.String parms,
boolean give)
Quest
runtimeRegisterEffect in interface Questaffected - the object receiving the effectabilityID - the id of the effectparms - any effect parametersgive - false to remove this effect, true to replace an existing oneQuest.runtimeRegisterAbility(MOB, String, String, boolean),
Quest.runtimeRegisterBehavior(PhysicalAgent, String, String, boolean),
Quest.runtimeRegisterObject(PhysicalAgent)
public void runtimeRegisterBehavior(PhysicalAgent behaving,
java.lang.String behaviorID,
java.lang.String parms,
boolean give)
Quest
runtimeRegisterBehavior in interface Questbehaving - the object receiving the behaviorbehaviorID - the id of the behaviorparms - any behavior parametersgive - false to remove this behavior, true to replace an existing oneQuest.runtimeRegisterAbility(MOB, String, String, boolean),
Quest.runtimeRegisterEffect(PhysicalAgent, String, String, boolean),
Quest.runtimeRegisterObject(PhysicalAgent)
public void runtimeRegisterStat(Environmental E,
java.lang.String stat,
java.lang.String parms,
boolean give)
public int getQuestThingIndex(java.util.Iterator<? extends Environmental> i,
java.lang.String name,
CMClass.CMObjectType type,
int[] num)
public int getQuestMobIndex(java.lang.String name)
Quest
getQuestMobIndex in interface Questname - the given name
Quest.getQuestMobName(int),
Quest.getQuestMob(int)public int getQuestRoomIndex(java.lang.String roomID)
Quest
getQuestRoomIndex in interface QuestroomID - the given room id
Quest.getQuestRoom(int),
Quest.getQuestRoomID(int)public int getQuestItemIndex(java.lang.String name)
Quest
getQuestItemIndex in interface Questname - the given name
Quest.getQuestItem(int),
Quest.getQuestItemName(int)public long getFlags()
Quest
getFlags in interface QuestQuest.FLAG_SUSPENDEDpublic void setFlags(long flags)
Quest
setFlags in interface Questflags - the flag bitmapQuest.FLAG_SUSPENDED
public Environmental getQuestThing(java.util.Iterator<? extends Environmental> e,
int dex,
CMClass.CMObjectType type,
int[] num)
public MOB getQuestMob(int i)
Quest
getQuestMob in interface Questi - the index
Quest.getQuestMobName(int),
Quest.getQuestMobIndex(String)public Item getQuestItem(int i)
Quest
getQuestItem in interface Questi - the index
Quest.getQuestItemIndex(String),
Quest.getQuestItemName(int)public Room getQuestRoom(int i)
Quest
getQuestRoom in interface Questi - the index
Quest.getQuestRoomIndex(String),
Quest.getQuestRoomID(int)public java.lang.String getQuestMobName(int i)
Quest
getQuestMobName in interface Questi - the index
Quest.getQuestMob(int),
Quest.getQuestMobIndex(String)public java.lang.String getQuestItemName(int i)
Quest
getQuestItemName in interface Questi - the index
Quest.getQuestItem(int),
Quest.getQuestItemIndex(String)public java.lang.String getQuestRoomID(int i)
Quest
getQuestRoomID in interface Questi - the index
Quest.getQuestRoom(int),
Quest.getQuestRoomIndex(String)public int getObjectInUseIndex(java.lang.String name)
Quest
getObjectInUseIndex in interface Questname - the given name
Quest.isObjectInUse(Environmental)public boolean isObjectInUse(Environmental E)
Quest
isObjectInUse in interface QuestE - the object to check
Quest.getObjectInUseIndex(String)
public java.util.Vector parseLoadScripts(java.lang.String text,
java.util.List oldArgs,
java.util.List args,
boolean showErrors)
public java.lang.String[] getStatCodes()
Modifiable
getStatCodes in interface ModifiableModifiable.getStat(String),
Modifiable.setStat(String, String)public int getSaveStatIndex()
Modifiable
getSaveStatIndex in interface ModifiableModifiable.getStatCodes(),
Modifiable.getStat(String),
Modifiable.setStat(String, String)protected int getCodeNum(java.lang.String code)
public boolean sameAs(DefaultQuest E)
public void setStat(java.lang.String code,
java.lang.String val)
Modifiable
setStat in interface Modifiablecode - the name of the field to setval - the value to set the field toModifiable.getStatCodes()public boolean isStat(java.lang.String code)
Modifiable
isStat in interface Modifiablecode - the name of the field to read.
Modifiable.getStatCodes()public java.lang.String getStat(java.lang.String code)
Modifiable
getStat in interface Modifiablecode - the name of the field to read.
Modifiable.getStatCodes()public int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||