Exemplo n.º 1
0
 /// <summary>
 /// Calls when the mover moved to another <see cref="Cell"/>.
 /// </summary>
 protected virtual void OnLocationChanged(object sender, PositionEventArgs e)
 {
     ;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Calls when the mover has been relocated not by moving.
 /// </summary>
 private void mover_Relocated(object sender, PositionEventArgs e)
 {
     OnDestinationReached();
 }
Exemplo n.º 3
0
Arquivo: Play.cs Projeto: 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();
            }
        }