Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
PineapplePen/room.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
64 lines (46 sloc)
1.81 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <iostream> | |
#include <string> | |
#include <windows.h> | |
using namespace std; | |
//31/01/2020 relate to lecture and find out how to pre compile :) | |
class room | |
{ | |
public: | |
room() | |
{ | |
currentRoom = false; | |
}; | |
~room() | |
{ | |
}; | |
bool currentRoom; | |
inline void setRoomState(bool update) | |
{ | |
currentRoom = update; | |
} | |
void Draw() | |
{ | |
DrawFrontBorder(); | |
DrawImage(); | |
DrawBackBorder(); | |
} | |
void DrawImage() | |
{ | |
cout << " _ __ __ __ " << endl; | |
cout << "| | / / ___ / / _____ _____ ____ _____ ___ / /_____ _____ __ _____ ____ _____ _____ ___ ___ " << endl; | |
cout << "| | /| / / / _ \\ / / / ___/ / __ \/ / __ `__ \/ / _ \\ / __/ __ \\ / __ \/ / / / ___/ / __ `/ __ `/ __ `__ \\/ _ \\ "<< endl; | |
cout << "| |/ |/ / / __ / / / / /__ / /_/ / / / / / / / / __/ / /_/ /_/ / / /_/ / /_/ / / / /_/ / /_/ / / / / / / __/" << endl; | |
cout << "|__/|__/ \\___/ /_/ /_\___/ /\_____/ /_/ /_/ /_/ \\___/ \\__/\\____/ \\____/\\__,__/_/ \\__, /\\__,_/_/ /_/ /_/\\___/ "; | |
cout << " /____/" << endl; | |
} | |
void DrawFrontBorder() | |
{ | |
cout << "#############################################################################################################################################################################################" << endl << endl << endl << endl << endl << endl << endl; | |
} | |
void DrawBackBorder() | |
{ | |
cout << "#############################################################################################################################################################################################" << endl << endl; | |
} | |
string description = "This is your Description"; | |
}; |