1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#include "bricks.h"
#include <iostream>
#include <graphics.h>
bricks::bricks()
{
setcolor(RED);
rectangle(20,50,220,150);
rectangle(230,50,430,150);
rectangle(440,50,640,150);
rectangle(650,50,850,150);
rectangle(860,50,1060,150);
rectangle(1070,50,1270,150);
for(int i=1; i<=6; i++)
a[i]=1;
}
/*bool bricks::exist()
{
}*/
void bricks::clean(double x1, double y1, double x2, double y2)
{
setcolor(BLACK);
rectangle(x1,y1,x2,y2);
}
|