Computes manhatten distance between two points.
(int x0, int y0, int x1, int y1)
| 119 | * Computes manhatten distance between two points. |
| 120 | */ |
| 121 | static final int getDis(int x0, int y0, int x1, int y1) |
| 122 | { |
| 123 | return Math.abs(x0-x1) + Math.abs(y0-y1); |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * Replaces this sprite with an exploding sprite. |
no outgoing calls
no test coverage detected