Class: PFM::Skill
Overview
The InGame skill/move information of a Pokemon
Instance Attribute Summary collapse
-
#id ⇒ Integer
readonly
ID of the skill in the Database.
-
#pp ⇒ Integer
The current number of PP the skill has.
-
#ppmax ⇒ Integer
The maximum number of PP the skill has.
Instance Method Summary collapse
-
#accuracy ⇒ Integer
Return the actual accuracy of the skill.
-
#accuracy_text ⇒ String
Return the accuracy text of the skill.
-
#atk_class ⇒ Integer
Get the ATK class for the UI.
-
#base_power ⇒ Integer
(also: #power)
Return the base power (Data power) of the skill.
-
#data ⇒ Studio::Move
Return the actual data of the move.
-
#db_symbol ⇒ Symbol
Return the db_symbol of the skill.
-
#description ⇒ String
Return the skill description.
-
#initialize(db_symbol) ⇒ Skill
constructor
Create a new Skill information.
-
#map_use ⇒ Integer
Return the ID of the common event to call on Map use.
-
#name ⇒ String
Return the name of the skill.
-
#power_text ⇒ String
Return the text of the power of the skill.
-
#pp_text ⇒ String
Return the text of the PP of the skill.
-
#symbol ⇒ Symbol
Return the symbol of the method to call in BattleEngine.
-
#type ⇒ Integer
Return the actual type ID of the skill.
-
#type?(type_id) ⇒ Boolean
Is the skill a specific type ?.
Constructor Details
#initialize(db_symbol) ⇒ Skill
Create a new Skill information
1946 1947 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1946 def initialize(db_symbol) end |
Instance Attribute Details
#id ⇒ Integer (readonly)
ID of the skill in the Database
1943 1944 1945 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1943 def id @id end |
#pp ⇒ Integer
The current number of PP the skill has
1940 1941 1942 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1940 def pp @pp end |
#ppmax ⇒ Integer
The maximum number of PP the skill has
1937 1938 1939 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1937 def ppmax @ppmax end |
Instance Method Details
#accuracy ⇒ Integer
Return the actual accuracy of the skill
1983 1984 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1983 def accuracy end |
#accuracy_text ⇒ String
Return the accuracy text of the skill
1987 1988 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1987 def accuracy_text end |
#atk_class ⇒ Integer
Get the ATK class for the UI
2007 2008 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2007 def atk_class end |
#base_power ⇒ Integer Also known as: power
Return the base power (Data power) of the skill
1974 1975 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1974 def base_power end |
#data ⇒ Studio::Move
Return the actual data of the move
1950 1951 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1950 def data end |
#db_symbol ⇒ Symbol
Return the db_symbol of the skill
1954 1955 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1954 def db_symbol end |
#description ⇒ String
Return the skill description
1991 1992 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1991 def description end |
#map_use ⇒ Integer
Return the ID of the common event to call on Map use
1995 1996 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1995 def map_use end |
#name ⇒ String
Return the name of the skill
1958 1959 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1958 def name end |
#power_text ⇒ String
Return the text of the power of the skill
1966 1967 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1966 def power_text end |
#pp_text ⇒ String
Return the text of the PP of the skill
1970 1971 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1970 def pp_text end |
#symbol ⇒ Symbol
Return the symbol of the method to call in BattleEngine
1962 1963 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1962 def symbol end |
#type ⇒ Integer
Return the actual type ID of the skill
1979 1980 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1979 def type end |
#type?(type_id) ⇒ Boolean
Is the skill a specific type ?
1999 2000 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1999 def type?(type_id) end |