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

Alert itrusion refactoring #134

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

Abhiram98
Copy link

@Abhiram98 Abhiram98 commented Aug 4, 2024

Refactor AlertIntrusion to split up long methods and rename variables. These changes make the code more readable and easier to maintain.

List of changes:

  • Rename gg -> graphicsContext
  • Rename g2 -> imageGraphics
  • Rename askForLaterRepaint -> repaintRequest
  • split the paint function into 'detectAndRenderClosestCollision', 'createInfoLabel'
  • Replace for loop with foreach loop
  • Use ternary operator

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.

1 participant