aboutsummaryrefslogtreecommitdiffstats
path: root/doc/Quest.htm
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@clyne-lp.example.com>2015-09-17 09:22:45 -0400
committerClyne Sullivan <clyne@clyne-lp.example.com>2015-09-17 09:22:45 -0400
commitc38029fa3d4fd7488c2bd9236eec86aff4448314 (patch)
tree2807889557cbc0c5391181c3556e4978eaa9549a /doc/Quest.htm
parent334ee89484336412d39e509c2594dee8f47c22ad (diff)
shit
Diffstat (limited to 'doc/Quest.htm')
-rw-r--r--doc/Quest.htm64
1 files changed, 0 insertions, 64 deletions
diff --git a/doc/Quest.htm b/doc/Quest.htm
deleted file mode 100644
index 5492f16..0000000
--- a/doc/Quest.htm
+++ /dev/null
@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>Quest</title>
- <style>
- .code{
- background:#555;
- color:white;
- font-family:Consolas;
- font-size:12px;
- margin:auto 20px;
- padding:20px;
- }
- </style>
-</head>
-<body>
- <h1>Quest</h1>
- <hr>
- <h2>Description</h2>
- <p>Quest.h provides quest functionality, including the master list of quests and methods for the player to access them.</p>
- <br>
- <h3>Macros</h3>
- <div class="code">#define QUEST_LIMIT 5<br>
- #define TOTAL_QUESTS 1
- </div>
- <ul>
- <li><b>QUEST_LIMIT</b>: Total number of quests a QuestHandler can handle.</li>
- <li><b>TOTAL_QUESTS</b>: Total number of quests in the game.</li>
- </ul>
- <h3>class Quest</h3>
- <div class="code"><b>public:</b><br>
- char *title,*desc;<br>
- unsigned int xp;<br>
- Quest();<br>
- Quest(const char *t,const char *d,unsigned int x);<br>
- ~Quest();
- </div>
- <ul>
- <li>char *<b>title</b>: Points to a string containing the quest's title.</li>
- <li>char *<b>desc</b>: Points to a string containing a description of the quest.</li>
- <li>unsigned int <b>xp</b>: Contains the amount of XP rewarded upon quest completion.</li>
- <li><b>Quest()</b>: Initializes a blank quest.</li>
- <li><b>Quest(const char *t,const char *d,unsigned int x)</b>: Creates a quest with title <i>t</i>, description <i>d</i>, and a reward of <i>x</i> XP.</li>
- <li><b> ~Quest()</b>: Frees memory previously used by the quest.</li>
- </ul>
- <h3>class QuestHandler</h3>
- <div class="code"><b>private:</b><br>
- unsigned char ccnt;<br>
- Quest *current[QUEST_LIMIT];<br>
-<b>public:</b><br>
- QuestHandler();<br>
- int assign(const char *t);<br>
- int drop(const char *t);<br>
- int finish(const char *t);<br>
- </div>
- <ul>
- <li>unsigned char <b>ccnt</b>: Contains an index to the next free slot in current[].</li>
- <li>Quest *<b>current[]</b>: Contains all current quests.</li>
- <li><b>QuestHandler()</b>: Initializes a blank QuestHandler</li>
- <li>int <b>assign(const char *t)</b>: Adds a quest with the name <i>t</i> to current[]. Returns -1 on error.</li>
- <li>int <b>drop(const char *t)</b>: Drop a quest in current[] with the name <i>t</i>. Returns -1 on error.</li>
- <li>int <b>finish(const char *t)</b>: Removes quest with name <i>t</i> from current[]. Returns quest's reward.</li>
-</body>
-</html>