Skip to content

Commit aef2d82

Browse files
committed
Update 4.1. Sistemazione di codice,aggiornamento dei commenti
1 parent 9287f06 commit aef2d82

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Terrain/Board.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ public class Board extends GameObject implements Drawable, WeatherObserver {
1818

1919
public Board(Point position,Weather weather) {
2020
super(position);
21-
this.position=position;
21+
this.position = position;
2222
this.weather = weather;
2323
weather.addWeatherObserver(this);//iscrizione di scachierra sulle notifiche de Weather
2424
cells = new ArrayList<>();
2525
generateBoard(position);
2626
System.out.println(weather.getWeather().toString());
2727
}
28-
28+
/**Metodo che aggiorna oservatori di Weather*/
2929
@Override
3030
public void setSprite() {
3131
for (Cell c : cells){

Terrain/Cell.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import Components.Graphics.Sprite;
66
import Core.GameObject;
77
import Core.ResourceLoader;
8-
import Core.Weather;
98

109
import java.awt.*;
1110
import java.awt.event.MouseEvent;
@@ -14,9 +13,11 @@
1413
* Created by dimaer on 27/03/17.
1514
*/
1615
public class Cell extends GameObject implements Drawable,MouseObserver{
16+
1717
private Sprite sprite;
1818
private Type type;
1919
private String spriteType;
20+
2021
public Cell(Point position, String spriteType, String weatherType){
2122
super(position);
2223
this.spriteType=spriteType;

0 commit comments

Comments
 (0)