cocos2d-x  3.0-beta2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ApplicationProtocol Class Referenceabstract

#include <CCApplicationProtocol.h>

Inheritance diagram for ApplicationProtocol:
Application Application Application Application Application

Public Types

enum  Platform {
  OS_WINDOWS, OS_LINUX, OS_MAC, OS_ANDROID,
  OS_IPHONE, OS_IPAD, OS_BLACKBERRY, OS_NACL,
  OS_EMSCRIPTEN, OS_TIZEN
}
 

Public Member Functions

virtual ~ApplicationProtocol ()
virtual bool applicationDidFinishLaunching ()=0
 Implement Director and Scene init code here. More...
 
virtual void applicationDidEnterBackground ()=0
 This function will be called when the application enters background. More...
 
virtual void applicationWillEnterForeground ()=0
 This function will be called when the application enters foreground. More...
 
virtual void setAnimationInterval (double interval)=0
 Callback by Director for limit FPS. More...
 
virtual LanguageType getCurrentLanguage ()=0
 Get current language config. More...
 
virtual Platform getTargetPlatform ()=0
 Get target platform. More...
 

Member Enumeration Documentation

enum Platform
strong
Enumerator
OS_WINDOWS 
OS_LINUX 
OS_MAC 
OS_ANDROID 
OS_IPHONE 
OS_IPAD 
OS_BLACKBERRY 
OS_NACL 
OS_EMSCRIPTEN 
OS_TIZEN 
var Platform
strong
Enumerator
OS_WINDOWS 
OS_LINUX 
OS_MAC 
OS_ANDROID 
OS_IPHONE 
OS_IPAD 
OS_BLACKBERRY 
OS_NACL 
OS_EMSCRIPTEN 
OS_TIZEN 
local Platform
strong
Enumerator
OS_WINDOWS 
OS_LINUX 
OS_MAC 
OS_ANDROID 
OS_IPHONE 
OS_IPAD 
OS_BLACKBERRY 
OS_NACL 
OS_EMSCRIPTEN 
OS_TIZEN 

Constructor & Destructor Documentation

virtual ~ApplicationProtocol ( )
inlinevirtual

Member Function Documentation

virtual void
applicationDidEnterBackground
( )
pure virtual

This function will be called when the application enters background.

virtual bool
applicationDidFinishLaunching
( )
pure virtual

Implement Director and Scene init code here.

Returns
true Initialize success, app continue.
false Initialize failed, app terminate.
virtual void
applicationWillEnterForeground
( )
pure virtual

This function will be called when the application enters foreground.

virtual LanguageType
getCurrentLanguage
( )
pure virtual

Get current language config.

Returns
Current language config

Implemented in Application, Application, Application, Application, and Application.

virtual Platform getTargetPlatform ( )
pure virtual

Get target platform.

Implemented in Application, Application, Application, Application, and Application.

virtual void setAnimationInterval ( double  interval)
pure virtual

Callback by Director for limit FPS.

Parameters
intervalThe time, expressed in seconds, between current frame and next.

Implemented in Application, Application, Application, Application, and Application.


The documentation for this class was generated from the following file: