Example #1
0
 /// <summary>
 /// Calls when the mover moved to another <see cref="Cell"/>.
 /// </summary>
 protected virtual void OnLocationChanged(object sender, PositionEventArgs e)
 {
     ;
 }
Example #2
0
 /// <summary>
 /// Calls when the mover has been relocated not by moving.
 /// </summary>
 private void mover_Relocated(object sender, PositionEventArgs e)
 {
     OnDestinationReached();
 }
Example #3
0
File: Play.cs Project: scerdam/Maze
        private void Player_OnLocationChanged(object sender, PositionEventArgs e)
        {
            // Check finish point
            if (Map.Instance.DropsRemain == 0 &&
                Map.Instance.GetCell(Player.Position).HasAttribute(CellAttributes.IsFinish))
            {
                Player.AddPoints(30);
                ++Map.Instance.CurrentLevel;

                ClearPlayerAurasAndSpells();
            }
        }