You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the cars/objects get saved in lots of different places. Split Frogs/Animals from Cars/Traffic-Objects and save them in one place in the model. Then, only reference to the names of said save point
The text was updated successfully, but these errors were encountered:
I don't quite understand, do you mean the saving method? Because all StreetObjects only exist in the StreetObjects Array List in the model and nowhere else.
Currently, when adding a new possible car to the model, you need to:
1.) add the car-name to Controller.addMovingObjects()
2.) add the actual car to the method above
3.) add the car name to Controller.initatePossibleCars()
4.) add the car name to View.getImg()
It should be possible to reduce the amount of steps needed, maybe by introducing one enum for all the car names (so that strings arent used to find the right car to add etc) and doing some general cleanup. Essentially for the future as other vehicle types and animal types are (possibly) planned.
Currently the cars/objects get saved in lots of different places. Split Frogs/Animals from Cars/Traffic-Objects and save them in one place in the model. Then, only reference to the names of said save point
The text was updated successfully, but these errors were encountered: