Pokemon-Terminal/adapter/base.py

23 lines
597 B
Python
Raw Normal View History

2017-06-21 11:49:16 +00:00
class TerminalAdapterInterface(object):
@staticmethod
def is_available():
"""
:return: True if the environment implies we are using this terminal.
:rtype bool
"""
raise NotImplementedError()
2017-06-21 11:49:16 +00:00
def set_pokemon(self, pokemon):
"""
Set the background image of the terminal.
:param pokemon: Information about a Pokémon.
:type pokemon: dict
"""
2017-06-21 11:49:16 +00:00
raise NotImplementedError()
def clear(self):
"""
Clear the terminal's background image.
"""
2017-06-21 11:49:16 +00:00
raise NotImplementedError()