// The main method used public static bool UseBluePower(Mobile from, Type t) { if (t == null) { return(false); } else if (Array.IndexOf(m_Spells, t) == -1) { return(false); } else if (t.IsSubclassOf(typeof(BlueMove))) { BlueMove bluemove = NewMove(t, from); if (bluemove != null) { BlueMove.SetCurrentMove(from, bluemove); from.SendMessage("You prepare to use a monster's special attack"); return(true); } } else if (t.IsSubclassOf(typeof(BlueSpell))) { BlueSpell bluespell = BlueSpellInfo.NewSpell(t, from); if (bluespell != null) { bluespell.Cast(); return(true); } } return(false); }
private void GameOver() { ZebraMover.Stop(); BlueMove.Stop(); PurpleMove.Stop(); GreenMove.Stop(); GameEnd.Visible = true; PlayAgainButton.Visible = true; }
private void GameOver() { ZebraMover.Stop(); BlueMove.Stop(); PurpleMove.Stop(); GreenMove.Stop(); GameEnd.Visible = true; PlayAgainButton.Visible = true; //Stops orange car from moving MoveUp.Stop(); MoveDown.Stop(); MoveRight.Stop(); MoveLeft.Stop(); }
// Checks if the mobile is a blue mage and know it, this method can teach the spell if learn is true. public static bool CheckKnown( Mobile m, BlueMove move, bool learn ) { return CheckKnown( m, move.GetType(), learn ); }
// Checks if the mobile is a blue mage and know it, this method can teach the spell if learn is true. public static bool CheckKnown(Mobile m, BlueMove move, bool learn) { return(CheckKnown(m, move.GetType(), learn)); }