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
19 lines (14 sloc) 443 Bytes
#ifndef DRAWABLE_H
#define DRAWABLE_H
#include "terminal.h"
#include "position.h"
class Drawable : public Position
{
public:
Terminal::Color foreground, background;
Drawable( int _x=0, int _y=0,
Terminal::Color _foreground=Terminal::Color::FG_DEFAULT, Terminal::Color _background=Terminal::Color::BG_DEFAULT )
: Position( _x, _y ), foreground(_foreground), background(_background) {}
virtual void draw() const = 0;
};
#endif