-
Notifications
You must be signed in to change notification settings - Fork 2
/
Design Document
52 lines (40 loc) · 2.34 KB
/
Design Document
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Program Design:
Classes:
+Character
-Player
-Enemy //Super class
:Enemy Types (extends Enemy)...
-NPC
+Floorplan //map generator, stores map
+SDLPrint //displays map, Character's
+Quest //Super class
-Nexus //main school-area with non-generated maps
-Quest Types (extends Quest)...
+MAIN //calls Game
+Game //Holds main game loop and states
Character:
+string name //NPC, enemy, or player name (enemy can be randomly generated)
+int health //character health, npc is unaffected
+int xp //total character xp, npc is unaffected
+int damage //product of character xp
Floorplan:
+int[][] map //array of integers representing map elements
SDLPrint:
+Character * player //pointer to player
+Quest *quests[] //pointer to Quest array
+int * currentQuest //pointer to currentQuest
->refresh() //Updates graphics based on locatoin of objects in quests and player
Quest:
+Floorplan floorPlans[] //Array of floorplans in descending order
+Vector<Character>[] //Array of enemies on each floor in descending order
+int currentFloor //index of current floor and set of enemies
MAIN:
+Game game //Main game loop
Game:
+Quest quests[] //Persistent array of Quest's
+int currentQuest //index of current Quest
+Character player //main class for player
+SDLPrinter printer
Gameplay:
Story:
Player, a new student in a school for burgeoning adventurers begins his first day of class. Instruction at this school is different: all education revolves around practical experience. Each of Player's professors give him assignments relating to their area of study‒be it potion making, archery, or fauna studies‒which require exploring the school's local caves and returning safely having fulfilled the professor's request. A dark secret becomes slowly apparent, though, that few students survive their time at the school, and that the professors only give assignments as petty errand running and for tasks they fear too dangerous for themselves. In the course of discovering this, Player subsequently fights (and kills) each of his professors after completing all of their (partially-random quests). Having killed all of the professors, the Player must traverse the most dangerous of dungeons yet to discover a key to the headmaster's office. There, he kills the headmaster and assumes position as leader of the school.