-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMap.cpp
More file actions
84 lines (77 loc) · 2.02 KB
/
Map.cpp
File metadata and controls
84 lines (77 loc) · 2.02 KB
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
//Map.cpp
//Program Description: Contains Functions for altering Game Map
#include<iostream>
#include<string>
#include "Map.h"
using namespace std;
//winning Path
//Entrance -> Canteen->Lobby->A1->Security->jail->biolab->A68680->Chemistry->Toilet->End
//Display Game Map
void Display_Lab_Map(string Map[]){
for(int i = 0; i < 31; i++)
cout << Map[i] << endl;
}
//Remove the '*' i.e Player Current Location
void removePlayerLocation(string Map[]){
for( int i = 0; i < 31; i++ )
Map[i][Map[i].find("*")] = ' ';
}
//Remove the wall in Jail when Wall Bomb is used
void BombTheWall(string Map[]){
Map[5][60]=' ';
}
//Set Player Current Location at Chemistry
void Current_At_Chemistry(string Map[]){
removePlayerLocation(Map);
Map[2][19]='*';
}
//Set Player Current Location at Toilet
void Current_At_Toilet(string Map[]){
removePlayerLocation(Map);
Map[3][5]='*';
}
//Set Player Current Location at A1
void Current_At_A1(string Map[]){
removePlayerLocation(Map);
Map[3][36]='*';
}
//Set Player Current Location at Jail
void Current_At_Jail(string Map[]){
removePlayerLocation(Map);
Map[4][60]='*';
}
//Set Player Current Location at A6868
void Current_At_A6868(string Map[]){
removePlayerLocation(Map);
Map[7][6]='*';
}
//Set Player Current Location at SecurityOffice
void Current_At_SecurityOffice(string Map[]){
removePlayerLocation(Map);
Map[7][62]='*';
}
//Set Player Current Location at BioLab
void Current_At_BioLab(string Map[]){
removePlayerLocation(Map);
Map[11][10]='*';
}
//Set Player Current Location at Lobby
void Current_At_Lobby(string Map[]){
removePlayerLocation(Map);
Map[15][36]='*';
}
//Set Player Current Location at Canteen
void Current_At_Canteen(string Map[]){
removePlayerLocation(Map);
Map[25][10]='*';
}
//Set Player Current Location at Entrance
void Current_At_Entrance(string Map[]){
removePlayerLocation(Map);
Map[27][36]='*';
}
//Set Player Current Location at Stairs
void Current_At_Stairs(string Map[]){
removePlayerLocation(Map);
Map[26][64]='*';
}