src/gui/model/ModelCell.java
public void update(int globalCrimeMax) {
        setStyle(baseStyle + " -fx-background-color: " + (cell.occupant == null ? cell.type.colour : cell.occupant.getState().colour));
        setLight(cell.light);
        if (globalCrimeMax > 0) {
            crimeLayer.setOpacity((double) cell.crimeCount / (double) (globalCrimeMax));
        }
    }
/**
     * Called by the MapPane when the GUI needs to be updated.
     */
Called by the MapPane when the GUI needs to be updated.
Called by the MapPane when the GUI needs to be updated .
public void update(int globalCrimeMax) {
        setStyle(baseStyle + " -fx-background-color: " + (cell.occupant == null ? cell.type.colour : cell.occupant.getState().colour));
        setLight(cell.light);
        if (globalCrimeMax > 0) {
            crimeLayer.setOpacity((double) cell.crimeCount / (double) (globalCrimeMax));
        }
    }
public void update ( int globalCrimeMax ) { setStyle ( baseStyle + " -fx-background-color: " + ( cell . occupant == null ? cell . type . colour : cell . occupant . getState ( ) . colour ) ) ; setLight ( cell . light ) ; if ( globalCrimeMax > 0 ) { crimeLayer . setOpacity ( ( double ) cell . crimeCount / ( double ) ( globalCrimeMax ) ) ; } }
Called by the MapPane when the GUI needs to be updated.
Called by the MapPane when the GUI needs to be updated .