Class: PFM::Skill

Inherits:
Object show all
Defined in:
docs/01450_Systems_00000_General_00001_PFM.rb

Overview

The InGame skill/move information of a Pokemon

Author:

  • Nuri Yuri

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(db_symbol) ⇒ Skill

Create a new Skill information

Parameters:

  • db_symbol (Symbol)

    db_symbol of the skill/move in the database



1922
1923
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1922

def initialize(db_symbol)
end

Instance Attribute Details

#idInteger (readonly)

ID of the skill in the Database

Returns:

  • (Integer)


1919
1920
1921
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1919

def id
  @id
end

#ppInteger

The current number of PP the skill has

Returns:

  • (Integer)


1916
1917
1918
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1916

def pp
  @pp
end

#ppmaxInteger

The maximum number of PP the skill has

Returns:

  • (Integer)


1913
1914
1915
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1913

def ppmax
  @ppmax
end

Instance Method Details

#accuracyInteger

Return the actual accuracy of the skill

Returns:

  • (Integer)


1959
1960
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1959

def accuracy
end

#accuracy_textString

Return the accuracy text of the skill

Returns:



1963
1964
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1963

def accuracy_text
end

#atk_classInteger

Get the ATK class for the UI

Returns:

  • (Integer)


1983
1984
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1983

def atk_class
end

#base_powerInteger Also known as: power

Return the base power (Data power) of the skill

Returns:

  • (Integer)


1950
1951
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1950

def base_power
end

#dataStudio::Move

Return the actual data of the move

Returns:



1926
1927
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1926

def data
end

#db_symbolSymbol

Return the db_symbol of the skill

Returns:

  • (Symbol)


1930
1931
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1930

def db_symbol
end

#descriptionString

Return the skill description

Returns:



1967
1968
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1967

def description
end

#map_useInteger

Return the ID of the common event to call on Map use

Returns:

  • (Integer)


1971
1972
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1971

def map_use
end

#nameString

Return the name of the skill

Returns:



1934
1935
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1934

def name
end

#power_textString

Return the text of the power of the skill

Returns:



1942
1943
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1942

def power_text
end

#pp_textString

Return the text of the PP of the skill

Returns:



1946
1947
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1946

def pp_text
end

#symbolSymbol

Return the symbol of the method to call in BattleEngine

Returns:

  • (Symbol)


1938
1939
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1938

def symbol
end

#typeInteger

Return the actual type ID of the skill

Returns:

  • (Integer)


1955
1956
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1955

def type
end

#type?(type_id) ⇒ Boolean

Is the skill a specific type ?

Parameters:

  • type_id (Integer)

    ID of the type

Returns:

  • (Boolean)


1975
1976
# File 'docs/01450_Systems_00000_General_00001_PFM.rb', line 1975

def type?(type_id)
end