Search
Preparing search index...
The search index is not available
@mehra/pokemon
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@mehra/pokemon
DescriptiveLogger
Class DescriptiveLogger
Adds descriptions to the intentions and then logs them to a specified Log
Hierarchy
DescriptiveLogger
Implements
GameLogger
TeamLogger
PlayerLogger
Index
Constructors
constructor
Methods
Cancel
Condition
Changing
Stage
Damage
Type
Death
Die
Roll
Value
Effect
Success
Ending
Turn
Force
Resetting
Stages
And
Stage
Boost
Counter
Game
Mode
Getting
Condition
Health
Incrementing
Stage
Boost
Counter
Log
Session
Move
Killed
Opponent
Playing
First
Playing
Move
Playing
Turn
Playing
Turn
Against
Quantity
Remaining
Receiving
Move
Remaining
Players
Removing
Condition
Resetting
Round
Winner
Speeds
State
Swapping
Player
Taking
Damage
Taking
Super
Potion
Terminating
Player
Waiving
Paralysis
Speed
Effect
Winner
Constructors
constructor
new
Descriptive
Logger
(
log
:
Log
)
:
DescriptiveLogger
Parameters
log:
Log
Returns
DescriptiveLogger
Methods
Cancel
Condition
Cancel
Condition
(
reason
:
string
)
:
void
Parameters
reason:
string
Returns
void
Changing
Stage
Changing
Stage
(
stage
:
string
, type
:
string
, difference
:
number
, from
:
number
, to
:
number
)
:
void
Parameters
stage:
string
type:
string
difference:
number
from:
number
to:
number
Returns
void
Damage
Type
Damage
Type
(
type
:
"critical"
|
"noncritical"
)
:
void
Parameters
type:
"critical"
|
"noncritical"
Returns
void
Death
Death
(
party
:
string
)
:
void
Parameters
party:
string
Returns
void
Die
Roll
Value
Die
Roll
Value
(
value
:
number
)
:
void
Parameters
value:
number
Returns
void
Effect
Success
Effect
Success
(
effect
:
string
, status
:
string
)
:
void
Parameters
effect:
string
status:
string
Returns
void
Ending
Turn
Ending
Turn
(
message
:
string
)
:
void
Parameters
message:
string
Returns
void
Force
Resetting
Stages
And
Stage
Boost
Counter
Force
Resetting
Stages
And
Stage
Boost
Counter
(
)
:
void
Returns
void
Game
Mode
Game
Mode
(
mode
:
string
)
:
void
Parameters
mode:
string
Returns
void
Getting
Condition
Getting
Condition
(
condition
:
string
, actor
?:
Player
)
:
void
Parameters
condition:
string
Optional
actor:
Player
Returns
void
Health
Health
(
current
:
number
, max
:
number
)
:
void
Parameters
current:
number
max:
number
Returns
void
Incrementing
Stage
Boost
Counter
Incrementing
Stage
Boost
Counter
(
valueAfter
:
number
)
:
void
Parameters
valueAfter:
number
Returns
void
Log
Session
Log
Session
(
action
:
string
)
:
void
Parameters
action:
string
Returns
void
Move
Killed
Opponent
Move
Killed
Opponent
(
)
:
void
Returns
void
Playing
First
Playing
First
(
team
:
string
)
:
void
Parameters
team:
string
Returns
void
Playing
Move
Playing
Move
(
index
:
number
, move
:
Move
)
:
void
Parameters
index:
number
move:
Move
Returns
void
Playing
Turn
Playing
Turn
(
options
:
{
opponent
:
Player
;
takeSuperPotion
:
boolean
}
)
:
void
Parameters
options:
{
opponent
:
Player
;
takeSuperPotion
:
boolean
}
opponent
:
Player
take
Super
Potion
:
boolean
Returns
void
Playing
Turn
Against
Playing
Turn
Against
(
player
:
Player
)
:
void
Parameters
player:
Player
Returns
void
Quantity
Remaining
Quantity
Remaining
(
type
:
string
, quantity
:
number
)
:
void
Parameters
type:
string
quantity:
number
Returns
void
Receiving
Move
Receiving
Move
(
move
:
MoveLike
, opponent
:
Player
)
:
void
Parameters
move:
MoveLike
opponent:
Player
Returns
void
Remaining
Players
Remaining
Players
(
players
:
Player
[]
)
:
void
Parameters
players:
Player
[]
Returns
void
Removing
Condition
Removing
Condition
(
condition
:
string
)
:
void
Parameters
condition:
string
Returns
void
Resetting
Resetting
(
)
:
void
Returns
void
Round
Winner
Round
Winner
(
winner
:
string
, AFirst
:
boolean
)
:
void
Parameters
winner:
string
AFirst:
boolean
Returns
void
Speeds
Speeds
(
speeds
:
{
a
:
number
;
b
:
number
}
)
:
void
Parameters
speeds:
{
a
:
number
;
b
:
number
}
a
:
number
b
:
number
Returns
void
State
State
(
state
:
string
, message
?:
string
)
:
void
Parameters
state:
string
message:
string
= ""
Returns
void
Swapping
Player
Swapping
Player
(
swapType
:
string
, oldIndex
:
number
, newIndex
:
number
)
:
void
Parameters
swapType:
string
oldIndex:
number
newIndex:
number
Returns
void
Taking
Damage
Taking
Damage
(
rounded
:
number
, preRound
:
number
)
:
void
Parameters
rounded:
number
preRound:
number
Returns
void
Taking
Super
Potion
Taking
Super
Potion
(
)
:
void
Returns
void
Terminating
Player
Terminating
Player
(
index
:
number
, value
:
Player
)
:
void
Parameters
index:
number
value:
Player
Returns
void
Waiving
Paralysis
Speed
Effect
Waiving
Paralysis
Speed
Effect
(
)
:
void
Returns
void
Winner
Winner
(
winner
:
string
)
:
void
Parameters
winner:
string
Returns
void
Exports
Descriptive
Logger
constructor
Cancel
Condition
Changing
Stage
Damage
Type
Death
Die
Roll
Value
Effect
Success
Ending
Turn
Force
Resetting
Stages
And
Stage
Boost
Counter
Game
Mode
Getting
Condition
Health
Incrementing
Stage
Boost
Counter
Log
Session
Move
Killed
Opponent
Playing
First
Playing
Move
Playing
Turn
Playing
Turn
Against
Quantity
Remaining
Receiving
Move
Remaining
Players
Removing
Condition
Resetting
Round
Winner
Speeds
State
Swapping
Player
Taking
Damage
Taking
Super
Potion
Terminating
Player
Waiving
Paralysis
Speed
Effect
Winner
Game
Player
Team
Game
Logger
Log
Player
Logger
Team
Logger
Adds descriptions to the intentions and then logs them to a specified Log