Class: Battle::Move::BellyDrum

Inherits:
Move
  • Object
show all
Defined in:
docs/5_Battle_10_Move.rb

Overview

Class describing the Belly Drum move

Direct Known Subclasses

FilletAway

Instance Method Summary collapse

Instance Method Details

#deal_effect(user, actual_targets)

Function that deals the effect to the pokemon

Parameters:



2014
2015
# File 'docs/5_Battle_10_Move.rb', line 2014

def deal_effect(user, actual_targets)
end

#factor ⇒ Integer

The divisor used to calculate the HP cost

Returns:

  • (Integer)


2024
2025
# File 'docs/5_Battle_10_Move.rb', line 2024

def factor
end

#message(user, target) ⇒ String?

Parse a text from the text database with specific informations and a pokemon

Parameters:

Returns:

  • (String, nil) —

    the text parsed and ready to be displayed



2034
2035
# File 'docs/5_Battle_10_Move.rb', line 2034

def message(user, target)
end

#move_usable_by_user(user, targets) ⇒ Boolean

Note:

Thing that prevents the move from being used should be defined by :move_prevention_user Hook

Function that tests if the user is able to use the move

Parameters:

Returns:

  • (Boolean) —

    if the procedure can continue



2009
2010
# File 'docs/5_Battle_10_Move.rb', line 2009

def move_usable_by_user(user, targets)
end

#stat_changeable?(stat, user) ⇒ Boolean

Check if a stat is changeable

Parameters:

Returns:

  • (Boolean)


2020
2021
# File 'docs/5_Battle_10_Move.rb', line 2020

def stat_changeable?(stat, user)
end

#stats ⇒ Hash{Symbol => Integer}

Method containing stats and the power to raise them

Returns:

  • (Hash{Symbol => Integer})


2028
2029
# File 'docs/5_Battle_10_Move.rb', line 2028

def stats
end