supertux
|
A 'Currenton' allows access to the currently active instance of a class via the static current() function. More...
#include <currenton.hpp>
Static Public Member Functions | |
static C * | current () |
A 'Currenton' allows access to the currently active instance of a class via the static current() function.
It is kind of like a singleton, but without handling the object construction itself or in other words its a glorified global variable that points to the current instance of a class.