2 ms·
You're making a false equivalence here. Yes, the game industry is moving away from inheritance and for the reasons you note and others. That doesn't at all mea
by munificent 12y ago
You're making a false equivalence here. Yes, the game industry is moving away from inheritance and for the reasons you note and others.
That doesn't at all mean the game industry is moving away from OOP. Classes and methods still abound and work perfectly fine. Even if you go whole-hog towards ECS, the stuff you're passing around is usually still an instance of some class and not a bare public struct.
Encapsulating data and providing higher-level methods to operate on it works really well. Polymorphism is also powerful and useful in many places. Even subclassing is a good fit for some things. But just realizing that you need to dial back on subclassing doesn't imply that the first one or two things on my list are broken.