WORK IN PROGRESS

TODO: implement random level generation
moved exclude from list to position.h
distinguished level and map
This commit is contained in:
2024-07-12 00:16:08 -04:00
parent c68330b3e3
commit b3300b8e7c
13 changed files with 268 additions and 113 deletions

View File

@ -1,6 +1,31 @@
#ifndef __LEVEL_H__
#define __LEVEL_H__
class level;
#include <string>
#include "display.h"
#include "characters.h"
#include "potion.h"
#include "constants.h"
#include "gold.h"
#include "map.h"
class level {
private:
game_map map;
const character &player;
character_list chlist;
potion_list plist;
gold_list glist;
public:
// randomly generate a map
level(const character &player);
// read map from a string
level(const std::string &map_data, const character &player);
void print(display &out) const;
void run();
position_list get_available_positions() const;
position get_up_stairs() const;
position get_down_stairs() const;
};
#endif