Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split PlayerCommand into smaller files #6424

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

bunnybot
Copy link

NordfrieseMirrored from Codeberg
Created on Sun Mar 31 09:37:04 CEST 2024 by Benedikt Straub (Nordfriese)


Type of change
Refactoring

Issue(s) closed
Big source file are evil. As a rule of thumb, a file shouldn't be longer than 500 lines, and more than 1000 lines is too big.

This splits the huge player commands file into a whole directory of smaller files, and also moves other game command types there for consistency.

Since I'm already at it, a little refactoring especially around names (e.g. "enemyflagaction" → "attack").

Possible regressions
All kinds of commands and their handling.

Will have merge conflicts with several other PRs, regardless of the order of merging.

@bunnybot bunnybot added this to the v1.3 milestone Mar 31, 2024
@bunnybot bunnybot self-assigned this Mar 31, 2024
@bunnybot
Copy link
Author

Assigned to Nordfriese

@bunnybot bunnybot added the cleanup & refactoring Improving our code quality label Mar 31, 2024
@bunnybot bunnybot added the ci:success CI checks succeeded label Apr 2, 2024
@bunnybot bunnybot added ci:success CI checks succeeded and removed ci:success CI checks succeeded labels Apr 11, 2024
@bunnybot bunnybot added ci:success CI checks succeeded and removed ci:success CI checks succeeded labels Apr 20, 2024
@bunnybot bunnybot added ci:success CI checks succeeded and removed ci:success CI checks succeeded labels Apr 22, 2024
@bunnybot bunnybot added ci:success CI checks succeeded and removed ci:success CI checks succeeded labels May 1, 2024
@bunnybot bunnybot added ci:success CI checks succeeded and removed ci:success CI checks succeeded labels May 1, 2024
@bunnybot bunnybot added ci:success CI checks succeeded and removed ci:success CI checks succeeded labels May 14, 2024
@bunnybot bunnybot added ci:success CI checks succeeded and removed ci:success CI checks succeeded labels May 16, 2024
@bunnybot bunnybot added ci:success CI checks succeeded and removed ci:success CI checks succeeded labels May 17, 2024
@bunnybot bunnybot added ci:success CI checks succeeded and removed ci:success CI checks succeeded labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:success CI checks succeeded cleanup & refactoring Improving our code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants