예제 #1
0
        public DestroyCandyChange(Coordonate coordonateCandy)
            : base()
        {
            CoordonateCandy = coordonateCandy;
            Type            = ChangeType.DestroyCandy;

            Dependent = new List <Coordonate>();
            Dependent.Add(coordonateCandy);
            Affected = new List <Coordonate>();
            Affected.Add(coordonateCandy);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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;
            }
        }
예제 #5
0
 public Move(Coordonate first, Coordonate second)
 {
 }
예제 #6
0
 /// <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);
 }