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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
|
#include <iostream>
#include <string>
using namespace std;
// GAME FUNCTIONS
//---------------------------------------------------------------------------------------
class Game {
public:
void startGame();
};
void Game::startGame()
{
cout << "V0.0 \nWelcome to Lights Deceit, a text based RPG.\n\n\n"
"In a prosperous kingdom a Lord stood upon the highest tower in "
"the City of Xioni.\n"
"He gazed upon his prosperous kingdon in awe, their was something "
"about the way all the trees, and every spec of grass flowed "
"in the wind like water.\n"
"\nEvery time the Lord stood atop the tower it left him breathless, "
"he couldn't believe that such a place could possibly exist."
"\nThe castle was built up on the wall of a giant mountain, facing "
"north their were colossal towers and stairwars leading to the "
"seperate districts of the city."
"\nTo the North-East their was "
"On the third day of the third month, as spring was setting in and "
"the trees would flow once again, he noticed something"
"\n\n\nOnce their was a mighty Hero, in a war torn land. "
"His journey began here... \n";
}
//=======================================================================================
// LOCATION FUNCTIONS
//---------------------------------------------------------------------------------------
class Location{
public:
string Room1();
string Chest1();
string Window1();
string Door1();
};
string Location::Room1()
{
cout << "You look around your small room, you see a chest, window, and a door.\n";
string action1;
getline(cin, action1);
if(action1 == "open chest")
{Chest1();}
else if(action1 == "open window")
{Window1();}
else if(action1 == "open door")
{Door1();}
}
//=======================================================================================
// OBJECT FUNCTION
//---------------------------------------------------------------------------------------
class Object{
public:
string Chest1();
string Window1();
string Door1();
};
string Object::Window1()
{
cout << "You peek your head out the window and the sunshine greets your face" << endl;
string openwindow1;
getline(cin, openwindow1);
if(openwindow1 == "leave")
{cout << "You jump out of the window and look around you, to the North there is a forest of dead trees and murk.\n" <<
"To the East the forest cuts off onto the mountainside, there seems to be a trail along the side of the mountain.\n" <<
"To the West the forest cuts off into a large plain.\n";
}
return 0;
}
string Object::Chest1()
{
cout << "\nYou find your rusty knife and clothes and gear up to set out" <<
Room1();
return 0;
}
string Object::Door1()
{
cout << "You step out into the tavern, theirs grubby men, beautiful ladies, and everything in between." << endl;
cout << "Near the barkeep a fight breaks out, a man in a tattered jacket sneaks up with a small shank to take advantage of the opportunity" << endl;
cout << "You think to yourself, could I attack him?\n Would it even be worth it?..\n";
cout << "I could just run and be on with my adventure, or perhaps I could wait and take the thief after hes had his way with his victims";
}
//=======================================================================================
// CREATURE FUNCTION
//---------------------------------------------------------------------------------------
class Creature{
public:
};
//=======================================================================================
// ITEM FUNCTIONS
//---------------------------------------------------------------------------------------
class Item
{ public:
};
//=======================================================================================
// STATS FUNCTIONS
//---------------------------------------------------------------------------------------
class Stats
{ public:
};
//=======================================================================================
// CLASS FUNCTION
//---------------------------------------------------------------------------------------
class Spec
{ public:
};
//=======================================================================================
// DIALOGUE FUNCTION
//---------------------------------------------------------------------------------------
class Dialogue
{ public:
void dialogue1()
{
cout << "You awake from your rest, you hear laughter and banter throught the door of your";
cout << "small room."<< endl;
cout << "You're in a tavern, one of the few safe havens left in this desolate world." << endl;
cout << "\nYou grasp the Stone on your neck, feeling the soothing warmth of its energy, what gift would it bestow you today?\n\n\n";
}
};
//=======================================================================================
int main()
{
Game GameStart;
GameStart.startGame();
Dialogue Dialogue1;
Dialogue1.dialogue1();
Location Location1;
Location1.Room1();
return 0;
}
|