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
some flow control or game rule logic implementation are mixed in object draw method, which is not separated clearly and seems to add burden for maintenance
a better approach might be let game objects just care about render, but separate game rule assertion, it will make changes to both part much easier
introduce an abstract game object would be useful
there seems no need to introduce CopyOnWriteArrayList here, as this is not a concurrent scenario of multi-threading, no need to confuse students with such kind of heavy stuff at this time
tank move/fire and other logic is not very well organized, needs refactoring and reorganization
The text was updated successfully, but these errors were encountered:
CopyOnWriteArrayList
here, as this is not a concurrent scenario of multi-threading, no need to confuse students with such kind of heavy stuff at this timeThe text was updated successfully, but these errors were encountered: