コード例 #1
0
 public void CheckInitializeRockImage()
 {
     if (!rockAnimImgInitilized)
     {
         RockAnimationSequence = new ImageSequenceHelper(MyRockViewModel.SetRockImage());
         rockAnimImgInitilized = true;
     }
 }
コード例 #2
0
        public void PlayRockImgSequence()
        {
            CheckInitializeRockImage();

            if (playerReached)
            {
                RockAnimationSequence.PlayFromStart();
            }
            else
            {
                MyRockViewModel.ChangeRockShapeToSpotlight();
            }
        }
コード例 #3
0
 public void DrawRockShapeWrtTrainSeq(int maxSeqNo)
 {
     if (TrainingSeq == 1)
     {
         MyRockViewModel.ChangeRockShapeToStart();
     }
     else if (TrainingSeq == maxSeqNo)
     {
         MyRockViewModel.ChangeRockShapeToEnd();
     }
     else
     {
         MyRockViewModel.ChangeRockShapeToIntermediate();
     }
 }
コード例 #4
0
        public void DrawRockShapeWrtBoulderStatus()
        {
            switch (BoulderStatus)
            {
            case RockOnBoulderStatus.Start:
                MyRockViewModel.ChangeRockShapeToStart();
                break;

            case RockOnBoulderStatus.Int:
            default:
                MyRockViewModel.ChangeRockShapeToIntermediate();
                break;

            case RockOnBoulderStatus.End:
                MyRockViewModel.ChangeRockShapeToEnd();
                break;
            }
        }
コード例 #5
0
 public void UndrawRockTrainingSeq()
 {
     MyRockViewModel.UndrawSequenceRockOnCanvas();
 }
コード例 #6
0
 public void SetRockTrainingSeqAndDraw(int seqNo, bool mirrorSeqNo = false)
 {
     TrainingSeq = seqNo;
     MyRockViewModel.DrawSequenceRockOnCanvas(seqNo, mirrorSeqNo);
 }
コード例 #7
0
 public void ResetRockSpotlightFX()
 {
     playerReached = false;
     MyRockViewModel.ChangeRockShapeToSpotlight();
 }