Class: PFM::ItemDescriptor::Wrapper

Inherits:
Object
  • Object
show all
Defined in:
docs/00800_Studio.rb

Overview

Wrapper to make the item description more usefull

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#action_to_push=(value) (writeonly)

Register the action_to_push block



1618
1619
1620
# File 'docs/00800_Studio.rb', line 1618

def action_to_push=(value)
  @action_to_push = value
end

#chenBoolean

Get if the item should not be used there

Returns:

  • (Boolean)


1582
1583
1584
# File 'docs/00800_Studio.rb', line 1582

def chen
  @chen
end

#itemStudio::Item

Get the item bound to this wrapper

Returns:



1600
1601
1602
# File 'docs/00800_Studio.rb', line 1600

def item
  @item
end

#no_effectBoolean

Get if the item has no effect

Returns:

  • (Boolean)


1579
1580
1581
# File 'docs/00800_Studio.rb', line 1579

def no_effect
  @no_effect
end

#on_creature_choice(creature, scene) ⇒ Boolean

Call the on_creature_choice block

Parameters:

Returns:

  • (Boolean)


1630
1631
# File 'docs/00800_Studio.rb', line 1630

def on_creature_choice(creature, scene)
end

#on_creature_use(creature, scene)

Call the on_creature_use block

Parameters:



1635
1636
# File 'docs/00800_Studio.rb', line 1635

def on_creature_use(creature, scene)
end

#on_skill_choice(skill, scene) ⇒ Boolean

Call the on_creature_choice block

Parameters:

Returns:

  • (Boolean)


1641
1642
# File 'docs/00800_Studio.rb', line 1641

def on_skill_choice(skill, scene)
end

#on_skill_use(creature, skill, scene)

Call the on_skill_use block

Parameters:



1647
1648
# File 'docs/00800_Studio.rb', line 1647

def on_skill_use(creature, skill, scene)
end

#on_use(scene)

Call the on_use block

Parameters:



1651
1652
# File 'docs/00800_Studio.rb', line 1651

def on_use(scene)
end

#open_partyBoolean

Get if the item should open the party menu

Returns:

  • (Boolean)


1585
1586
1587
# File 'docs/00800_Studio.rb', line 1585

def open_party
  @open_party
end

#open_skillBoolean

Get if the item should open the skill menu

Returns:

  • (Boolean)


1588
1589
1590
# File 'docs/00800_Studio.rb', line 1588

def open_skill
  @open_skill
end

#open_skill_learnInteger?

Get the ID of the move that should be learnt if it should be learnt

Returns:

  • (Integer, nil)


1591
1592
1593
# File 'docs/00800_Studio.rb', line 1591

def open_skill_learn
  @open_skill_learn
end

#skillPFM::Skill (readonly)

Get the skill bound to the wrapper

Returns:



1603
1604
1605
# File 'docs/00800_Studio.rb', line 1603

def skill
  @skill
end

#skill_message_idInteger?

Get the ID of the message that should be shown in the Summary UI

Returns:

  • (Integer, nil)


1606
1607
1608
# File 'docs/00800_Studio.rb', line 1606

def skill_message_id
  @skill_message_id
end

#stone_evolveBoolean

Get if the item is making a Pokemon evolve

Returns:

  • (Boolean)


1594
1595
1596
# File 'docs/00800_Studio.rb', line 1594

def stone_evolve
  @stone_evolve
end

#use_before_tellingBoolean

Get if the item should be used before the usage message

Returns:

  • (Boolean)


1597
1598
1599
# File 'docs/00800_Studio.rb', line 1597

def use_before_telling
  @use_before_telling
end

Instance Method Details

#bind(scene, creature, skill = nil)

Bind the wrapper to a scene, creature & skill

Parameters:



1660
1661
# File 'docs/00800_Studio.rb', line 1660

def bind(scene, creature, skill = nil)
end

#execute_battle_action

Call the action_to_push block



1654
1655
# File 'docs/00800_Studio.rb', line 1654

def execute_battle_action
end

#on_creature_choice?Boolean

Tell if the wrapper has a Pokemon choice

Returns:

  • (Boolean)


1624
1625
# File 'docs/00800_Studio.rb', line 1624

def on_creature_choice?
end

#void_non_battle_block

Void all regular block for battle usage



1620
1621
# File 'docs/00800_Studio.rb', line 1620

def void_non_battle_block
end