14-01-2017 19:03 via gamedev.net

Alternative to Implementing Character Class as Singleton - GameDev.net

Alternative to Implementing Character Class as Singleton
GameDev.net
I am implementing the player character of my game as a class, and I only need one instance. I want the code to reflect this "single instance" requirement by allowing only one instance to be made. I'm currently looking into the Singleton pattern; it ...
Read more »