2012-02-02 14:26:38 +08:00
|
|
|
|
|
|
|
typedef enum LanguageType
|
|
|
|
{
|
|
|
|
kLanguageEnglish = 0,
|
|
|
|
kLanguageChinese,
|
|
|
|
kLanguageFrench,
|
|
|
|
kLanguageItalian,
|
|
|
|
kLanguageGerman,
|
|
|
|
kLanguageSpanish,
|
|
|
|
kLanguageRussian
|
|
|
|
} ccLanguageType;
|
|
|
|
|
2012-09-25 16:43:36 +08:00
|
|
|
enum TargetPlatform
|
|
|
|
{
|
|
|
|
kTargetWindows,
|
|
|
|
kTargetLinux,
|
|
|
|
kTargetMacOS,
|
|
|
|
kTargetAndroid,
|
|
|
|
kTargetIphone,
|
|
|
|
kTargetIpad,
|
|
|
|
kTargetBlackBerry,
|
|
|
|
};
|
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
class CCApplication
|
|
|
|
{
|
2012-08-21 15:28:43 +08:00
|
|
|
static CCApplication* sharedApplication();
|
2012-04-26 09:34:42 +08:00
|
|
|
ccLanguageType getCurrentLanguage();
|
2012-09-25 16:43:36 +08:00
|
|
|
TargetPlatform getTargetPlatform();
|
2012-02-02 14:26:38 +08:00
|
|
|
};
|