Contol Windwo Update. Velocity Change implemented. FONT and some other Var and method needs to be implemented in the GUI class not in Menu Window

Database Update
This commit is contained in:
Noah
2021-12-01 10:55:23 +01:00
parent 0d5aca00ba
commit 1b05840e5b
5 changed files with 156 additions and 6 deletions
+42
View File
@@ -121,4 +121,46 @@ public class DataBase {
}
public Boolean[][] getGrid(String gridName){
connect();
ResultSet resultSet = resultSetSQL("select * from gameInfo where name = '"+gridName+"'");
try {
resultSet.next();
int id = resultSet.getInt("id");
String name = resultSet.getString("name");
int width = resultSet.getInt("width");
int height = resultSet.getInt("height");
int gen = resultSet.getInt("generation");
boolean[][] cells = new boolean[width][height];
ResultSet data = resultSetSQL("select * from gameData where id ="+id);
data.next();
System.out.println("");
for (int x = 0; x < width; x++) {
for (int y = 0; y < height; y++) {
cells[x][y] = false;
}
}
} catch (SQLException e) {
e.printStackTrace();
}
disconnect();
return null;
}
}