AppDelegate.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /********************************************************************
  2. * Nomes: Gabriel Capella Números USP: 8962078
  3. * João Herique Luciano 8535957
  4. *
  5. * Tarefa: RedCore - EP2 MAC0463
  6. * Arquivo: AppDelegate.h
  7. * Descrição: Classe para inicializar jogo. Padrão da biblioteca.
  8. ********************************************************************/
  9. #ifndef _APP_DELEGATE_H_
  10. #define _APP_DELEGATE_H_
  11. #include "cocos2d.h"
  12. class AppDelegate : private cocos2d::Application {
  13. public:
  14. AppDelegate();
  15. virtual ~AppDelegate();
  16. virtual void initGLContextAttrs();
  17. /**
  18. @brief Implement Director and Scene init code here.
  19. @return true Initialize success, app continue.
  20. @return false Initialize failed, app terminate.
  21. */
  22. virtual bool applicationDidFinishLaunching();
  23. /**
  24. @brief Called when the application moves to the background
  25. @param the pointer of the application
  26. */
  27. virtual void applicationDidEnterBackground();
  28. /**
  29. @brief Called when the application reenters the foreground
  30. @param the pointer of the application
  31. */
  32. virtual void applicationWillEnterForeground();
  33. };
  34. #endif // _APP_DELEGATE_H_