addScreen
Registers an instance of Screen.
Parameters
Type
concrete class of the Screen instance. The implementation assumes that screens are singletons and only one implementation of each class will be registered.
See also
Throws
GdxRuntimeException
if a screen of selected type is already registered. Use removeScreen first to replace the screen.
Registers an instance of Screen. Override this method to change the way screens are registered.
Parameters
type
concrete class of the Screen instance. The implementation assumes that screens are singletons and only one implementation of each class will be registered.