Battle
API documention for the Prototype Battle.
Source code
Usage
var instance = new Battle(args);
...
instance.method(args);
Index
Constructor
var b = new Battle();
Variables
canBlackout
Type: bool
Usage:
- get: var canBlackout = b.canBlackout;
- set: b.canBlackout = canBlackout;
canReceiveExp
Type: bool
Usage:
- get: var canReceiveExp = b.canReceiveExp;
- set: b.canReceiveExp = canReceiveExp;
canUseItems
Type: bool
Usage:
- get: var canUseItems = b.canUseItems;
- set: b.canUseItems = canUseItems;
frontierTrainer
Type: int
Usage:
- get: var frontierTrainer = b.frontierTrainer;
- set: b.frontierTrainer = frontierTrainer;
isDiveBattle
Type: bool
Usage:
- get: var isDiveBattle = b.isDiveBattle;
- set: b.isDiveBattle = isDiveBattle;
isInverseBattle
Type: bool
Usage:
- get: var isInverseBattle = b.isInverseBattle;
- set: b.isInverseBattle = isInverseBattle;
customBattleMusic
Type: string
Usage:
- get: var customBattleMusic = b.customBattleMusic;
- set: b.customBattleMusic = customBattleMusic;
Getters & Setters
Methods
encounterTrainer
reset
startTrainer
startWild
reset
Return: void
Usage: b.reset();
startTrainer
startWild
Return: void
Arguments: Pokemon pokemon, [string music], [int introType]
Usage: b.startWild(pokemon, [music], [introType]);
Indexers
-- No Indexers --