Beispiel #1
0
        public override void DoUpdate(GameTime gameTime)
        {
            if (AnimationPhase == AnimationPhases.IntroAnimation)
            {
                RotationTimer += 0.1f;

                if (RotationTimer > AnimationTime || InputHelper.InputConfirmPressed())
                {
                    AnimationPhase = AnimationPhases.CardSummary;
                }
            }
            else if (AnimationPhase == AnimationPhases.CardSummary && InputHelper.InputConfirmPressed())
            {
                RotationTimer  = 0f;
                AnimationPhase = AnimationPhases.Outro;
            }
            else if (AnimationPhase == AnimationPhases.Outro)
            {
                RotationTimer += 0.1f;

                if (RotationTimer > AnimationTime || InputHelper.InputConfirmPressed())
                {
                    FinishPhase();
                }
            }
        }
Beispiel #2
0
 public override void DoUpdate(GameTime gameTime)
 {
     if (AnimationPhase == AnimationPhases.IntroAnimation)
     {
         AnimationPhase = AnimationPhases.CardSelection;
     }
     else if (AnimationPhase == AnimationPhases.CardSelection)
     {
         HandleCardSelection();
     }
 }
Beispiel #3
0
        public override void DoRead(ByteReader BR)
        {
            AnimationPhase = AnimationPhases.IntroAnimation;

            ActivePlayerIndex = BR.ReadInt32();

            int ListCardInHandCount = BR.ReadInt32();

            ActivePlayer.ListCardInHand.Clear();
            for (int C = 0; C < ListCardInHandCount; ++C)
            {
                ActivePlayer.ListCardInHand.Add(Card.LoadCard(BR.ReadString(), Map.Content));
            }
        }
Beispiel #4
0
        public override void OnSelect()
        {
            AnimationPhase = AnimationPhases.IntroAnimation;
            DrawnCard      = ActivePlayer.ListRemainingCardInDeck[0];

            ActivePlayer.ListCardInHand.Add(DrawnCard);

            ActivePlayer.ListRemainingCardInDeck.RemoveAt(0);

            if (ActivePlayer.ListRemainingCardInDeck.Count == 0)
            {
                AddToPanelListAndSelect(new ActionPanelRefillDeckPhase(Map, ActivePlayerIndex));
            }
        }
Beispiel #5
0
 public override void OnSelect()
 {
     AnimationPhase  = AnimationPhases.IntroAnimation;
     CardCursorIndex = 0;
     AnimationTimer  = 0;
 }