コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     Gamemana    = GameObject.Find("GameManager");
     Gamemanager = Gamemana.GetComponent <GameManager>();
     Atari       = GameObject.Find("Atari");
     atari       = Atari.GetComponent <Atari>();
     NotificationImage.SetActive(false);
     CloseButton.SetActive(false);
     NotificationHantei = 0;
 }
コード例 #2
0
        public Television(Compound gui, Point location, Mapper cart, SignalType s)
            : base(gui, new Rectangle(location, new Size(320, 264)), null)
        {
            atari = new Atari(cart);
            atari.SetSignal(s);

            j = new cstari.input.Joystick();

            atari.plug(j, null);

            display = new Surface(320, 264);
        }
コード例 #3
0
        public Disassembler(Compound gui, Atari a)
            : base(gui, new Rectangle(32, 32, 395 + 32 + 16, 208 + 36 + 32), new DisplayCaption("Disassembler"), new List <Atom>())
        {
            atari = a;

            List <DisplayCaption> radioList = new List <DisplayCaption>();

            radioList.Add(new DisplayCaption("Cartridge"));
            radioList.Add(new DisplayCaption("RIOT"));

            followPC = true;

            // Create other thingers here

            Add(new CheckBox(gui, new Rectangle(0, 0, 128, 16), new DisplayCaption("Follow PC"), followPC, follow));
            Add(new CheckBox(gui, new Rectangle(0, 20, 128, 16), new DisplayCaption("Dump Trace"), false, atari.setTrace));
            Add(scrollBar = new Scroll(gui, new Rectangle(395 + 16, 0, 16, 208), new Range(0, 0), addressChanged));

            Add(address     = new Lable(gui, new Rectangle(128, 0, 44, 208), "", Alignment.RIGHT, Color.Black, DisplaySettings.fixedPointFont));
            Add(instruction = new Lable(gui, new Rectangle(176, 0, 136, 208), "", Alignment.LEFT, Color.White, DisplaySettings.fixedPointFont));
            Add(data        = new Lable(gui, new Rectangle(316, 0, 79, 208), "", Alignment.LEFT, Color.LightBlue, DisplaySettings.fixedPointFont));

            Add(modEdit = new EditBox(gui, new Rectangle(304, 215, 64, 20), "", null));

            Add(new Radio(gui, new Rectangle(0, 40, 100, 16), radioList, baseChanged));
            Add(PCLable = new Lable(gui, new Rectangle(40, 84, 80, 16), "", Alignment.LEFT, Color.Black, DisplaySettings.fixedPointFont));
            Add(ALable  = new Lable(gui, new Rectangle(40, 104, 80, 16), "", Alignment.LEFT, Color.Black, DisplaySettings.fixedPointFont));
            Add(XLable  = new Lable(gui, new Rectangle(40, 124, 80, 16), "", Alignment.LEFT, Color.Black, DisplaySettings.fixedPointFont));
            Add(YLable  = new Lable(gui, new Rectangle(40, 144, 80, 16), "", Alignment.LEFT, Color.Black, DisplaySettings.fixedPointFont));
            Add(SLable  = new Lable(gui, new Rectangle(40, 164, 80, 16), "", Alignment.LEFT, Color.Black, DisplaySettings.fixedPointFont));
            Add(PLable  = new Lable(gui, new Rectangle(40, 184, 80, 16), "", Alignment.LEFT, Color.Black, DisplaySettings.fixedPointFont));
            Add(new Lable(gui, new Rectangle(0, 84, 32, 16), "PC", Alignment.RIGHT, Color.White, DisplaySettings.fixedPointFont));
            Add(new Lable(gui, new Rectangle(0, 104, 32, 16), "A", Alignment.RIGHT, Color.White, DisplaySettings.fixedPointFont));
            Add(new Lable(gui, new Rectangle(0, 124, 32, 16), "X", Alignment.RIGHT, Color.White, DisplaySettings.fixedPointFont));
            Add(new Lable(gui, new Rectangle(0, 144, 32, 16), "Y", Alignment.RIGHT, Color.White, DisplaySettings.fixedPointFont));
            Add(new Lable(gui, new Rectangle(0, 164, 32, 16), "S", Alignment.RIGHT, Color.White, DisplaySettings.fixedPointFont));
            Add(new Lable(gui, new Rectangle(0, 184, 32, 16), "P", Alignment.RIGHT, Color.White, DisplaySettings.fixedPointFont));
            Add(new Button(gui, new Rectangle(0, 212, 48, 26), new DisplayCaption("Run"), atari.run));
            Add(new Button(gui, new Rectangle(52, 212, 48, 26), new DisplayCaption("Stop"), atari.stop));
            Add(new Button(gui, new Rectangle(104, 212, 48, 26), new DisplayCaption("Step"), step));
            Add(new Button(gui, new Rectangle(156, 212, 72, 26), new DisplayCaption("Jump To"), jumpTo));
            Add(new Button(gui, new Rectangle(232, 212, 64, 26), new DisplayCaption("Run To"), runTo));

            focusAddress = atari.m_PC;

            baseChanged(0);
        }
