public void initialize(ScrapHeap game, GameSettings settings, CommandInterpreter interpreter, ControlSystem controlSystem, Menu menu, GameConsole console) { // initialize references to "global" variables m_game = game; m_settings = settings; m_interpreter = interpreter; m_controlSystem = controlSystem; m_menu = menu; m_console = console; }
// initialize the command interpreter public void initialize(ScrapHeap game, Player player, ScreenManager screenManager, ControlSystem controlSystem, GameSettings settings, GameConsole console) { m_game = game; m_player = player; m_screenManager = screenManager; m_controlSystem = controlSystem; m_settings = settings; m_console = console; }