-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSpace4.cpp
55 lines (47 loc) · 1.59 KB
/
Space4.cpp
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
/* Program Name: Sword Quest
Author: Centaurus Team 1
Date: October 9, 2018
Description: Space 4 of 25 in the game
*/
#include "Space4.hpp"
#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <stdio.h>
using namespace std;
Space4::Space4()
{
name = "sewer depths";
shortForm = "The mouth of the sewer opens up into the ocean. There is a small wooden bridge.\n\n"
"To the east you see the tunnels continue to the Eastern Sewers \n"
"To the west you see the tunnels continue to the Western Sewers \n";
longForm = "The mouth of the sewer opens up into the ocean. You can hear the gulls call somewhere in \n"
"the distance. The waves look rough today. There is a small wooden bridge connecting the eastern and western parts of the sewers. \n\n"
"To the east you see the tunnels continue to the Eastern Sewers \n"
"To the west you see the tunnels continue to the Western Sewers \n";
id = 4;
obj = NULL;
combatEncounter = false;
visited = false;
}
Space4::~Space4()
{}
void Space4::look(const char* thing)
{
if (strcmp(thing, "ocean") == 0 || strcmp(thing, "opening") == 0)
{
cout << "You see the ocean. Between the rough waves and glimpses of shark fins." << endl;
cout << "It's probably best to not try your luck out there" << endl;
}
else if (strcmp(thing, "bridge") == 0)
{
cout << " The wood the bridge is made from definitely looks old, but by no means" << endl;
cout << " rotted or weak. This seems strange considering the environment," << endl;
cout << " but there are more pressing issues. " << endl;
}
else
{
cout << "You can't do that" << endl;
}
}