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