Class: PFM::MagnetoVS

Inherits:
Object show all
Defined in:
scripts/01200 PFM/00100 Global Systems/01300 MagnetoVS.rb

Overview

Battler recorder object

Author:

  • Nuri Yuri

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(party1, party2, names) ⇒ MagnetoVS

Create a new MagnetoVS object

Parameters:

  • party1 (Array<PFM::Pokemon>)

    the first party array

  • party2 (Array<PFM::Pokemon>)

    the second party array

  • names (Array<String>)

    the list of enemy names

Instance Attribute Details

#namesArray<String> (readonly)

The list of enemy names

Returns:

#party1Array<PFM::Pokemon> (readonly)

The first party array

Returns:

#party2Array<PFM::Pokemon> (readonly)

The second party array

Returns:

Instance Method Details

#done

Tell the recorder that the record is done (play will work then)

#done_playing?Boolean

Is the battle finished ?

Returns:

  • (Boolean)

#get_actionArray?

Return an action (playing) and next time return the next action

Returns:

  • (Array, nil)

#playBoolean

Start playing the battle

Returns:

  • (Boolean)

    if the battle can be played

#push_actions(data, party = 1)

Add an action to the action stack

Parameters:

  • data (Array)

    the action data

  • party (1, 2) (defaults to: 1)

    the party id (party1 or party2)

#push_seed(seed)

Add a seed to the action stack

Parameters:

#push_switch(data)

Add a switch action to the stack