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); } }
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); } }