Setup basic classes.

concurrentModificationException1
sigonasr2, Sig, Sigo 3 years ago
parent 1ea1db2e11
commit ee672eeab7
  1. 3
      gitpod.yml
  2. 9
      src/sig/Block.java
  3. 10
      src/sig/BlockClump.java
  4. 14
      src/sig/Board.java
  5. 2
      src/sig/Meteo.java

@ -1,4 +1,3 @@
vscode:
extensions:
- redhat.java
- vscjava.vscode-java-pack
- redhat.java

@ -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>();
}
}

@ -2,6 +2,6 @@ package sig;
public class Meteo {
public static void main(String[] args) {
System.out.println("Hello world!");
Board b = new Board(8,14);
}
}
Loading…
Cancel
Save