Skip to content

Commit

Permalink
Comment: More abstraction feasible for loop checks?
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Apr 5, 2017
1 parent ba4001a commit ed6db25
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -413,6 +413,12 @@ private boolean locationTraceChecks(final Player player, final Location loc,
final Location damagedLoc, LocationTrace damagedTrace,
final long tick, final long now, final boolean reachEnabled, final boolean directionEnabled) {
// TODO: Order / splitting off generic stuff.
/*
* TODO: Abstract: interface with common setup/loop/post routine, only
* pass the ACTIVATED checks on to here (e.g. IFightLoopCheck...
* loopChecks). Support an arbitrary number of loop checks, special
* behavior -> interface and/or order within loopChecks.
*/
boolean cancelled = false;

// (Might pass generic context to factories, for shared + heavy properties.)
Expand Down

0 comments on commit ed6db25

Please sign in to comment.