More OOP classes

This commit is contained in:
2024-07-06 02:48:35 +02:00
parent f3bbeb8d4a
commit a08c6e1c64
28 changed files with 814 additions and 646 deletions
@@ -1,20 +1,14 @@
package com.bernard.greposimu.engine.game;
import com.bernard.greposimu.model.game.GameData;
import com.bernard.greposimu.model.game.GameConfig;
public class Game {
GameData data;
public Heroes heroes;
public Buildings buildings;
public Fight fight;
GameConfig data;
public Game(GameData data) {
public Game(GameConfig data) {
this.data = data;
this.heroes = new Heroes(this);
this.buildings = new Buildings(this);
this.fight = new Fight(this);
}
}