HelloMum / Shared-Mobility-Adventure-Game

Final Project: Shared-Mobility Adventure Game COMP30820 Java Programming (Conv)
GNU General Public License v3.0
0 stars 0 forks source link

Stations calculations should be using the road to locate the next station #30

Closed HelloMum closed 6 months ago

HelloMum commented 6 months ago

As stated on the original thread we need to implement a fakeVehicle to check the route beforehand, not count the distance because then we have situations like this:

image

The CO2 emissions are calculated by checking how many road cells between two stations exist using the correct direction. using X and Y positions is incorrect, if we implement it using the fakeVehicle we can create a drawing to method to show the route and implement a graphical visualization quite easy.

My proposal would be more like this: image

We could also create a new element but i think is simpler just reusing the Bus to create this.

So it would be like bus but not shown (If we want too implement we can add the dotted line)

When this fakeBus gets the movent changed reports the cells that it took.

PYevan commented 6 months ago

I will see this later

PYevan commented 6 months ago

you mean ee should not only calculate carbon emissions but also indicate from where to where these emissions occur.

HelloMum commented 6 months ago

you mean ee should not only calculate carbon emissions but also indicate from where to where these emissions occur.

We should count the roads in between correctly as destined above, an additional suggestion is representing the route too. This could be done following the implementation described above.

PYevan commented 6 months ago

Sorry for this one I didn't make it 🥹🥹🥹