8000 Effect manager by orangishcat · Pull Request #71 · aehmttw/Tanks · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Effect manager #71

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

Merged
merged 24 commits into from
Jun 17, 2025
Merged

Effect manager #71

merged 24 commits into from
Jun 17, 2025

Conversation

orangishcat
Copy link
Contributor
@orangishcat orangishcat commented Jun 6, 2025
  • Moved attribute and status effect-related methods to a new class
  • Moved AttributeModifier, StatusEffect, and EffectManager to a separate package tanks.effect
  • The methods' code is mostly the same as before
  • Implemented a recycling system so no new memory is allocated
  • Very minor code simplifications in Movable.java
  • No functionality should have changed

Sorry, something went wrong.

Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
# Conflicts:
#	src/main/java/tanks/Movable.java
#	src/main/java/tanks/gui/screen/ScreenGame.java
#	src/main/java/tanks/gui/screen/ScreenTitle.java
#	src/main/java/tanks/minigames/Arcade.java
#	src/main/java/tanks/tank/Tank.java
#	src/main/java/tanks/tank/TankAIControlled.java
#	src/main/java/tanks/tank/TankPlayer.java
#	src/main/java/tanks/tank/TankPlayerRemote.java
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
@orangishcat orangishcat mentioned this pull request Jun 6, 2025
@orangishcat
Copy link
Contributor Author

Will do testing tomorrow

Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
# Conflicts:
#	src/main/java/tanks/tank/TankAIControlled.java
#	src/main/java/tanks/tank/TankPlayerRemote.java
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
Signed-off-by: pythoncoder1234 <fdsnail2@gmail.com>
@orangishcat
Copy link
Contributor Author

Testing is done.

Notable change: the AttributeModifier returned from getAttribute is now mutable. It should not be modified but instead copied before modification.

@aehmttw aehmttw merged commit 4f1a4c8 into aehmttw:master Jun 17, 2025
1 check passed
@orangishcat orangishcat deleted the effect-manager branch June 18, 2025 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0