You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
455 B
27 lines
455 B
4 years ago
|
#ifndef BOARDWINDOW_H
|
||
|
#define BOARDWINDOW_H
|
||
|
|
||
|
#include "window.h"
|
||
|
|
||
|
class Board;
|
||
|
|
||
|
class BoardWindow : public Window
|
||
|
{
|
||
|
public:
|
||
|
BoardWindow(int height, int width, Board *board);
|
||
|
~BoardWindow();
|
||
|
|
||
|
void update();
|
||
|
void resize();
|
||
|
void printBlackHole(int y, int x, int planet);
|
||
|
void printPlanet(int y, int x, int planet);
|
||
|
void printSpaceShip(int y, int x, int planet, int width);
|
||
|
|
||
|
private:
|
||
|
int height;
|
||
|
int width;
|
||
|
Board *board;
|
||
|
};
|
||
|
|
||
|
#endif // BOARDWINDOW_H
|