Skip to content
Permalink
Browse files

Refactor crosscheck (#92)

Refactor CrossCheck

GameObjects:
* Code style: Added brackets, initialize variables in separate lines, renamed variables and parameters
* Removed unused functions
* The variable names *may* be confusing. I tried to find suitable names, such as "active/passive", "offender/defender", "hammer/anvil", but I stuck with "ball/goal", because it fits both the collision and the collection purpose of the check really well. 
* Moved conditions to the front, found some inconsistencies.
* Moved layer check further above.
  • Loading branch information...
gitMarky committed Apr 2, 2019
1 parent c5e8999 commit 96577e09afbaf2a06f1d9a4dbe7df1bc88975992
Showing with 360 additions and 259 deletions.
  1. +339 −235 src/object/C4GameObjects.cpp
  2. +21 −24 src/object/C4GameObjects.h
Oops, something went wrong.

0 comments on commit 96577e0

Please sign in to comment.
You can’t perform that action at this time.