public DestroyCandyChange(Coordonate coordonateCandy) : base() { CoordonateCandy = coordonateCandy; Type = ChangeType.DestroyCandy; Dependent = new List <Coordonate>(); Dependent.Add(coordonateCandy); Affected = new List <Coordonate>(); Affected.Add(coordonateCandy); }
public CreateCandyChange(CandyType tipBomboana, Coordonate coordonateCandy) : base() { TipBomboana = tipBomboana; CoordonateCandy = coordonateCandy; Type = ChangeType.CreateCandy; Dependent = new List <Coordonate>(); Dependent.Add(coordonateCandy); Affected = new List <Coordonate>(); Affected.Add(coordonateCandy); }
public FallDownChange(Coordonate start, Coordonate finish) : base() { Start = start; Finish = finish; Type = ChangeType.FallDown; Affected = new List <Coordonate>(); Affected.Add(start); Affected.Add(finish); Dependent = new List <Coordonate>(); Dependent.Add(start); Dependent.Add(finish); }
public MoveAnimation(ImageCandy candy, Coordonate startCoordonate, Coordonate finishCoordonate, int height, int width, double time) : base() { MoveCandy = candy; this.startCoordonate = new Coordonate(startCoordonate.X * height, startCoordonate.Y * width); this.finishCoordonate = new Coordonate(finishCoordonate.X * height, finishCoordonate.Y * width); this.time = time; if (MoveCandy.Type == CandyType.Inimioara) { BitmapImage logo = new BitmapImage(); logo.BeginInit(); logo.UriSource = new Uri("C:\\Users\\Andreea Florea\\Desktop\\tenerife\\joculet T\\joculet\\Resources\\scaredHeart.png"); logo.EndInit(); MoveCandy.Source = logo; } }
public Move(Coordonate first, Coordonate second) { }
/// <summary> /// Creaza un obiect nou de tipul Slot /// </summary> /// <param name="i">Punctul de coordonate X</param> /// <param name="j">Punctul de coordonate Y</param> public Slot(int i, int j) { CurrentCoordonate = new Coordonate(i, j); }