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?
ALL-Project-2-Text-Based-Game-Blackmail-/map.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
24 lines (21 sloc)
720 Bytes
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
#ifndef MAP_H | |
#define MAP_H | |
class Map | |
{ | |
public: | |
/* This method is used to generate the curated map. It is an array in which all outer nodes are not traversable in order to avoid out of bounds | |
issues and the famous C++ issues with arrays accessing memory that it should not. */ | |
int** create_map(); | |
///until we will find a way to move it to the map.cpp file without errors, this will stay here | |
int map[7][7] = { | |
{-1, -1, -1, -1, -1}, | |
{-1, 0, 1, 1, 1, 1, -1}, | |
{-1, 1, 2, 2, 2, 1, -1}, | |
{-1, 420, 2, 3, 2, 1, -1}, | |
{-1, 69, 2, 1, 2, 1, -1}, | |
{-1, 1, 1, 1, 1, 1, -1}, | |
{-1, -1, -1, -1, -1} | |
}; | |
Map(); | |
}; | |
#endif |