Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (amount != 0) {
- for (int i=0; i<Math.abs(amount); i++) {
- playerPosition+=Integer.signum(amount);
- playerPosition = Math.floorMod(playerPosition, squareList.size());
- if (i != Math.abs(amount) - 1) {
- squareList.get(playerPosition).onPassed();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement