// ===== #region Update // Update protected override void Update(GameTime gameTime) { // Entry logging #if IS_LOGGING_METHODS Log.Write("Entering method"); Log.Write("============================================"); Log.Write("*** NOW ENTERING NEW GAME LOOP ITERATION ***"); Log.Write("============================================"); #endif // Update clock Globals.Clock.Update(gameTime.ElapsedGameTime, gameTime.TotalGameTime); // Update monitor #if IS_MONITORING Globals.Monitor.Update(); #endif // Update base base.Update(gameTime); #if IS_MONITORING Globals.Monitor.StopStart(); #endif // Update globals Globals.Update(); // Exit logging #if IS_LOGGING_METHODS Log.Write("Exiting method"); #endif }
public async override Task <bool> Heal() { Globals.Update(); if (await MySpells.DivineShieldMethod()) { return(true); } if (await MySpells.LayOnHandsMethod()) { return(true); } if (await MySpells.HotkeysMethod()) { return(true); } if (SpellManager.GlobalCooldown) { return(false); } if (await MySpells.FlashOfLightMethod()) { return(true); } if (await MySpells.BlessingOfProtectionMethod()) { return(true); } if (await MySpells.BlessingOfSacrificeMethod()) { return(true); } if (await MySpells.BlessingOfFreedomMethod()) { return(true); } if (await MySpells.HandOfTheProtectordMethod()) { return(true); } /*if (Settings.UseCleanse && await MySpells.CleanseMethod()) return true;*/ return(false); }
public void Update() { if (Globals.GameOver) { return; } Globals.Update(Time.deltaTime); ComputeMousePosition(); ClickListener(); var result = _controller.TrySetPosition(_mousePosition); if (!result) { Globals.GameOver = true; } }
public void Update() { if (Globals.GameOver) { return; } Globals.Update(Time.deltaTime); Frame frame = _handController.GetFrame(); Hand hand = frame.Hands.Rightmost; checkGrabbed(hand); getHandPosition(hand); var result = _controller.TrySetPosition(_handPosition); if (!result) { Globals.GameOver = true; } }
void Update() { _frameworkObjects.Update(Time.deltaTime); Globals.Update(Time.deltaTime); }
public async override Task <bool> Heal() { Globals.Update(); if (await MySpells.DivineShieldMethod()) { return(true); } if (await MySpells.ShieldOfVengeanceMethod()) { return(true); } if (await MySpells.LayOnHandsMethod()) { return(true); } if (await MySpells.HotkeysMethod()) { return(true); } if (Settings.HealthstoneUse && await Items.Healthstone()) { return(true); } if (await MySpells.BlessingOfProtectionMethod()) { return(true); } // Global Cooldown if (SpellManager.GlobalCooldown) { return(false); } if (await MySpells.BlessingOfSanctuaryMethod()) { return(true); } if (await MySpells.EyeForAnEyeMethod()) { return(true); } if (await MySpells.WordOfGloryMethod()) { return(true); } if (await MySpells.BlessingOfFreedomMethod()) { return(true); } if (await MySpells.FlashOfLightMethod()) { return(true); } if (await MySpells.SealOfLightMethod()) { return(true); } /*if (Settings.UseCleanse && await MySpells.CleanseMethod()) return true;*/ return(false); }
public async override Task <bool> Heal() { Globals.Update(); Globals.UpdateCombatHoly(); if (Settings.AutoTarget) { AutoTarget(); } if (await MySpells.HotkeysMethod()) { return(true); } // if (await MySpells.RacialsMethod()) return true; if (await MySpells.LayOnHandsMethod()) { return(true); } if (StyxWoW.Me.IsCasting) { return(false); } if (await MySpells.BlessingOfProtectionMethod()) { return(true); } if (await MySpells.BlessingOfSacrificeMethod()) { return(true); } if (await MySpells.LightOfDawnMethod()) { return(true); } // Light of Martyr if (await MySpells.BestowFaithMethod()) { return(true); // TALENT } if (await MySpells.HolyShockMethod()) { return(true); } if (await MySpells.BlessingOfFreedomMethod()) { return(true); } // if (await MySpells.CleanseMethod()) return true; if (await MySpells.FlashOfLightMethod()) { return(true); } if (await MySpells.HolyLightMethod()) { return(true); } return(false); }