public ConfirmRestartState() { AssetName = "wholegame.confirmrestart"; MinimumConfidence = 300000; transitionClickOffset.X = 405; transitionClickOffset.Y = 260; transitionState = new PlayNowState(); }
public RareGemState() { AssetName = "wholegame.raregem"; MinimumConfidence = 300000; transitionClickOffset.X = 210; transitionClickOffset.Y = 390; transitionState = new PlayNowState(); }
public void FindStateFromScreenTest() { GameEngine game = new GameEngine(new Rectangle(1920,0,1440,900)); game.GameExtents = new Rectangle(2326, 333 ,525 ,435); //game.GameExtents = new Rectangle(1920 + 203, 333, 523, 432); PlayNowState target = new PlayNowState(); // TODO: Initialize to an appropriate value bool quickCheck = true; // TODO: Initialize to an appropriate value MatchingPoint expected = new MatchingPoint(); // TODO: Initialize to an appropriate value expected.Certainty = 151380; expected.X = 203; expected.Y = 333; expected.MaxCertaintyDelta = 92.580321039088346; expected.MinimumCertainty = 200000; expected.Resolution = 1; expected.Confident = true; MatchingPoint actual; target.Init(game); actual = target.FindStateFromScreen(quickCheck); Assert.AreEqual(expected.Certainty, actual.Certainty); }