예제 #1
0
        public InfoPane(gObject owner)
            : base(owner, 46, 350)
        {
            this.m_enemy = new ItemList<EnemyIcon>();
            for (int i = 0; i < 20; i++)
            {
                this.m_enemy.Add(new EnemyIcon(this));
            }

            this.m_font = new gFont(true);

            this.m_player1 = new PlayerLifeIcon(this, false);
            this.m_flagIcon = new FlagIcon(this);
        }
예제 #2
0
 public void AddSecondPlayer()
 {
     this.m_lifeCount2 = 2;
     this.m_player2 = new PlayerLifeIcon(this, true);
     this.m_player2.SetLocation(this.m_x + 4, this.m_y + 240);
 }
예제 #3
0
 public void RemoveSecondPlayer()
 {
     this.m_lifeCount2 = 0;
     this.m_player2.Dispose();
     this.m_player2 = null;
 }