diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-11-11 22:21:23 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-11-11 22:21:23 -0600 |
commit | d6cf3454c44fab60c6f83bc8fa3109f0c793fd2f (patch) | |
tree | 3d9bb3de01dc9ea44e40a67e3e6f05b01e9d2845 /pokemontools/vba/battle.py | |
parent | 2ff3478bfda330fbc379f5278a6d37d7065dd9df (diff) |
prepare for a wild-based detector
This one isn't implemented yet but might as well get the wrapper
functions out of the way.
Diffstat (limited to 'pokemontools/vba/battle.py')
-rw-r--r-- | pokemontools/vba/battle.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pokemontools/vba/battle.py b/pokemontools/vba/battle.py index 9fe4a84..6b52bce 100644 --- a/pokemontools/vba/battle.py +++ b/pokemontools/vba/battle.py @@ -64,6 +64,21 @@ class Battle(EmulatorController): """ return self.emulator.is_trainer_switch_prompt() + def is_wild_switch_prompt(self): + """ + Detects if the battle is waiting for the player to choose whether or + not to continue to fight the wild pokemon. + """ + return self.emulator.is_wild_switch_prompt() + + def is_switch_prompt(self): + """ + Detects both trainer and wild switch prompts (for prompting whether to + switch pokemon). This is a yes/no box and not the actual pokemon + selection menu. + """ + return self.is_trainer_switch_prompt() or self.is_wild_switch_prompt() + def is_mandatory_switch(self): """ Detects if the battle is waiting for the player to choose a next |