コード例 #1
0
 public void TryOn(GameProcess gp)
 {
     if (!Activated)
     {
         new InputPasswordForm(this, gp).ShowDialog();
     }
 }
コード例 #2
0
ファイル: GameShop.cs プロジェクト: FStoneFW/Little-Man-game
        public GameShop(Shop shop, Character character, GameProcess gp)
        {
            InitializeComponent();
            this.shop      = shop;
            this.character = character;

            for (int i = 0; i < shop.ShopItems.Count; i++)
            {
                rectangles.Add(new Rectangle());
            }

            this.gp = gp;
        }
コード例 #3
0
        public void ToShop(Character ch, GameProcess gp)
        {
            if (Activated)
            {
                gp.pause = true;
                ISprite isprite;

                foreach (ShopItem si in ShopItems)
                {
                    if (si.GameImage.Image == null)
                    {
                        (isprite = si).LoadSprite();
                    }
                }

                new GameShop(this, ch, gp).ShowDialog();
            }
        }
コード例 #4
0
 public InputPasswordForm(SwitcherPassword spassword, GameProcess gameprocess)
 {
     InitializeComponent();
     this.spassword   = spassword;
     this.gameprocess = gameprocess;
 }
コード例 #5
0
 public GamePause(GameProcess gameprocess, GameMenu gamemenu)
 {
     InitializeComponent();
     this.gameprocess = gameprocess;
     this.gamemenu    = gamemenu;
 }