コード例 #1
0
ファイル: CombatInventory.cs プロジェクト: squimmy/SimpleGame
        public CombatInventory(Battle battle)
        {
            InitializeComponent();
            inventoryPicture = new List<PictureBox>();
            inventoryLabel = new List<Label>();

            this.battle = battle;
            showPlayerInventory();
        }
コード例 #2
0
ファイル: BattleScreen.cs プロジェクト: squimmy/SimpleGame
 public BattleScreen(Player currentplayer)
 {
     InitializeComponent();
     battle = new Battle(currentplayer);
     this.PlayerName.Text = battle.player.Name;
     this.PlayerHP.Text = battle.player.HPText;
     this.MonsterName.Text = battle.monster.Name;
     this.MonsterHP.Text = battle.monster.HPText;
     this.PlayerPicture.Image = global::SimpleGame.Properties.Resources.player_image;
     this.MonsterPicture.Image = Art.GetMonsterImage(battle.monster.ID);
 }