Class: PFM::Nuzlocke
Overview
Class responsive of managing Nuzlocke information and helping to implement the nuzlocke logic
Instance Attribute Summary collapse
-
#game_state ⇒ PFM::GameState
Get the game state responsive of the whole game state.
-
#graveyard ⇒ Array<PFM::Pokemon>
Storage of dead Pokemon to re-use later in other systems.
-
#no_lock_on_duplicate ⇒ Boolean
If we prevent Duplicate from locking catch.
Instance Method Summary collapse
-
#catching_locked?(id) ⇒ Boolean
Tell if catching is locked in the given zone.
-
#catching_locked_here? ⇒ Boolean
Tell if catching is locked in the current zone.
-
#clear_dead_pokemon
(also: #dead)
Function that clears the dead Pokemon from the party and put their item back in the bag.
-
#disable
Disable the Nuzlocke.
-
#enable
Enable the Nuzlocke.
-
#enabled? ⇒ Boolean
Tell if the Nuzlocke is enabled.
-
#initialize(game_state = PFM.game_state) ⇒ Nuzlocke
constructor
Create a new Nuzlocke object.
-
#lock_catch_in_current_zone(pokemon_id)
Lock the current zone (prevent Pokemon from being able to be caught here).
-
#switch(bool)
Switch the enable state of the Nuzlocke.
Constructor Details
#initialize(game_state = PFM.game_state) ⇒ Nuzlocke
Create a new Nuzlocke object
16 17 |
# File 'docs/4_Systems_204_Nuzlocke.rb', line 16 def initialize(game_state = PFM.game_state) end |
Instance Attribute Details
#game_state ⇒ PFM::GameState
Get the game state responsive of the whole game state
13 14 15 |
# File 'docs/4_Systems_204_Nuzlocke.rb', line 13 def game_state @game_state end |
#graveyard ⇒ Array<PFM::Pokemon>
Storage of dead Pokemon to re-use later in other systems
10 11 12 |
# File 'docs/4_Systems_204_Nuzlocke.rb', line 10 def graveyard @graveyard end |
#no_lock_on_duplicate ⇒ Boolean
If we prevent Duplicate from locking catch
7 8 9 |
# File 'docs/4_Systems_204_Nuzlocke.rb', line 7 def no_lock_on_duplicate @no_lock_on_duplicate end |
Instance Method Details
#catching_locked?(id) ⇒ Boolean
Tell if catching is locked in the given zone
31 32 |
# File 'docs/4_Systems_204_Nuzlocke.rb', line 31 def catching_locked?(id) end |
#catching_locked_here? ⇒ Boolean
Tell if catching is locked in the current zone
35 36 |
# File 'docs/4_Systems_204_Nuzlocke.rb', line 35 def catching_locked_here? end |
#clear_dead_pokemon Also known as: dead
Function that clears the dead Pokemon from the party and put their item back in the bag
20 21 |
# File 'docs/4_Systems_204_Nuzlocke.rb', line 20 def clear_dead_pokemon end |
#disable
Disable the Nuzlocke
49 50 |
# File 'docs/4_Systems_204_Nuzlocke.rb', line 49 def disable end |
#enable
Enable the Nuzlocke
46 47 |
# File 'docs/4_Systems_204_Nuzlocke.rb', line 46 def enable end |
#enabled? ⇒ Boolean
Tell if the Nuzlocke is enabled
43 44 |
# File 'docs/4_Systems_204_Nuzlocke.rb', line 43 def enabled? end |
#lock_catch_in_current_zone(pokemon_id)
This method checks if that’s possible to lock before locking
Lock the current zone (prevent Pokemon from being able to be caught here)
26 27 |
# File 'docs/4_Systems_204_Nuzlocke.rb', line 26 def lock_catch_in_current_zone(pokemon_id) end |
#switch(bool)
Switch the enable state of the Nuzlocke
39 40 |
# File 'docs/4_Systems_204_Nuzlocke.rb', line 39 def switch(bool) end |