forked from Revolutionary-Games/Thrive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix where engulfing depends on number of hexes instead of organelles (R…
…evolutionary-Games#745) * Fix where engulfing depends on number of hexes instead of organelles * Cache hex count on organelle and microbe and use that in engulfing instead of recalculating it every time. * Moved caching from the placed organelle into the organelle. * Updated organelle cache on removal and addition of an organelle. * Applied review Made methods and variables private Added comment * Made function const * Removed intermediate getHexCount function * Small improvements
- Loading branch information
1 parent
756b3e8
commit a83a2ad
Showing
4 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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