Skip to content
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

Draft
wants to merge 57 commits into
base: develop
Choose a base branch
from
Draft

Gabriel2 #32

wants to merge 57 commits into from

Conversation

Ewwweee
Copy link

@Ewwweee Ewwweee commented Dec 17, 2023

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

Cordoncharge83 and others added 30 commits November 28, 2023 15:13
…hod, we send the current weather condition depending on the humidity and the temperature
Copy link

@BenjaminAmos BenjaminAmos left a 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

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

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

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.

Comment on lines +57 to +58
import org.terasology.climateConditions.ClimateConditionsSystem;
import org.terasology.climateConditions.ClimateConditionsSystem;

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);

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)

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,

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

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;

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?

@jdrueckert jdrueckert marked this pull request as draft January 3, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants