コード例 #1
0
    public static void Initialize()
    {
        loadAlpha = 0;

        gameState = GameState.MainMenu;
        menuState = MenuState.MainMenu;

        mainMenu      = new MainMenu();
        instructions  = new Instructions();
        options       = new Options();
        loading       = new Loading();
        loseMod       = new LoseMod();
        wonMod        = new WonMod();
        chooseLevel   = new ChooseLevel();
        mouseInst     = new MouseInstructions();
        keyboardInst  = new KeyboardInstructions();
        objectiveInst = new ObjectiveInstructions();
    }
コード例 #2
0
ファイル: Processor.cs プロジェクト: PontusPih/core8
        public Processor(IMemory memory, IRegisters registers, ITeleprinter teleprinter)
        {
            Memory      = memory ?? throw new ArgumentNullException(nameof(memory));
            Teleprinter = teleprinter ?? throw new ArgumentNullException(nameof(teleprinter));
            Registers   = registers ?? throw new ArgumentNullException(nameof(registers));

            Interrupts = new Interrupts(registers, memory, teleprinter);

            group1Instructions          = new Group1Instructions(this);
            group3Instructions          = new Group3Instructions(this);
            memoryReferenceInstructions = new MemoryReferenceInstructions(this);
            noOperationInstruction      = new NoOperationInstruction(this);

            group2ANDInstructions            = new Group2ANDInstructions(this);
            group2ORInstructions             = new Group2ORInstructions(this);
            memoryManagementInstructions     = new MemoryManagementInstructions(this);
            keyboardInstructions             = new KeyboardInstructions(this);
            teleprinterInstructions          = new TeleprinterInstructions(this);
            interruptInstructions            = new InterruptInstructions(this);
            privilegedNoOperationInstruction = new PrivilegedNoOperationInstruction(this);
        }