pokemon-rogue-battle
Preparing search index...
phases/attempt-run-phase
AttemptRunPhase
Class AttemptRunPhase
Hierarchy (
View Summary
)
PokemonPhase
AttemptRunPhase
Index
Constructors
constructor
Properties
battler
Index
field
Index
force
Fail
Escape
player
Methods
attempt
Run
Away
end
execute
For
All
get
Pokemon
hide
Enemy
Trainer
show
Enemy
Trainer
start
Constructors
constructor
new
AttemptRunPhase
(
battlerIndex
?:
number
)
:
AttemptRunPhase
Parameters
Optional
battlerIndex
:
number
Returns
AttemptRunPhase
Properties
Protected
battler
Index
battlerIndex
:
number
field
Index
fieldIndex
:
number
force
Fail
Escape
forceFailEscape
:
boolean
= false
For testing purposes: this is to force the pokemon to fail and escape
player
player
:
boolean
Methods
attempt
Run
Away
attemptRunAway
(
playerField
:
PlayerPokemon
[]
,
enemyField
:
EnemyPokemon
[]
,
escapeChance
:
NumberHolder
,
)
:
void
Parameters
playerField
:
PlayerPokemon
[]
enemyField
:
EnemyPokemon
[]
escapeChance
:
NumberHolder
Returns
void
end
end
()
:
void
Returns
void
execute
For
All
executeForAll
(
func
:
PokemonFunc
)
:
void
Parameters
func
:
PokemonFunc
Returns
void
get
Pokemon
getPokemon
()
:
default
Returns
default
hide
Enemy
Trainer
hideEnemyTrainer
()
:
void
Returns
void
show
Enemy
Trainer
showEnemyTrainer
(
trainerSlot
?:
TrainerSlot
)
:
void
Parameters
trainerSlot
:
TrainerSlot
= TrainerSlot.NONE
Returns
void
start
start
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
battler
Index
field
Index
force
Fail
Escape
player
Methods
attempt
Run
Away
end
execute
For
All
get
Pokemon
hide
Enemy
Trainer
show
Enemy
Trainer
start
pokemon-rogue-battle
Loading...
For testing purposes: this is to force the pokemon to fail and escape