parent
1ea1db2e11
commit
ee672eeab7
@ -1,4 +1,3 @@ |
|||||||
vscode: |
vscode: |
||||||
extensions: |
extensions: |
||||||
- redhat.java |
- redhat.java |
||||||
- vscjava.vscode-java-pack |
|
@ -0,0 +1,9 @@ |
|||||||
|
package sig; |
||||||
|
|
||||||
|
public class Block{ |
||||||
|
BlockState state; |
||||||
|
double x,y; |
||||||
|
public Block() { |
||||||
|
|
||||||
|
} |
||||||
|
} |
@ -0,0 +1,10 @@ |
|||||||
|
package sig; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
public class BlockClump { |
||||||
|
List<Block> blocks; |
||||||
|
public BlockClump(List<Block> blockList) { |
||||||
|
this.blocks = blockList; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,14 @@ |
|||||||
|
package sig; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
public class Board { |
||||||
|
List<BlockClump> blockData; |
||||||
|
int width; |
||||||
|
int height; |
||||||
|
public Board(int width,int height) { |
||||||
|
this.width=width; |
||||||
|
this.height=height; |
||||||
|
this.blockData = new ArrayList<BlockClump>(); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue