Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Commit

Permalink
Added containsKey() method to GridMap
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Feb 4, 2017
1 parent 7f77292 commit 2c5d3cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 0 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,3 @@ uploadArchives {
}
}
}

install {
repositories.mavenInstaller {
pom.project {

}
}
}
4 changes: 4 additions & 0 deletions src/io/anuke/ucore/util/GridMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ public T get(int x, int y){
return map.get(getHash(x,y));
}

public boolean containsKey(int x, int y){
return map.containsKey(getHash(x,y));
}

public void put(int x, int y, T t){
map.put(getHash(x,y), t);
}
Expand Down

0 comments on commit 2c5d3cc

Please sign in to comment.