-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gabriel2 #32
base: develop
Are you sure you want to change the base?
Gabriel2 #32
Conversation
…perature and humidity
…nager into currentWeatherMethod
…hod, we send the current weather condition depending on the humidity and the temperature
Current weather method
Current weather method
melt, freeze, evaporate
…s the weather depending on the temperature and the humidity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somebody will get around to properly reviewing this at some point but can I just ask that you tidy-up your changes a bit first? You seem to have introduced several random files with content that is completely unrelated to these changes.
You can make updates to this pull request by pushing to the branch it points to.
I've left a few comments from a cursory glance at the changes but this is not yet a full review.
@@ -0,0 +1 @@ | |||
sah sah sah |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is not needed.
@@ -0,0 +1 @@ | |||
ijfjverzhjbtrkubt:lhbtr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is also not needed.
@@ -0,0 +1 @@ | |||
TEjsfsidfjzuifnhnhjdfs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not believe that this file serves any useful purpose either.
import org.terasology.climateConditions.ClimateConditionsSystem; | ||
import org.terasology.climateConditions.ClimateConditionsSystem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this class imported twice?
@@ -118,10 +161,10 @@ public void onLocalPlayerReady(LocalPlayerInitializedEvent event, EntityRef enti | |||
|
|||
@Override | |||
public void postBegin() { | |||
networkSystem = context.get(NetworkSystem.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, using @In
should be the same as context.get
. Did that not work for you?
@ReceiveEvent | ||
public void stagnateTemperature(TemperatureStagnateEvent event, EntityRef worldEntity) { | ||
float temperature = this.currentTemperature; | ||
//T = (TMAX - TMIN)value + TMIN => value = (T - TMIN)/(TMAX -TMIN) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume that this is re-arranging the equation but the comment is not clear about what this equation does.
@@ -0,0 +1,39 @@ | |||
<!-- This file, when present as src/test/resources/logback-test.xml, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should not be needed. Logging configuration is not typically done at a module level.
@@ -0,0 +1 @@ | |||
jsgdhsjfjhiezuyruiz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file also appears to serve no use.
@@ -1,7 +1,7 @@ | |||
// Copyright 2021 The Terasology Foundation | |||
// SPDX-License-Identifier: Apache-2.0 | |||
package org.terasology.weatherManager.weather; | |||
|
|||
import java.util.Random; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why have you added a random import here?
Hello, this pull request is made to resolve all the points in the issue #26 .
feat(Temperature) : Temperature which increase, decrease or stagnate. Temperature depends on time
feat(Humidity) : Humidity increase when Temeprature decrease and vice-versa
feat(Water state) : the water will evaporate or freeze according to the temperature. Same with the snow
feat(Weather) : the weather depends on humidity and temperature