public Player(PictureBox _player, PictureBox[,] _mapPic, Sost[,] _map, Label lbScore) { player = _player; step = 3; score = lbScore; countBomb = 3; lenFire = 3; bombs = new List <Bomb>(); moving = new MovingClass(_player, _mapPic, _map, AddBonus); ChangeScore(); }
public Mob(PictureBox picMob, PictureBox[,] _mapPic, Sost[,] _map, Player _player) { mob = picMob; map = _map; player = _player; fmap = new int[map.GetLength(0), map.GetLength(1)]; path = new Point[map.GetLength(0) * map.GetLength(1)]; moving = new MovingClass(picMob, _mapPic, _map, addBonus); mobPlace = moving.MyCurrentPossition(); destinPlace = mobPlace; CreateTimer(); timer.Enabled = true; }