base_activity.py 590 B

12345678910111213141516171819202122232425
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. from tasks.Component.GeneralBattle.general_battle import GeneralBattle
  5. from abc import abstractmethod
  6. class BaseActivity(GeneralBattle):
  7. @abstractmethod
  8. def run(self) -> None:
  9. pass
  10. @abstractmethod
  11. def home_main(self) -> bool:
  12. """
  13. 从庭院到活动的爬塔界面
  14. :return:
  15. """
  16. pass
  17. @abstractmethod
  18. def main_home(self) -> bool:
  19. """
  20. 从活动的爬塔界面到庭院
  21. :return:
  22. """