예제 #1
0
 public void TryOn(GameProcess gp)
 {
     if (!Activated)
     {
         new InputPasswordForm(this, gp).ShowDialog();
     }
 }
예제 #2
0
        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;
 }