Skip to content
Permalink
7c65d5344b
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
41 lines (28 sloc) 549 Bytes
#ifndef WORLD_H
#define WORLD_H
#include <vector>
#include <set>
#include <tuple>
#include <algorithm>
#include <iomanip>
#include <stdexcept>
#include "terminal.h"
#include "tile.h"
#include "entity.h"
#include "view.h"
class View;
class World
{
private:
std::vector<Tile> world;
std::set<const Entity*> entities;
public:
const int width, height;
World( int _width, int _height );
//bool set( int x, int y, Tile t );
void fill( Tile t );
Tile& get( int x, int y );
void add( Entity& entity );
friend class View;
};
#endif