public void InitiateStateMachine() { DIKUArcade.Window.CreateOpenGLContext(); // Here you should: // (1) Initialize a GalagaBus with proper GameEventTypes // (2) Instantiate the StateMachine // (3) Subscribe the GalagaBus to proper GameEventTypes // and GameEventProcessors GameEventBus <object> GalagaBus = GalagaBus.eventBus(); StateMachine stateMachine = new StateMachine(); GalagaBus.GetBus().Subscribe(GameEventType.GameStateEvent, stateMachine); }