コード例 #1
0
    public void applyHot()
    {
        temperature = 50;
        DebugMeteoStatus status = new DebugMeteoStatus();

        status._city        = city;
        status._temperature = temperature;
        status._weatherType = weatherType;
        manager.applyMeteo(status);
    }
コード例 #2
0
    public void applySnow()
    {
        weatherType = WeatherType.SNOW;
        DebugMeteoStatus status = new DebugMeteoStatus();

        status._city        = city;
        status._temperature = temperature;
        status._weatherType = weatherType;
        manager.applyMeteo(status);
    }