Repository navigation
Rename class methods to lowerCamelCase - #2018
Merged
Merged
Conversation
Flamefire
force-pushed
the
refactor/lowerCamelCase-methods
branch
from
November 16, 2026 13:56
cdb7e1d to
5b9ad21
Compare
Flow86
approved these changes
Nov 17, 2026
This was referenced Nov 17, 2026
vader1986
pushed a commit
to vader1986/s25client
that referenced
this pull request
Nov 17, 2026
Resolve conflicts with the lowerCamelCase refactoring (Return-To-The-Roots#2018, Return-To-The-Roots#2019): keep the swamp/desert/special-object changes of this branch and use the renamed upstream API everywhere, including the new files that merged without textual conflicts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J1xFd2ZsbRhtWeVV21cLbw
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@Flow86 As discussed in #2016 (comment)
this is the AI generated renaming of member method names.
I scrolled over the diff and looks good, builds and tests pass locally
I also added our guide from the Wiki to the repo directly for easier access by users and agents.
Missing are changes that require submodule updates (base classes in liblobby/s25util like
SocketandSerialize/Deserialize, and s25edit using e.g.GetBQ)Equally trivial to add but wanted to confirm first.
What I noticed/choose:
Foo_()->fooImpl()which seems more common and avoids conflict withfoo_member variablesGameMessage::Run->..::runGameto avoid conflict withMessage::run(bad design to have a base class that isn't actually compatible)LC_Foo,GI_Foo,CI_Foointerface methods (LobbyClient, GameInterface, ClientInterface) as abbreviationsMsg_foo->msgFoo(not keeping the underscored prefix for our key/mouse/... callbacks)BuildRoadinGameCommandFactoryGetDriverAPIVersionlook better in UpperCamelCase to me.isSoldier(job)andnofFigure::isSoldier()conflict -> need::isSoldierctrlList::swap(int left, int right)is now ambiguous withstd::swapbut usually called asfoo.swap(x,y)anywaysIsDefeated() {return isDefeated;}-> Suffix member variableisDefeated_as already stated. Not sure we should do that consistently (myFoo_.doBar()looks odd for contained classes) but might be worth it.Keeping member functions UpperCamel would disambiguate them from free functions but could be/look ambiguous to a constructor when called from inside the same class.
So all in all I'd use this PR with lowerCamel names and the submodule stuff on top