コード例 #1
0
ファイル: KolobokView.cs プロジェクト: Lavlet/Tanks
        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);
        }
コード例 #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;
            }
        }
コード例 #3
0
ファイル: KolobokView.cs プロジェクト: Lavlet/Tanks
 public KolobokView(MovingObject.direction currentDirection, Point coordinates) : base(currentDirection, coordinates)
 {
 }
コード例 #4
0
 public abstract void ChangeImage(MovingObject.direction currentDirection);
コード例 #5
0
 public MovingObjectView(MovingObject.direction currentDirection, Point coordinates) : base(coordinates, null)
 {
     ChangeImage(currentDirection);
 }