示例#1
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();
 }
示例#2
0
 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);
 }
示例#3
0
 public ItemHandler()
 {
     LanternLight            = new PointLight();
     LanternLight.Intensity  = Hardcoded.Lantern_Intensity;
     LanternLight.LightColor = Hardcoded.Lantern_LightColor;
     LanternLight.Depth      = Hardcoded.Lantern_Height;
     LanternLight.Radius     = Hardcoded.Lantern_Radius;
     LanternRaiseProgress    = new SteppingProgress(Hardcoded.Lantern_RaiseSteppingDuration);
 }
示例#4
0
 public static void UpdateActIProgress(SteppingProgress pProgress, ActivityInstruction pActI, Player pPlayer, Vector2 pThumbstickDirection, bool AllowStepBack = true)
 {
     if (!Conditions.ActionThumbstickPressed(pPlayer, pThumbstickDirection))
     {
         pActI.SetFadingState(pPlayer, true);
         if (AllowStepBack)
         {
             pProgress.StepBackward();
         }
     }
     else
     {
         pActI.SetFadingState(pPlayer, false, false);
         pProgress.StepForward();
     }
 }
示例#5
0
        public override void Initialize()
        {
#if DEBUG
            EngineSettings.IsDebug = true;
#endif
            //GameState
            mState         = GameState.Running;
            mEndGameFading = new SteppingProgress(Hardcoded.End_FadingDuration);
            //Player
            mHansel = new Hansel();
            mGretel = new Gretel();
            mHansel.mCurrentActivity = ActivityHandler.None;
            mGretel.mCurrentActivity = ActivityHandler.None;
            //Camera
            mCamera = new Camera();
            //Savegame
            mSavegame = new Savegame();
            //Logic
            mLogic = new Logic();
            //PauseMenu
            mPauseMenu = new PauseMenu();

            FmodMediaPlayer.FadingSpeed = 1 / 90.0f;
        }
示例#6
0
 public PushRock(Hansel pHansel, Gretel pGretel, InteractiveObject pIObj)
     : base(pHansel, pGretel, pIObj)
 {
     Progress = new SteppingProgress(Hardcoded.PushRock_SteppingDuration);
     ActI     = new ActivityInstruction();
 }
 public TemperatureHandler()
 {
     Frost = new SteppingProgress(Hardcoded.Temp_SteppingDuration);
 }
示例#8
0
 public override void Initialize()
 {
     mCamera    = new Camera();
     State      = FadingState.FadeIn;
     Visibility = new SteppingProgress(2f);
 }
示例#9
0
 public LegUp(Hansel pHansel, Gretel pGretel, InteractiveObject pIObj)
     : base(pHansel, pGretel, pIObj)
 {
     Progress = new SteppingProgress();
     ActI     = new ActivityInstruction();
 }