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(); } }
public PushDoor(Hansel pHansel, Gretel pGretel, InteractiveObject pIObj) : base(pHansel, pGretel, pIObj) { Progress = new SteppingProgress(); ActI = new ActivityInstruction(); ActI.SetThumbstickDirBoth(ActivityInstruction.ThumbstickDirection.Down); }
//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(); } }
public ChargeAmulet(Hansel pHansel, Gretel pGretel, InteractiveObject pIObj) : base(pHansel, pGretel, pIObj) { Progress = new SteppingProgress(); ActI = new ActivityInstruction(); ActI.SetThumbstickDirBoth(ActivityInstruction.ThumbstickDirection.Up); }
public KnockOverTree(Hansel pHansel, Gretel pGretel, InteractiveObject pIObj) : base(pHansel, pGretel, pIObj) { StartPosition = Vector2.Zero; Direction = Vector2.Zero; Progress = new SteppingProgress(); ActI = new ActivityInstruction(); }
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); }
/* * //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); } }
public PushRock(Hansel pHansel, Gretel pGretel, InteractiveObject pIObj) : base(pHansel, pGretel, pIObj) { Progress = new SteppingProgress(Hardcoded.PushRock_SteppingDuration); ActI = new ActivityInstruction(); }
public LegUp(Hansel pHansel, Gretel pGretel, InteractiveObject pIObj) : base(pHansel, pGretel, pIObj) { Progress = new SteppingProgress(); ActI = new ActivityInstruction(); }