wesnoth-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-patches] [patch #3994] Hold Position hotkey


From: Richard Dillingham
Subject: [Wesnoth-patches] [patch #3994] Hold Position hotkey
Date: Tue, 10 May 2005 14:10:20 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

URL:
  <http://savannah.nongnu.org/patch/?func=detailitem&item_id=3994>

                 Summary: Hold Position hotkey
                 Project: Battle for Wesnoth
            Submitted by: shadowlord
            Submitted on: Tue 05/10/2005 at 14:10
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open

    _______________________________________________________

Details:

This patch adds a 'hold position' hotkey which makes the unit not be selected
when you hit the 'next unit' hotkey, until you move the unit again.

The hotkey works like this:
1. If you have a unit selected and hit the 'hold position' key, it acts like
you pressed space, but also sets a boolean hold_position_ variable on the
unit.
2. If the unit has hold_position_ set, then when a new turn starts it is
immediately marked as if you had selected it and pressed space.
3. So if you use the next unit key to find units to move, it will skip units
which have been told to hold position.
4. If you move a unit which had been told to hold position, hold_position_ is
set to false, essentially cancelling the hold movement order.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 05/10/2005 at 14:10  Name: holdPosition.zip  Size: 2.08KB   By:
shadowlord
Zipped .patch file
<http://savannah.nongnu.org/patch/download.php?item_id=3994&item_file_id=4583>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?func=detailitem&item_id=3994>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]