|
|
@@ -42,7 +42,7 @@ public class GameController implements Runnable, Serializable {
|
|
|
}
|
|
|
|
|
|
private void setupInteractiveTiles() {
|
|
|
- LighthouseController lighthouse = new LighthouseController(this, setupInteractiveTileModel(24, 20));
|
|
|
+ LighthouseController lighthouse = new LighthouseController(this, setupInteractiveTileModel(20, 20, getView().tileSize*2, getView().tileSize*2));
|
|
|
addInteractiveTile(lighthouse);
|
|
|
|
|
|
MineController mineController = new MineController(this, setupInteractiveTileModel(25,20));
|
|
|
@@ -80,8 +80,13 @@ public class GameController implements Runnable, Serializable {
|
|
|
return model;
|
|
|
}
|
|
|
|
|
|
+ public InteractiveTileModel setupInteractiveTileModel(int worldGridX, int worldGridY, int width, int height){
|
|
|
+ InteractiveTileModel model = new InteractiveTileModel(worldGridX, worldGridY, width, height);
|
|
|
+ gameModel.addInteractiveTileModel(model);
|
|
|
+ return model;
|
|
|
+ }
|
|
|
public InteractiveTileModel setupInteractiveTileModel(int worldGridX, int worldGridY){
|
|
|
- InteractiveTileModel model = new InteractiveTileModel(worldGridX, worldGridY, getView().tileSize, getView().tileSize);
|
|
|
+ InteractiveTileModel model = new InteractiveTileModel(worldGridX, worldGridY, getView().getWidth(), getView().getHeight());
|
|
|
gameModel.addInteractiveTileModel(model);
|
|
|
return model;
|
|
|
}
|