Skip to content

Commit

Permalink
♻️ REFACTOR. MVC 리펙토리
Browse files Browse the repository at this point in the history
MVC 구조 변환

related to : #1, #2
  • Loading branch information
junhaa committed Dec 15, 2023
1 parent 6075ec9 commit 834f971
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/Controller/GameController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package Controller;

import Model.GameModel;
import Model.Player;
import View.GameView;

public class GameController {
private GameModel model;
private GameView view;

public static final int MAX_PLAYER_COUNT = 4; // 최대 플레이어 수 (본인 포함)

private Player[] players = new Player[MAX_PLAYER_COUNT];

private Tile

public GameController(GameModel model, GameView view) {
this.model = model;
this.view = view;
}


}
10 changes: 10 additions & 0 deletions src/Model/GameModel.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package Model;

import static Controller.GameController.MAX_PLAYER_COUNT;

public class GameModel {

private Player[] players = new Player[MAX_PLAYER_COUNT];


}

0 comments on commit 834f971

Please sign in to comment.