//------------------------------------------------------------------------- public void Notify(int selected, int clicked) { // HANDLE HINTS. if (clicked == 4 && !lockAlreadyClicked_ && selected != 1) { // if lock was clicked first time ... lockAlreadyClicked_ = true; Color ye = new Color(1.0f, 1.0f, 0.0f, 1.0f); string text0 = "The keyhole of this lock is unusual in that it seems to aim both ways, inside and out."; DialogField.Display(text0, ye, 0.0f, 5.0f); } if (clicked == 6 && !guardAlreadyClicked_) { // if guard was clicked first time ... guardAlreadyClicked_ = true; Color ye = new Color(1.0f, 1.0f, 0.0f, 1.0f); string text0 = "The soldier appears to be in his mid-20's but despite his youth, you sense he is a competent soldier."; DialogField.Display(text0, ye, 0.0f, 5.0f); } if (clicked == 0 && !stoneAlreadyClicked_) { // if stone was clicked first time ... stoneAlreadyClicked_ = true; Color ye = new Color(1.0f, 1.0f, 0.0f, 1.0f); string text0 = "You happen upon a stone that has conveniently sharp points."; DialogField.Display(text0, ye, 0.0f, 5.0f); } if (clicked == 3 && !chocoladeAlreadyClicked_) { chocoladeAlreadyClicked_ = true; Color ye = new Color(1.0f, 1.0f, 0.0f, 1.0f); string text0 = "The guards have confiscated all of your gear except for this piece of chocolate."; DialogField.Display(text0, ye, 0.0f, 5.0f); } if (clicked == 7 && !ratHoleAlreadyClicked_) { ratHoleAlreadyClicked_ = true; Color ye = new Color(1.0f, 1.0f, 0.0f, 1.0f); string text0 = "A small mouse hole is at the bottom of the Western wall."; DialogField.Display(text0, ye, 0.0f, 5.0f); } // pick up rat bones if (clicked == 1 && !ratBonesAlreadyClicked) { ratBonesAlreadyClicked = true; Color ye = new Color(1.0f, 1.0f, 0.0f, 1.0f); string text0 = "You recall from your training that you can utilize the bones of small creatures to pick locks."; DialogField.Display(text0, ye, 0.0f, 3.5f); } // put chocolate on the ground if (selected == 3 && clicked == 5) { manager.SetIsInventory(3, false); manager.SetPosition(3, new Vector2(-2.2f, -2.2f)); manager.SetIsActive(5, false); RatAnimation.Play(0.5f, 0); RatMove.MoveTo(new Vector2(-3.5f, -2.0f), 4.0f); isRatKillable = true; } // kills the rat if (selected == 0 && clicked == 2 && isRatKillable == true) { RatSound.Play(); manager.SetIsActive(2, false); manager.SetIsActive(1, true); manager.SetIsInventory(1, false); manager.SetPosition(1, new Vector2(-3.5f, -2.0f)); manager.Unselect(); } // opens the door if (selected == 1 && clicked == 4) { Vector2 posGuard = manager.GetPosition(6); if (posGuard.x < 5.5f && posGuard.x > -1.0f) { manager.Unselect(); RatAnimation.Stop(); Patrolling.isPatrolling = false; GuardAnimation.Stop(); updateHandler_ = gotCaught; timeEnd_ = time_ + 7.0f; return; } manager.Unselect(); timeEnd_ = time_ + 2.0f; updateHandler_ = quit; manager.Enable(false); Patrolling.isPatrolling = false; } }