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
It's easy to use the NAS2D::Utility class to get the StructureManager instance (can be seen here) but this comes at the cost of not being transparent where this information comes from and tightly coupling the CrimeRateUpdate with a poorly defined/undefined dependency.
This can be done during the construction of the object or with a dedicated function for it. It can also be done by modifying the update() parameter list to require the dependency.
The text was updated successfully, but these errors were encountered:
It's easy to use the
NAS2D::Utility
class to get theStructureManager
instance (can be seen here) but this comes at the cost of not being transparent where this information comes from and tightly coupling theCrimeRateUpdate
with a poorly defined/undefined dependency.This can be done during the construction of the object or with a dedicated function for it. It can also be done by modifying the
update()
parameter list to require the dependency.The text was updated successfully, but these errors were encountered: