Class: PFM::Skill

Inherits:
Object show all
Defined in:
docs/4_Systems_000_General_1_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



1946
1947
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1946

def initialize(db_symbol)
end

Instance Attribute Details

#idInteger (readonly)

ID of the skill in the Database

Returns:

  • (Integer)


1943
1944
1945
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1943

def id
  @id
end

#ppInteger

The current number of PP the skill has

Returns:

  • (Integer)


1940
1941
1942
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1940

def pp
  @pp
end

#ppmaxInteger

The maximum number of PP the skill has

Returns:

  • (Integer)


1937
1938
1939
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1937

def ppmax
  @ppmax
end

Instance Method Details

#accuracyInteger

Return the actual accuracy of the skill

Returns:

  • (Integer)


1983
1984
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1983

def accuracy
end

#accuracy_textString

Return the accuracy text of the skill

Returns:



1987
1988
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1987

def accuracy_text
end

#atk_classInteger

Get the ATK class for the UI

Returns:

  • (Integer)


2007
2008
# File 'docs/4_Systems_000_General_1_PFM.rb', line 2007

def atk_class
end

#base_powerInteger Also known as: power

Return the base power (Data power) of the skill

Returns:

  • (Integer)


1974
1975
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1974

def base_power
end

#dataStudio::Move

Return the actual data of the move

Returns:



1950
1951
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1950

def data
end

#db_symbolSymbol

Return the db_symbol of the skill

Returns:

  • (Symbol)


1954
1955
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1954

def db_symbol
end

#descriptionString

Return the skill description

Returns:



1991
1992
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1991

def description
end

#map_useInteger

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

Returns:

  • (Integer)


1995
1996
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1995

def map_use
end

#nameString

Return the name of the skill

Returns:



1958
1959
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1958

def name
end

#power_textString

Return the text of the power of the skill

Returns:



1966
1967
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1966

def power_text
end

#pp_textString

Return the text of the PP of the skill

Returns:



1970
1971
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1970

def pp_text
end

#symbolSymbol

Return the symbol of the method to call in BattleEngine

Returns:

  • (Symbol)


1962
1963
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1962

def symbol
end

#typeInteger

Return the actual type ID of the skill

Returns:

  • (Integer)


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 ?

Parameters:

  • type_id (Integer)

    ID of the type

Returns:

  • (Boolean)


1999
2000
# File 'docs/4_Systems_000_General_1_PFM.rb', line 1999

def type?(type_id)
end