-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDrawableSquare.java
More file actions
27 lines (25 loc) · 881 Bytes
/
Copy pathDrawableSquare.java
File metadata and controls
27 lines (25 loc) · 881 Bytes
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
/**
*DrawableSquare.java
*Class DrawableSquare draws the square on the grid
*
*@author akramins
*@version 5/13/2013
*/
public class DrawableSquare extends Square implements Drawable{
public DrawableSquare(boolean up, boolean right, boolean down, boolean left, int row, int col){
super(up, right, down, left, row, col);
}
public void draw(){
//IGNORE THIS PART
/*(if(super.inView()){
stroke(0);
fill(#D9A7FF);
rect(super.x(), super.y(), super.x(), super.y() + Square.SQUARE_SIZE, super.x() + Square.SQUARE_SIZE, super.y() + Square.SQUARE_SIZE, super.x() + Square.SQUARE_SIZE, super.y());
}
if(super.seen() && !super.inView()){
stroke(0);
fill(#CB86FF);
rect(super.x(), super.y(), super.x(), super.y() + Square.SQUARE_SIZE, super.x() + Square.SQUARE_SIZE, super.y() + Square.SQUARE_SIZE, super.x() + Square.SQUARE_SIZE, super.y()))
}*/
}
}