Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FromMapBox_Click(object sender, EventArgs e)
        {
            if (Dungeon == null)
            {
                MessageBox.Show("Dungeon handle == null\nSet a dungeon first !", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            DungeonLocationForm form = new DungeonLocationForm(Dungeon, MazeName, Coordinate);

            form.ShowDialog();

            SetTarget(form.Target);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Change team location
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ChangeLocationBox_Click(object sender, EventArgs e)
        {
            if (GameScreen == null)
            {
                return;
            }

            DungeonLocationForm form = new DungeonLocationForm(GameScreen.Dungeon, Team.Location.Maze, Team.Location.Coordinate);

            form.ShowDialog();

            Team.Teleport(form.Target);
            LocationLabel.Text = Team.Location.ToString();
        }
Ejemplo n.º 3
0
		/// <summary>
		/// 
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void FromMapBox_Click(object sender, EventArgs e)
		{
			if (Dungeon == null)
			{
				MessageBox.Show("Dungeon handle == null\nSet a dungeon first !", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				return;
			}

			DungeonLocationForm form = new DungeonLocationForm(Dungeon, MazeName, Coordinate);
			form.ShowDialog();

			SetTarget(form.Target);
		}
Ejemplo n.º 4
0
		/// <summary>
		/// Change team location
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void ChangeLocationBox_Click(object sender, EventArgs e)
		{
			if (GameScreen == null)
				return;

			DungeonLocationForm form = new DungeonLocationForm(GameScreen.Dungeon, Team.Location.Maze, Team.Location.Coordinate);
			form.ShowDialog();

			Team.Teleport(form.Target);
			LocationLabel.Text = Team.Location.ToString();
		}