コード例 #4
0
ファイル: Creater.cs プロジェクト: marikann/DesignPatterns
        public Game FactoryMethod(Games gameType)
        {
            Game game = null;

            switch (gameType)
            {
            case Games.Atari:
                game = new Atari();
                break;

            case Games.PC:
                game = new PC();
                break;

            case Games.PS:
                game = new PS();
                break;
            }
            return(game);
        }
コード例 #5
0
    public Oyun FactoryMethod(Oyunlar OyunTipi)
    {
        Oyun oyun = null;

        switch (OyunTipi)   // if else de olur ayrım burdan kaynaklıdır
        {
        case Oyunlar.Atari:
            oyun = new Atari();
            break;

        case Oyunlar.PC:
            oyun = new PC();
            break;

        case Oyunlar.PS:
            oyun = new PS();
            break;
        }
        return(oyun);
    }
コード例 #6
0
            public Oyun FactoryMethod(Oyunlar OyunTipi)
            {
                Oyun oyun = null;

                switch (OyunTipi)
                {
                case Oyunlar.Atari:
                    oyun = new Atari();
                    break;

                case Oyunlar.PC:
                    oyun = new PC();
                    break;

                case Oyunlar.PS:
                    oyun = new PS();
                    break;
                }
                return(oyun);
            }
コード例 #7
0
    public int ShakeCount = 0;                          //地震発生のカメラ振動を捕える補数。初期値0


    // Start is called before the first frame update
    void Start()
    {
        // オープニング
        GameOpening();
        SinarioFlag    = 0;
        MapDisplayFlag = 0;
        ShakeCount     = 0;
        Efect.SetActive(false);
        Siya.SetActive(false);
        StartCamera.SetActive(true);
        OtherCamara.SetActive(false);
        //Trajectory.SetActive(false);
        ResultCamera.SetActive(false);
        //NPC.SetActive(false);
        Wave.GetComponent <WaveController>().enabled = false;
        Player.gameObject.GetComponent <UnityChanControlScriptWithRgidBody>().enabled = false;
        //GetComponent<NPCControl>().enabled = false;
        ControllText.SetActive(false);
        audioSource.SetActive(false);
        MapDisplay.SetActive(false);
        HinanArea.SetActive(false);
        Notification.SetActive(false);
        Atari      = GameObject.Find("Atari");
        atari      = Atari.GetComponent <Atari>();
        AreaCount  = GameObject.Find("hinanarea (2)");
        HinanCount = AreaCount.GetComponent <HinanAreaCount>();
        HighCount  = GameObject.Find("hinanarea (1)");
        HighHinan  = HighCount.GetComponent <HighHinanAreaCount>();
        //HighCount = GameObject.Find("hinanarea (1)");
        //HighhinanCount = HighCount.GetComponent<HinanareaCount>();
        //Changer = GameObject.Find("MainCamera");
        Camerachanger = OtherCamara.GetComponent <CameraChanger>();
        if (HinanCount.AreaCount == 0)
        {
            FinishButton.SetActive(false);
        }
    }