Package org.rspeer.game.component.tdi
Class Prayers
- java.lang.Object
-
- org.rspeer.game.component.tdi.Prayers
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Prayers.Quick
-
Constructor Summary
Constructors Constructor Description Prayers()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
flick(Collection<Prayer> prayers)
static boolean
flick(Prayer... prayers)
static List<Prayer>
getActive()
static Prayer
getActiveOverhead()
static Prayer.Book
getBook()
static int
getPercent()
static int
getPoints()
static int
getTotalPoints()
static boolean
isActive(Collection<Prayer> prayers)
static boolean
isActive(Prayer... prayers)
static boolean
isUnlocked(Prayer prayer)
static boolean
select(boolean unchecked, Collection<Prayer> prayers)
static boolean
select(boolean unchecked, Prayer... prayers)
static boolean
toggle(boolean on, Prayer prayer)
Deprecated.because prayer states are unsafe, particularly with things like flicking.
-
-
-
Method Detail
-
getBook
public static Prayer.Book getBook()
-
getActiveOverhead
public static Prayer getActiveOverhead()
-
flick
public static boolean flick(Collection<Prayer> prayers)
-
flick
public static boolean flick(Prayer... prayers)
-
select
public static boolean select(boolean unchecked, Collection<Prayer> prayers)
-
select
public static boolean select(boolean unchecked, Prayer... prayers)
- Parameters:
unchecked
-true
to skip validation of active prayer states
-
isActive
public static boolean isActive(Collection<Prayer> prayers)
-
isActive
public static boolean isActive(Prayer... prayers)
-
toggle
@Deprecated public static boolean toggle(boolean on, Prayer prayer)
Deprecated.because prayer states are unsafe, particularly with things like flicking. this method is still fine to use outside of that
-
getPoints
public static int getPoints()
-
getTotalPoints
public static int getTotalPoints()
-
getPercent
public static int getPercent()
-
isUnlocked
public static boolean isUnlocked(Prayer prayer)
-
-