Exemple #1
0
        public override void ChangeImage(MovingObject.direction currentDirection)
        {
            switch (currentDirection)
            {
            case MovingObject.direction.Down:
                CurrentImage = Properties.Resources.KolobokDown;
                break;

            case MovingObject.direction.Up:
                CurrentImage = Properties.Resources.KolobokUp;
                break;

            case MovingObject.direction.Right:
                CurrentImage = Properties.Resources.KolobokRight;
                break;

            case MovingObject.direction.Left:
                CurrentImage = Properties.Resources.KolobokLeft;
                break;

            case MovingObject.direction.None:
                break;
            }
            //  currentImage.MakeTransparent(Color.White);
        }
Exemple #2
0
        public override void ChangeImage(MovingObject.direction currentDirection)
        {
            switch (currentDirection)
            {
            case MovingObject.direction.Down:
                CurrentImage = Properties.Resources.TankDown;
                break;

            case MovingObject.direction.Up:
                CurrentImage = Properties.Resources.TankUp;
                break;

            case MovingObject.direction.Right:
                CurrentImage = Properties.Resources.TankRight;
                break;

            case MovingObject.direction.Left:
                CurrentImage = Properties.Resources.TankLeft;
                break;

            case MovingObject.direction.None:
                break;
            }
        }
Exemple #3
0
 public KolobokView(MovingObject.direction currentDirection, Point coordinates) : base(currentDirection, coordinates)
 {
 }
Exemple #4
0
 public abstract void ChangeImage(MovingObject.direction currentDirection);
Exemple #5
0
 public MovingObjectView(MovingObject.direction currentDirection, Point coordinates) : base(coordinates, null)
 {
     ChangeImage(currentDirection);
 }