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

Implement the bus station / luas / and taxi stations #7

Closed HelloMum closed 6 months ago

HelloMum commented 7 months ago

This main class should work for all the classes aboves, we can create only one and then configure it to give ownership on the game element or to create three different one, but on the later case we will need to create some degree of hierarchical reuse as they will be doing almost exactly the same so maybe we need somethings like. stations -> busStation, taxiStation, luasStation

PYevan commented 7 months ago

I saw you changed a lot for station and AutoMoveTransport a little bit confused now I think we need a start and a pause method to implement stop and restart bus/luas/taxi

HelloMum commented 7 months ago

No need to make it very complex you can create disable movement bool value and disable it from the station side for 3 seconds and this will hold the transport on the place. The main issue is that the implementation of movement should be using ticks and it's not. I implemented a tick in the main game element and it's working , but not working on the transport subclass, check on properly implementing that because we need it also for controlling the input speed of the player too. There are examples in the main game element using tick dividing number is flags to regulate the speed. And don't create new constructors, they should or initiations in the parent class as this will break the map generator and other things, I fixed a couple of kids of game elements that were not correctly training hierarchy. Just use an override to change the aspects on draw.

PYevan commented 7 months ago

I know your idea and I will make it later Use time or something

HelloMum commented 6 months ago

I will be fixing this today no more need is needed.