コード例 #1
0
 public static void UpdateActIProgressBothLegUp(SteppingProgress pProgress, ActivityInstruction pActI, Player pPlayer, Player pOtherPlayer, Vector2 pThumbstickDirection)
 {
     if (!Conditions.ActionThumbstickPressed(pPlayer, pThumbstickDirection) || !Conditions.ActionHold(pOtherPlayer))
     {
         if (!Conditions.ActionThumbstickPressed(pPlayer, pThumbstickDirection))
         {
             pActI.SetFadingState(pPlayer, true);
         }
         else
         {
             pActI.SetFadingState(pPlayer, false, false);
         }
         if (!Conditions.ActionHold(pOtherPlayer))
         {
             pActI.SetFadingState(pOtherPlayer, true);
         }
         else
         {
             pActI.SetFadingState(pOtherPlayer, false, false);
         }
         pProgress.StepBackward();
     }
     else
     {
         pActI.SetFadingState(pPlayer, false, false);
         pActI.SetFadingState(pOtherPlayer, false, false);
         pProgress.StepForward();
     }
 }
コード例 #2
0
 public PushDoor(Hansel pHansel, Gretel pGretel, InteractiveObject pIObj)
     : base(pHansel, pGretel, pIObj)
 {
     Progress = new SteppingProgress();
     ActI     = new ActivityInstruction();
     ActI.SetThumbstickDirBoth(ActivityInstruction.ThumbstickDirection.Down);
 }
コード例 #3
0
 //ActivityInstruction & Progress Update
 public static void UpdateActIProgressBoth(SteppingProgress pProgress, ActivityInstruction pActI, Player pPlayer, Player pOtherPlayer, Vector2 pThumbstickDirection, bool AllowStepBack = true)
 {
     if (!Conditions.ActionThumbstickPressedBothPlayer(pPlayer, pOtherPlayer, pThumbstickDirection))
     {
         if (!Conditions.ActionThumbstickPressed(pPlayer, pThumbstickDirection))
         {
             pActI.SetFadingState(pPlayer, true);
         }
         else
         {
             pActI.SetFadingState(pPlayer, false, false);
         }
         if (!Conditions.ActionThumbstickPressed(pOtherPlayer, pThumbstickDirection))
         {
             pActI.SetFadingState(pOtherPlayer, true);
         }
         else
         {
             pActI.SetFadingState(pOtherPlayer, false, false);
         }
         if (AllowStepBack)
         {
             pProgress.StepBackward();
         }
     }
     else
     {
         pActI.SetFadingState(pPlayer, false, false);
         pActI.SetFadingState(pOtherPlayer, false, false);
         pProgress.StepForward();
     }
 }
コード例 #4
0
 public ChargeAmulet(Hansel pHansel, Gretel pGretel, InteractiveObject pIObj)
     : base(pHansel, pGretel, pIObj)
 {
     Progress = new SteppingProgress();
     ActI     = new ActivityInstruction();
     ActI.SetThumbstickDirBoth(ActivityInstruction.ThumbstickDirection.Up);
 }
コード例 #5
0
 public KnockOverTree(Hansel pHansel, Gretel pGretel, InteractiveObject pIObj)
     : base(pHansel, pGretel, pIObj)
 {
     StartPosition = Vector2.Zero;
     Direction     = Vector2.Zero;
     Progress      = new SteppingProgress();
     ActI          = new ActivityInstruction();
 }
コード例 #6
0
ファイル: UseWell.cs プロジェクト: HaenselUndGretel/HG_Game
 public UseWell(Hansel pHansel, Gretel pGretel, InteractiveObject pIObj)
     : base(pHansel, pGretel, pIObj)
 {
     Progress = new SteppingProgress();
     ActI     = new ActivityInstruction();
     ActI.SetThumbstickDir(pHansel, ActivityInstruction.ThumbstickDirection.Rotate);
     ActI.SetThumbstickDir(pGretel, ActivityInstruction.ThumbstickDirection.None);
 }
コード例 #7
0
        /*
         * //EndeGelände
         * public static void End(ref GameScene.GameState pGameState)
         * {
         *      //So ist das nicht passiert...
         *      pGameState = GameScene.GameState.End;
         * }
         */

        //Draw
        public static void DrawActI(ActivityInstruction pActI, SpriteBatch pSpriteBatch, Player pPlayer, Player pOtherPlayer)
        {
            if (pPlayer.GetType() == typeof(Hansel))
            {
                pActI.Draw(pSpriteBatch, (Hansel)pPlayer, (Gretel)pOtherPlayer);
            }
            else
            {
                pActI.Draw(pSpriteBatch, (Hansel)pOtherPlayer, (Gretel)pPlayer);
            }
        }
コード例 #8
0
ファイル: PushRock.cs プロジェクト: HaenselUndGretel/HG_Game
 public PushRock(Hansel pHansel, Gretel pGretel, InteractiveObject pIObj)
     : base(pHansel, pGretel, pIObj)
 {
     Progress = new SteppingProgress(Hardcoded.PushRock_SteppingDuration);
     ActI     = new ActivityInstruction();
 }
コード例 #9
0
ファイル: LegUp.cs プロジェクト: HaenselUndGretel/HG_Game
 public LegUp(Hansel pHansel, Gretel pGretel, InteractiveObject pIObj)
     : base(pHansel, pGretel, pIObj)
 {
     Progress = new SteppingProgress();
     ActI     = new ActivityInstruction();
 }