示例#1
0
        public void Draw(Graphics g)
        {
            this.P1Play.Draw(g);


            foreach (Wall wall in wallList)
            {
                wall.Draw(g);
            }
            foreach (Water water in waterList)
            {
                water.Draw(g);
            }
            foreach (Steel steel in steelList)
            {
                steel.Draw(g);
            }
            foreach (Missile missile in missileList)
            {
                missile.Draw(g);
            }
            foreach (Enemy enemy in enemyList)
            {
                enemy.Draw(g);
            }
            if (this.symbol != null)
            {
                symbol.Draw(g);
            }
            foreach (Grass grass in grassList)
            {
                grass.Draw(g);
            }
        }
示例#2
0
文件: Scene.cs 项目: RyanZhou97/Tank
 public void Draw(Graphics g)
 {
     if (play1 != null)
     {
         this.P1Play.Draw(g);
     }
     if (play2 != null && numflag == 1)
     {
         this.P2Play.Draw(g);
     }
     foreach (Grass grass in grassList)
     {
         grass.Draw(g);
     }
     foreach (Wall wall in wallList)
     {
         wall.Draw(g);
     }
     foreach (Water water in waterList)
     {
         water.Draw(g);
     }
     foreach (Steel steel in steelList)
     {
         steel.Draw(g);
     }
     foreach (Missile missile in missileList)
     {
         missile.Draw(g);
     }
     foreach (Enemy enemy in enemyList)
     {
         enemy.Draw(g);
     }
     foreach (Star star in starList)
     {
         star.Draw(g);
     }
     if (this.symbol != null && pvp == 0)
     {
         symbol.Draw(g);
     }
     if (this.boss != null)
     {
         boss.Draw(g);
     }
 }