Animate newly earned badges into position

This commit is contained in:
drdev
2016-01-10 19:18:49 +00:00
parent 11167610be
commit 5509980e36
3 changed files with 102 additions and 15 deletions

View File

@@ -63,6 +63,10 @@ public class ConquestLocation implements IXmlWritable {
return col;
}
public boolean isAt(int regionIndex0, int row0, int col0) {
return regionIndex == regionIndex0 && row == row0 && col == col0;
}
public List<ConquestLocation> getNeighbors() {
if (neighbors == null) { //cache neighbors for performance
neighbors = getNeighbors(plane, regionIndex, row, col);