[Commits] [wesnoth/wesnoth] 449204: controllers: allow hotkey handlers to be defined s...
GitHub
noreply at github.com
Sun Dec 21 04:09:40 UTC 2014
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 449204f35e5e30a91732cab71c4be58f26ef9f82
https://github.com/wesnoth/wesnoth/commit/449204f35e5e30a91732cab71c4be58f26ef9f82
Author: Chris Beck <render787 at gmail.com>
Date: 2014-12-20 (Sat, 20 Dec 2014)
Changed paths:
M src/controller_base.cpp
M src/controller_base.hpp
M src/editor/controller/editor_controller.cpp
M src/editor/controller/editor_controller.hpp
M src/hotkey/command_executor.cpp
M src/play_controller.cpp
M src/play_controller.hpp
Log Message:
-----------
controllers: allow hotkey handlers to be defined separately
Instead of inheriting from hotkey::command_executor,
controller_base now returns a pointer to a command_executor.
With current implementations all controllers return this, but in
some cases it may be simpler to have a separate small class for
this.
More information about the Commits
mailing list