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
25 lines (17 sloc) 363 Bytes
#ifndef VIEW_H
#define VIEW_H
#include "drawable.h"
#include "world.h"
class World;
class View : public Position
{
public:
World& world;
std::set<const Drawable*> drawables;
const int width, height;
View( World& _world, int _width=-1, int _height=-1 );
bool move( int x, int y );
void add( const Drawable& drawable );
void draw() const;
};
#endif