-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlock.java
More file actions
38 lines (29 loc) · 757 Bytes
/
Copy pathBlock.java
File metadata and controls
38 lines (29 loc) · 757 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
28
29
30
31
32
33
34
35
36
37
38
package uk.ac.soton.comp1206;
import javafx.scene.shape.Rectangle;
public class Block extends Rectangle {
private int blockID, x, y;
private double perlinValue;
public Block(int blockID, int x, int y){
this.blockID = blockID;
this.x = x;
this.y = y;
}
public Block(int blockID, int x, int y, double perlinValue){
this.blockID = blockID;
this.x = x;
this.y = y;
this.perlinValue = perlinValue;
}
public int getBlockID() {
return blockID;
}
public double getPerlinValue() {
return perlinValue;
}
public int getYpos() {
return y;
}
public int getXpos() {
return x;
}
}