Loop through a set of output as required by a FOR loop. @param node The node being processed @param start The starting value of the loop @param end The ending value of the loop @param step The amount by which the counter should be changed each iteration. @param output The writer output is to be sen
(final FORNode node, final int start, final int end, final int step, final BufferedWriter output, final PlayerCharacter aPC)
| 820 | * @param aPC The character being processed. |
| 821 | */ |
| 822 | protected void loopFOR(final FORNode node, final int start, final int end, final int step, |
| 823 | final BufferedWriter output, final PlayerCharacter aPC) |
| 824 | { |
| 825 | for (int x = start; ((step < 0) ? x >= end : x <= end); x += step) |
| 826 | { |
| 827 | if (processLoop(node, output, aPC, x)) |
| 828 | { |
| 829 | break; |
| 830 | } |
| 831 | } |
| 832 | } |
| 833 | |
| 834 | /** |
| 835 | * Process an iteration of a FOR loop. |
no test coverage detected