File tree Expand file tree Collapse file tree 4 files changed +19
-10
lines changed
library/src/main/java/com/pokegoapi Expand file tree Collapse file tree 4 files changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,15 @@ public boolean hasLurePokemon() {
4747 return fortData .hasLureInfo () && fortData .getLureInfo ().getLureExpiresTimestampMs () > api .startTime ;
4848 }
4949
50+ /**
51+ * Returns whether or not the lured pokemon is in range.
52+ *
53+ * @return true when the lured pokemon is in range of player
54+ */
55+ public boolean inRangeForLuredPokemon () {
56+ return getDistance () <= api .settings .mapSettings .pokemonVisibilityRange ;
57+ }
58+
5059 /**
5160 * Returns whether this pokestop has an active lure when detected on map.
5261 *
@@ -60,15 +69,6 @@ public boolean hasLure() {
6069 }
6170 }
6271
63- /**
64- * Returns whether or not the lured pokemon is in range.
65- *
66- * @return true when the lured pokemon is in range of player
67- */
68- public boolean inRangeForLuredPokemon () {
69- return getDistance () <= api .settings .mapSettings .pokemonVisibilityRange ;
70- }
71-
7272 /**
7373 * Returns whether this pokestop has an active lure.
7474 *
@@ -86,6 +86,7 @@ public boolean hasLure(boolean updateFortDetails) throws RequestFailedException
8686 }
8787 return false ;
8888 }
89+
8990 return fortData .getActiveFortModifierList ().contains (ItemIdOuterClass .ItemId .ITEM_TROY_DISK );
9091 }
9192
Original file line number Diff line number Diff line change @@ -29,6 +29,13 @@ public class Raid {
2929 @ Getter
3030 private final RaidInfo raidInfo ;
3131
32+ /**
33+ * Raid Constructor.
34+ *
35+ * @param api set api
36+ * @param gym set gym
37+ * @param raidInfo set raidInfo
38+ */
3239 public Raid (PokemonGo api , Gym gym , RaidInfo raidInfo ) {
3340 this .api = api ;
3441 this .gym = gym ;
Original file line number Diff line number Diff line change 1212 * You should have received a copy of the GNU General Public License
1313 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1414 */
15+
1516package com .pokegoapi .auth ;
1617
1718import lombok .Getter ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public interface MapPoint {
2525 *
2626 * @return the latitude
2727 */
28- double getLatitude ();
28+ double getLatitude ();
2929
3030 /**
3131 * Gets longitude.
You can’t perform that action at this time.
0 commit comments