Class: PFM::Wild_RoamingInfo
Overview
Wild Roaming Pokemon informations
Constant Summary collapse
- RoamingProcs =
The proc takes the Wild_RoamingInfo in parameter and change the informations.
[proc do |infos| infos.map_id = 1 infos.zone_type = 1 infos.tag = 1 end, proc do |infos| maps = [5, 20] if (infos.map_id == $game_map.map_id && infos.spotted) || infos.map_id == -1 infos.map_id = (maps - [infos.map_id]).sample infos.spotted = false end infos.zone_type = 1 infos.tag = 0 end]
- @@locked =
true
Instance Attribute Summary collapse
-
#map_id ⇒ Integer
The ID of the map in which the Roaming Pokemon will appear.
-
#pokemon ⇒ PFM::Pokemon
readonly
The roaming Pokemon.
-
#spotted ⇒ Boolean
The spotted state of the pokemon.
-
#tag ⇒ Integer
The tag in which the Roaming Pokemon will appear.
-
#zone_type ⇒ Integer
The system_tag zone ID in which the Roaming Pokemon will appear.
Class Method Summary collapse
-
.lock
Disallow roaming informations to be updated.
-
.unlock
Allow roaming informations to be updated.
Instance Method Summary collapse
-
#appearing? ⇒ Boolean
Test if the Roaming Pokemon is appearing (to start the battle).
-
#could_appear? ⇒ Boolean
Test if the Roaming Pokemon could appear here.
-
#initialize(pokemon, chance, zone_proc_id) ⇒ Wild_RoamingInfo
constructor
Create a new Wild_RoamingInfo.
-
#pokemon_dead? ⇒ Boolean
Test if the Pokemon is dead (delete from the stack).
-
#update
Call the Roaming Proc to update the Roaming Pokemon zone information.
Constructor Details
#initialize(pokemon, chance, zone_proc_id) ⇒ Wild_RoamingInfo
Create a new Wild_RoamingInfo
331 332 |
# File 'docs/4_Systems_999_Wild.rb', line 331 def initialize(pokemon, chance, zone_proc_id) end |
Instance Attribute Details
#map_id ⇒ Integer
The ID of the map in which the Roaming Pokemon will appear
313 314 315 |
# File 'docs/4_Systems_999_Wild.rb', line 313 def map_id @map_id end |
#pokemon ⇒ PFM::Pokemon (readonly)
The roaming Pokemon
316 317 318 |
# File 'docs/4_Systems_999_Wild.rb', line 316 def pokemon @pokemon end |
#spotted ⇒ Boolean
The spotted state of the pokemon. True if the player look at the map position or after fighting the roaming pokemon
319 320 321 |
# File 'docs/4_Systems_999_Wild.rb', line 319 def spotted @spotted end |
#tag ⇒ Integer
The tag in which the Roaming Pokemon will appear
307 308 309 |
# File 'docs/4_Systems_999_Wild.rb', line 307 def tag @tag end |
#zone_type ⇒ Integer
The system_tag zone ID in which the Roaming Pokemon will appear
310 311 312 |
# File 'docs/4_Systems_999_Wild.rb', line 310 def zone_type @zone_type end |
Class Method Details
.lock
Disallow roaming informations to be updated
325 326 |
# File 'docs/4_Systems_999_Wild.rb', line 325 def self.lock end |
.unlock
Allow roaming informations to be updated
322 323 |
# File 'docs/4_Systems_999_Wild.rb', line 322 def self.unlock end |
Instance Method Details
#appearing? ⇒ Boolean
Test if the Roaming Pokemon is appearing (to start the battle)
342 343 |
# File 'docs/4_Systems_999_Wild.rb', line 342 def appearing? end |
#could_appear? ⇒ Boolean
Test if the Roaming Pokemon could appear here
346 347 |
# File 'docs/4_Systems_999_Wild.rb', line 346 def could_appear? end |
#pokemon_dead? ⇒ Boolean
Test if the Pokemon is dead (delete from the stack)
338 339 |
# File 'docs/4_Systems_999_Wild.rb', line 338 def pokemon_dead? end |
#update
Call the Roaming Proc to update the Roaming Pokemon zone information
334 335 |
# File 'docs/4_Systems_999_Wild.rb', line 334 def update end |