Exemplo n.º 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);
        }
Exemplo n.º 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;
            }
        }
Exemplo n.º 3
0
 public KolobokView(MovingObject.direction currentDirection, Point coordinates) : base(currentDirection, coordinates)
 {
 }
Exemplo n.º 4
0
 public abstract void ChangeImage(MovingObject.direction currentDirection);
Exemplo n.º 5
0
 public MovingObjectView(MovingObject.direction currentDirection, Point coordinates) : base(coordinates, null)
 {
     ChangeImage(currentDirection);
 }