URL:
<http://gna.org/patch/?1036>
Summary: In-game console (:command) refactoring and help
function
Project: Battle for Wesnoth
Submitted by: ilor
Submitted on: Monday 03/31/2008 at 20:12
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
This patch is a re-do of the command console. Instead of a stream of if..else
there is now a helper functor class that contains a (initialized once) map of
available commands. Each command is a separate function in the helper class.
This makes it easy to generate a list of available commands in help, the
actual commands are not all documented as of yet.
As the actual command-handling functions were previously a part of
menu_handler and extensively used mh's privates, mh friends the helper class.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Monday 03/31/2008 at 20:12 Name: console_upgrade.diff Size: 28kB
By: ilor
<http://gna.org/patch/download.php?file_id=4111>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1036>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs