Ejemplo n.º 1
0
 public Bomber(PictureBox _bomber, PictureBox[,] _mapPic, Condition[,] _map, Label lbScore)
 {
     bomber     = _bomber;
     score      = lbScore;
     step       = 5;
     countBombs = 3;
     lenFire    = 3;
     bombs      = new List <Bomb>();
     moving     = new MovingClass(_bomber, _mapPic, _map, AddBonus);
     ChandeScore();
 }
Ejemplo n.º 2
0
 public Enemy(PictureBox picEnemy, PictureBox[,] _mapPic, Condition[,] _map, Bomber _bomber)
 {
     enemy        = picEnemy;
     map          = _map;
     bomber       = _bomber;
     fmap         = new int[map.GetLength(0), map.GetLength(1)];
     path         = new Point[map.GetLength(0) * map.GetLength(1)];
     moving       = new MovingClass(picEnemy, _mapPic, _map, AddBonus);
     enemyPlace   = moving.MyNowPoint();
     destinePlace = enemyPlace;
     CreateTimer();
     timer.Enabled = true;
 }