From 2c5d3cc256afe23ecd179b477fecebf2b0d2ea8e Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 3 Feb 2017 19:40:48 -0500 Subject: [PATCH] Added containsKey() method to GridMap --- build.gradle | 8 -------- src/io/anuke/ucore/util/GridMap.java | 4 ++++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 436985d..4ef8006 100755 --- a/build.gradle +++ b/build.gradle @@ -48,11 +48,3 @@ uploadArchives { } } } - -install { - repositories.mavenInstaller { - pom.project { - - } - } -} diff --git a/src/io/anuke/ucore/util/GridMap.java b/src/io/anuke/ucore/util/GridMap.java index adae7c6..9b9219b 100644 --- a/src/io/anuke/ucore/util/GridMap.java +++ b/src/io/anuke/ucore/util/GridMap.java @@ -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); }