File tree 4 files changed +19
-10
lines changed
library/src/main/java/com/pokegoapi
4 files changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,15 @@ public boolean hasLurePokemon() {
47
47
return fortData .hasLureInfo () && fortData .getLureInfo ().getLureExpiresTimestampMs () > api .startTime ;
48
48
}
49
49
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
+
50
59
/**
51
60
* Returns whether this pokestop has an active lure when detected on map.
52
61
*
@@ -60,15 +69,6 @@ public boolean hasLure() {
60
69
}
61
70
}
62
71
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
-
72
72
/**
73
73
* Returns whether this pokestop has an active lure.
74
74
*
@@ -86,6 +86,7 @@ public boolean hasLure(boolean updateFortDetails) throws RequestFailedException
86
86
}
87
87
return false ;
88
88
}
89
+
89
90
return fortData .getActiveFortModifierList ().contains (ItemIdOuterClass .ItemId .ITEM_TROY_DISK );
90
91
}
91
92
Original file line number Diff line number Diff line change @@ -29,6 +29,13 @@ public class Raid {
29
29
@ Getter
30
30
private final RaidInfo raidInfo ;
31
31
32
+ /**
33
+ * Raid Constructor.
34
+ *
35
+ * @param api set api
36
+ * @param gym set gym
37
+ * @param raidInfo set raidInfo
38
+ */
32
39
public Raid (PokemonGo api , Gym gym , RaidInfo raidInfo ) {
33
40
this .api = api ;
34
41
this .gym = gym ;
Original file line number Diff line number Diff line change 12
12
* You should have received a copy of the GNU General Public License
13
13
* along with this program. If not, see <http://www.gnu.org/licenses/>.
14
14
*/
15
+
15
16
package com .pokegoapi .auth ;
16
17
17
18
import lombok .Getter ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public interface MapPoint {
25
25
*
26
26
* @return the latitude
27
27
*/
28
- double getLatitude ();
28
+ double getLatitude ();
29
29
30
30
/**
31
31
* Gets longitude.
You can’t perform that action at this time.
0 commit comments