public class BattleRuleRegistry
extends java.lang.Object
BattleProperty that can be used
 You MUST register any custom BattlePropertys here otherwise they will not be read/written properly| Modifier and Type | Field and Description | 
|---|---|
static BattleProperty<BattleType> | 
BATTLE_TYPE  | 
static BattleProperty<java.util.Set<BattleClause>> | 
CLAUSES  | 
static BattleProperty<java.lang.Boolean> | 
FULL_HEAL  | 
static BattleProperty<EnumOldGenMode> | 
GEN_MODE  | 
static BattleProperty<java.lang.Integer> | 
LEVEL_CAP  | 
static BattleProperty<java.lang.Integer> | 
NUM_POKEMON  | 
static BattleProperty<java.lang.Boolean> | 
RAISE_TO_CAP  | 
static BattleProperty<java.lang.Boolean> | 
TEAM_PREVIEW  | 
static BattleProperty<java.lang.Integer> | 
TEAM_SELECT  | 
static BattleProperty<Tier> | 
TIER  | 
static BattleProperty<java.lang.Integer> | 
TURN_TIME  | 
| Constructor and Description | 
|---|
BattleRuleRegistry()  | 
| Modifier and Type | Method and Description | 
|---|---|
static java.util.List<BattleProperty<?>> | 
getAllProperties()
Gets a list of all registered properties 
 | 
static BattleProperty<?> | 
getProperty(java.lang.String id)
Gets a  
BattleProperty with the given id
 Will return null if none found with the ID | 
static <T> BattleProperty<T> | 
register(BattleProperty<T> property)
Registers the given property under it's ID
 This will return an unmodified version of the parameter given so that you can use it for caching you're properties 
 | 
public static final BattleProperty<java.lang.Boolean> RAISE_TO_CAP
public static final BattleProperty<java.lang.Boolean> FULL_HEAL
public static final BattleProperty<java.lang.Boolean> TEAM_PREVIEW
public static final BattleProperty<java.lang.Integer> LEVEL_CAP
public static final BattleProperty<java.lang.Integer> NUM_POKEMON
public static final BattleProperty<java.lang.Integer> TEAM_SELECT
public static final BattleProperty<java.lang.Integer> TURN_TIME
public static final BattleProperty<Tier> TIER
public static final BattleProperty<java.util.Set<BattleClause>> CLAUSES
public static final BattleProperty<BattleType> BATTLE_TYPE
public static final BattleProperty<EnumOldGenMode> GEN_MODE
public static <T> BattleProperty<T> register(BattleProperty<T> property)
T - The type of the propertyproperty - The new propertypublic static BattleProperty<?> getProperty(java.lang.String id)
BattleProperty with the given id
 Will return null if none found with the IDid - The id being searched forpublic static java.util.List<BattleProperty<?>> getAllProperties()