New answers tagged software-engineering
4
votes
Accepted
How to clean up list entries when objects are destroyed in Unity?
The best way that I came up with is, according to the observer pattern, to notify all classes where the object was stored about its destruction and remove references to it from there.
That's what I ...
0
votes
What is the best way to implement a scene manager?
I am far away from being a pro, so excuse me if this is nonsense...
But how about seeing a scene as a node and the manager as a kind of graph?
The graph/manager could have a method to "search&...
0
votes
What is the best way to implement a scene manager?
One possible alternative, given that the only reason for the forward declaration is because you want IScene to be able to change the active scene from within its ...
0
votes
Accepted
What is the best way to implement a scene manager?
Forward declaring is totally OK. The alternative would be exactly what you pointed out, cyclic dependencies (assuming that you have #include in your ...
Top 50 recent answers are included
Related Tags
software-engineering × 625architecture × 92
c++ × 81
c# × 60
unity × 59
game-design × 43
java × 40
design-patterns × 30
2d × 29
game-mechanics × 25
mathematics × 22
3d × 21
graphics-programming × 21
algorithm × 20
graphics × 20
ai × 18
opengl × 15
physics × 15
multiplayer × 15
xna × 14
javascript × 14
entity-component-system × 14
networking × 12
android × 11
performance × 11