()
| 137 | } |
| 138 | |
| 139 | public boolean isAnimating() |
| 140 | { |
| 141 | if(animating) |
| 142 | { |
| 143 | return true; |
| 144 | } |
| 145 | else |
| 146 | { |
| 147 | if(System.currentTimeMillis() > nextAnimation) |
| 148 | { |
| 149 | animating = true; |
| 150 | timeAnimationStarted = System.currentTimeMillis(); |
| 151 | animationNum = random.nextInt(Integer.MAX_VALUE); |
| 152 | return true; |
| 153 | } |
| 154 | |
| 155 | return false; |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | public int getAnimationNum() |
| 160 | { |