Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editor: cleaned up a bunch of accessors
Map Context: * Removed get_team() in favor of non-const local team() overload. * Removeded get_map() (both overloads) in favor of map() and a local non-const overload of the same. * Made both overloads of map() return editor_map instead of gamemap (former inherits from the latter). Context Manager: * Removed team, unit, and label accessors that only fetched the same info from the current map_context. Having more functions of this name only made things a lot more confusing. Editor Controller: * Change all instances of the three intermediate accessors mentioned above to data queries directly from the current map context via editor_controller::get_current_map_context. The result is the same, we just no longer have three levels of indirection.
- Loading branch information
Showing
10 changed files
with
120 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.