Showing preview only (5,035K chars total). Download the full file or copy to clipboard to get everything.
Repository: zym2014/mir9-lua
Branch: master
Commit: 2b7bd046f42a
Files: 427
Total size: 4.7 MB
Directory structure:
gitextract_n8c0ksdh/
├── README.md
├── 发布说明.txt
└── 源代码/
├── 2.2.5/
│ └── mir9/
│ ├── .buildpath
│ ├── .cocos-project.json
│ ├── .project
│ ├── .settings/
│ │ ├── org.eclipse.core.resources.prefs
│ │ └── version.json
│ ├── config.json
│ ├── proj.android/
│ │ ├── .classpath
│ │ ├── .project
│ │ ├── .settings/
│ │ │ └── org.eclipse.jdt.core.prefs
│ │ ├── AndroidManifest.xml
│ │ ├── build_native.bat
│ │ ├── build_native.sh
│ │ ├── clean.bat
│ │ ├── clean.sh
│ │ ├── gen/
│ │ │ └── com/
│ │ │ └── zym/
│ │ │ └── mir9/
│ │ │ ├── BuildConfig.java
│ │ │ └── R.java
│ │ ├── jni/
│ │ │ ├── Android.mk
│ │ │ ├── Application.mk
│ │ │ ├── hellocpp/
│ │ │ │ └── main.cpp
│ │ │ └── list.sh
│ │ ├── project.properties
│ │ ├── res/
│ │ │ └── values/
│ │ │ └── strings.xml
│ │ └── src/
│ │ └── com/
│ │ └── zym/
│ │ └── mir9/
│ │ └── Mir9.java
│ ├── proj.ios/
│ │ ├── AppController.h
│ │ ├── AppController.mm
│ │ ├── Resources/
│ │ │ └── Info.plist
│ │ ├── RootViewController.h
│ │ ├── RootViewController.mm
│ │ ├── main.m
│ │ └── mir9.xcodeproj/
│ │ └── project.pbxproj
│ ├── proj.mac/
│ │ ├── AppController.h
│ │ ├── AppController.mm
│ │ ├── Icon.icns
│ │ ├── Info.plist
│ │ ├── MainMenu.xib
│ │ ├── main.m
│ │ └── mir9.xcodeproj/
│ │ └── project.pbxproj
│ ├── proj.win32/
│ │ ├── app.cpp
│ │ ├── app.h
│ │ ├── app.rc
│ │ ├── mir9.sln
│ │ ├── mir9.v11.suo
│ │ ├── mir9.vcxproj
│ │ ├── mir9.vcxproj.filters
│ │ ├── resource.h
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ └── targetver.h
│ ├── run-mac.sh
│ ├── run-win.bat
│ ├── scripts/
│ │ ├── app/
│ │ │ ├── GameSocket.lua
│ │ │ ├── MyApp.lua
│ │ │ ├── figure/
│ │ │ │ ├── Enemy.lua
│ │ │ │ ├── Figure.lua
│ │ │ │ ├── Monomer.lua
│ │ │ │ ├── Player.lua
│ │ │ │ ├── PlayerController.lua
│ │ │ │ └── TextureController.lua
│ │ │ ├── game_ui/
│ │ │ │ ├── AttackEnemyInfo.lua
│ │ │ │ ├── CCTouchMouse.lua
│ │ │ │ ├── FlutteringFairy.lua
│ │ │ │ ├── GameInfoUIController.lua
│ │ │ │ ├── GameOptions.lua
│ │ │ │ ├── GameTabBarMenu.lua
│ │ │ │ ├── LAlertView.lua
│ │ │ │ ├── LOperationMenu.lua
│ │ │ │ ├── MapThumbnailLayer.lua
│ │ │ │ ├── ProgressAutomatic.lua
│ │ │ │ ├── PropColumn.lua
│ │ │ │ └── SkillTableView.lua
│ │ │ ├── map/
│ │ │ │ ├── AStarSearch.lua
│ │ │ │ ├── BgMap.lua
│ │ │ │ ├── BgMapFloorTile.lua
│ │ │ │ ├── MapPoint.lua
│ │ │ │ ├── NpcFigure.lua
│ │ │ │ ├── NpcInfo.lua
│ │ │ │ ├── NpcInfoSystem.lua
│ │ │ │ ├── PathAStar.lua
│ │ │ │ └── PortalSprite.lua
│ │ │ ├── prop_system/
│ │ │ │ ├── PropIconShow.lua
│ │ │ │ ├── PropInfo.lua
│ │ │ │ └── PropSystem.lua
│ │ │ ├── scenes/
│ │ │ │ ├── GameLoading.lua
│ │ │ │ ├── LoginScene.lua
│ │ │ │ ├── MainScene.lua
│ │ │ │ └── RoleSelScene.lua
│ │ │ └── skill_system/
│ │ │ ├── AttackSkillInfo.lua
│ │ │ ├── AttackSkillSystem.lua
│ │ │ └── SkillEffectShow.lua
│ │ ├── config.lua
│ │ └── main.lua
│ └── sources/
│ ├── AppDelegate.cpp
│ └── AppDelegate.h
└── mir9/
├── .project
├── config.json
├── frameworks/
│ └── runtime-src/
│ ├── Classes/
│ │ ├── AppDelegate.cpp
│ │ ├── AppDelegate.h
│ │ ├── CodeIDESupport.h
│ │ ├── ConfigParser.cpp
│ │ ├── ConfigParser.h
│ │ ├── VisibleRect.cpp
│ │ ├── VisibleRect.h
│ │ ├── anysdk_manual_bindings.cpp
│ │ ├── anysdk_manual_bindings.h
│ │ ├── anysdkbindings.cpp
│ │ ├── anysdkbindings.h
│ │ ├── lua_module_register.h
│ │ └── runtime/
│ │ ├── ConnectWaitLayer.cpp
│ │ ├── ConnectWaitLayer.h
│ │ ├── ConsoleCommand.cpp
│ │ ├── ConsoleCommand.h
│ │ ├── FileServer.cpp
│ │ ├── FileServer.h
│ │ ├── Landscape_png.cpp
│ │ ├── PlayDisable_png.cpp
│ │ ├── PlayEnable_png.cpp
│ │ ├── Portrait_png.cpp
│ │ ├── Protos.pb.cc
│ │ ├── Protos.pb.h
│ │ ├── ResData.h
│ │ ├── Runtime.cpp
│ │ ├── Runtime.h
│ │ ├── Shine_png.cpp
│ │ ├── lua_debugger.c
│ │ └── lua_debugger.h
│ ├── proj.android/
│ │ ├── AndroidManifest.xml
│ │ ├── ant.properties
│ │ ├── build-cfg.json
│ │ ├── build.xml
│ │ ├── build_apk.bat
│ │ ├── build_apk.sh
│ │ ├── build_native.bat
│ │ ├── build_native.sh
│ │ ├── build_native_release.bat
│ │ ├── build_native_release.sh
│ │ ├── clean.bat
│ │ ├── clean.sh
│ │ ├── gen/
│ │ │ └── com/
│ │ │ └── zym/
│ │ │ └── mir9/
│ │ │ └── R.java
│ │ ├── jni/
│ │ │ ├── Android.mk
│ │ │ ├── Application.mk
│ │ │ └── hellolua/
│ │ │ ├── Runtime_android.cpp
│ │ │ └── main.cpp
│ │ ├── libs/
│ │ │ └── libPluginProtocol.jar
│ │ ├── proguard-project.txt
│ │ ├── project.properties
│ │ ├── protocols/
│ │ │ ├── android/
│ │ │ │ ├── Android.mk
│ │ │ │ ├── PluginJavaData.h
│ │ │ │ ├── PluginJniHelper.h
│ │ │ │ ├── PluginJniMacros.h
│ │ │ │ ├── PluginUtils.h
│ │ │ │ ├── lib/
│ │ │ │ │ ├── armeabi/
│ │ │ │ │ │ └── libPluginProtocolStatic.a
│ │ │ │ │ ├── armeabi-v7a/
│ │ │ │ │ │ └── libPluginProtocolStatic.a
│ │ │ │ │ └── x86/
│ │ │ │ │ └── libPluginProtocolStatic.a
│ │ │ │ └── libPluginProtocol.jar
│ │ │ ├── include/
│ │ │ │ ├── AgentManager.h
│ │ │ │ ├── PluginFactory.h
│ │ │ │ ├── PluginManager.h
│ │ │ │ ├── PluginParam.h
│ │ │ │ ├── PluginProtocol.h
│ │ │ │ ├── ProtocolAds.h
│ │ │ │ ├── ProtocolAnalytics.h
│ │ │ │ ├── ProtocolIAP.h
│ │ │ │ ├── ProtocolPush.h
│ │ │ │ ├── ProtocolShare.h
│ │ │ │ ├── ProtocolSocial.h
│ │ │ │ └── ProtocolUser.h
│ │ │ └── res/
│ │ │ ├── layout/
│ │ │ │ ├── plugin_ads.xml
│ │ │ │ └── plugin_login.xml
│ │ │ └── values/
│ │ │ └── plugin_string.xml
│ │ ├── res/
│ │ │ ├── layout/
│ │ │ │ ├── plugin_ads.xml
│ │ │ │ └── plugin_login.xml
│ │ │ └── values/
│ │ │ ├── plugin_string.xml
│ │ │ └── strings.xml
│ │ └── src/
│ │ └── org/
│ │ └── cocos2dx/
│ │ ├── lib/
│ │ │ └── QuickHTTPInterface.java
│ │ └── lua/
│ │ └── AppActivity.java
│ ├── proj.android_no_anysdk/
│ │ ├── .classpath
│ │ ├── .project
│ │ ├── .settings/
│ │ │ └── org.eclipse.jdt.core.prefs
│ │ ├── AndroidManifest.xml
│ │ ├── ant.properties
│ │ ├── build-cfg.json
│ │ ├── build.xml
│ │ ├── build_apk.bat
│ │ ├── build_apk.sh
│ │ ├── build_native.bat
│ │ ├── build_native.sh
│ │ ├── build_native_release.bat
│ │ ├── build_native_release.sh
│ │ ├── clean.bat
│ │ ├── clean.sh
│ │ ├── gen/
│ │ │ └── com/
│ │ │ └── zym/
│ │ │ └── mir9/
│ │ │ ├── BuildConfig.java
│ │ │ └── R.java
│ │ ├── jni/
│ │ │ ├── Android.mk
│ │ │ ├── Application.mk
│ │ │ └── hellolua/
│ │ │ ├── Runtime_android.cpp
│ │ │ └── main.cpp
│ │ ├── keystore
│ │ ├── proguard-project.txt
│ │ ├── project.properties
│ │ ├── res/
│ │ │ └── values/
│ │ │ └── strings.xml
│ │ └── src/
│ │ └── org/
│ │ └── cocos2dx/
│ │ ├── lib/
│ │ │ └── QuickHTTPInterface.java
│ │ └── lua/
│ │ └── AppActivity.java
│ ├── proj.ios_mac/
│ │ ├── Runtime_ios-mac.mm
│ │ ├── ios/
│ │ │ ├── AppController.h
│ │ │ ├── AppController.mm
│ │ │ ├── Info.plist
│ │ │ ├── Prefix.pch
│ │ │ ├── RootViewController.h
│ │ │ ├── RootViewController.mm
│ │ │ ├── build-cfg.json
│ │ │ └── main.m
│ │ ├── mac/
│ │ │ ├── ConsoleWindow.xib
│ │ │ ├── ConsoleWindowController.h
│ │ │ ├── ConsoleWindowController.m
│ │ │ ├── Icon.icns
│ │ │ ├── Info.plist
│ │ │ ├── Prefix.pch
│ │ │ ├── SimulatorApp.h
│ │ │ ├── SimulatorApp.mm
│ │ │ ├── build-cfg.json
│ │ │ ├── en.lproj/
│ │ │ │ └── MainMenu.xib
│ │ │ └── main.m
│ │ └── mir9.xcodeproj/
│ │ └── project.pbxproj
│ ├── proj.win32/
│ │ ├── Runtime_win32.cpp
│ │ ├── SimulatorWindow.cpp
│ │ ├── SimulatorWindow.h
│ │ ├── build-cfg.json
│ │ ├── game.rc
│ │ ├── main.cpp
│ │ ├── main.h
│ │ ├── mir9.sln
│ │ ├── mir9.vcxproj
│ │ ├── mir9.vcxproj.filters
│ │ ├── mir9.vcxproj.user
│ │ └── resource.h
│ └── proj.wp8-xaml/
│ ├── App/
│ │ ├── App.xaml
│ │ ├── App.xaml.cs
│ │ ├── EditBox.xaml
│ │ ├── EditBox.xaml.cs
│ │ ├── LocalizedStrings.cs
│ │ ├── MainPage.xaml
│ │ ├── MainPage.xaml.cs
│ │ ├── Properties/
│ │ │ ├── AppManifest.xml
│ │ │ ├── AssemblyInfo.cs
│ │ │ └── WMAppManifest.xml
│ │ ├── Resources/
│ │ │ ├── AppResources.Designer.cs
│ │ │ └── AppResources.resx
│ │ └── mir9.csproj
│ ├── AppComponent/
│ │ ├── mir9Component.vcxproj
│ │ ├── mir9Component.vcxproj.filters
│ │ └── src/
│ │ ├── Cocos2dRenderer.cpp
│ │ ├── Cocos2dRenderer.h
│ │ ├── Direct3DContentProvider.cpp
│ │ ├── Direct3DContentProvider.h
│ │ ├── Direct3DInterop.cpp
│ │ ├── Direct3DInterop.h
│ │ ├── DirectXBase.cpp
│ │ ├── DirectXBase.h
│ │ ├── DirectXHelper.h
│ │ ├── EditBoxEvent.cpp
│ │ ├── EditBoxEvent.h
│ │ ├── pch.cpp
│ │ └── pch.h
│ └── mir9.sln
├── res/
│ └── README.txt
└── src/
├── app/
│ ├── GameSocket.lua
│ ├── MyApp.lua
│ ├── figure/
│ │ ├── Enemy.lua
│ │ ├── Figure.lua
│ │ ├── Monomer.lua
│ │ ├── Player.lua
│ │ ├── PlayerController.lua
│ │ └── TextureController.lua
│ ├── game_ui/
│ │ ├── AttackEnemyInfo.lua
│ │ ├── CCTouchMouse.lua
│ │ ├── FlutteringFairy.lua
│ │ ├── GameInfoUIController.lua
│ │ ├── GameOptions.lua
│ │ ├── GameTabBarMenu.lua
│ │ ├── LAlertView.lua
│ │ ├── LOperationMenu.lua
│ │ ├── MapThumbnailLayer.lua
│ │ ├── ProgressAutomatic.lua
│ │ ├── PropColumn.lua
│ │ └── SkillTableView.lua
│ ├── map/
│ │ ├── AStarSearch.lua
│ │ ├── BgMap.lua
│ │ ├── BgMapFloorTile.lua
│ │ ├── MapPoint.lua
│ │ ├── NpcFigure.lua
│ │ ├── NpcInfo.lua
│ │ ├── NpcInfoSystem.lua
│ │ ├── PathAStar.lua
│ │ └── PortalSprite.lua
│ ├── prop_system/
│ │ ├── PropIconShow.lua
│ │ ├── PropInfo.lua
│ │ └── PropSystem.lua
│ ├── scenes/
│ │ ├── GameLoading.lua
│ │ ├── LoginScene.lua
│ │ ├── MainScene.lua
│ │ └── RoleSelScene.lua
│ └── skill_system/
│ ├── AttackSkillInfo.lua
│ ├── AttackSkillSystem.lua
│ └── SkillEffectShow.lua
├── cocos/
│ ├── cocos2d/
│ │ ├── Cocos2d.lua
│ │ ├── Cocos2dConstants.lua
│ │ ├── DeprecatedCocos2dClass.lua
│ │ ├── DeprecatedCocos2dEnum.lua
│ │ ├── DeprecatedCocos2dFunc.lua
│ │ ├── DeprecatedOpenglEnum.lua
│ │ ├── DrawPrimitives.lua
│ │ ├── Opengl.lua
│ │ ├── OpenglConstants.lua
│ │ ├── bitExtend.lua
│ │ ├── extern.lua
│ │ ├── json.lua
│ │ ├── luaj.lua
│ │ └── luaoc.lua
│ ├── cocosbuilder/
│ │ ├── CCBReaderLoad.lua
│ │ └── DeprecatedCocosBuilderClass.lua
│ ├── cocosdenshion/
│ │ ├── AudioEngine.lua
│ │ ├── DeprecatedCocosDenshionClass.lua
│ │ └── DeprecatedCocosDenshionFunc.lua
│ ├── cocostudio/
│ │ ├── CocoStudio.lua
│ │ ├── DeprecatedCocoStudioClass.lua
│ │ ├── DeprecatedCocoStudioFunc.lua
│ │ └── StudioConstants.lua
│ ├── controller/
│ │ └── ControllerConstants.lua
│ ├── extension/
│ │ ├── DeprecatedExtensionClass.lua
│ │ ├── DeprecatedExtensionEnum.lua
│ │ ├── DeprecatedExtensionFunc.lua
│ │ └── ExtensionConstants.lua
│ ├── init.lua
│ ├── network/
│ │ ├── DeprecatedNetworkClass.lua
│ │ ├── DeprecatedNetworkEnum.lua
│ │ ├── DeprecatedNetworkFunc.lua
│ │ └── NetworkConstants.lua
│ ├── spine/
│ │ └── SpineConstants.lua
│ └── ui/
│ ├── DeprecatedUIEnum.lua
│ ├── DeprecatedUIFunc.lua
│ ├── GuiConstants.lua
│ └── experimentalUIConstants.lua
├── config.lua
├── framework/
│ ├── anysdkConst.lua
│ ├── audio.lua
│ ├── cc/
│ │ ├── EventProxy.lua
│ │ ├── GameObject.lua
│ │ ├── Registry.lua
│ │ ├── components/
│ │ │ ├── Component.lua
│ │ │ ├── behavior/
│ │ │ │ ├── EventProtocol.lua
│ │ │ │ └── StateMachine.lua
│ │ │ └── ui/
│ │ │ ├── BasicLayoutProtocol.lua
│ │ │ ├── DraggableProtocol.lua
│ │ │ └── LayoutProtocol.lua
│ │ ├── init.lua
│ │ ├── mvc/
│ │ │ ├── AppBase.lua
│ │ │ ├── ModelBase.lua
│ │ │ └── init.lua
│ │ ├── net/
│ │ │ ├── SocketTCP.lua
│ │ │ └── init.lua
│ │ ├── sdk/
│ │ │ └── Store.lua
│ │ ├── ui/
│ │ │ ├── UIBoxLayout.lua
│ │ │ ├── UIButton.lua
│ │ │ ├── UICheckBoxButton.lua
│ │ │ ├── UICheckBoxButtonGroup.lua
│ │ │ ├── UIGroup.lua
│ │ │ ├── UIImage.lua
│ │ │ ├── UIInput.lua
│ │ │ ├── UILabel.lua
│ │ │ ├── UILayout.lua
│ │ │ ├── UIListView.lua
│ │ │ ├── UIListViewItem.lua
│ │ │ ├── UILoadingBar.lua
│ │ │ ├── UIPageView.lua
│ │ │ ├── UIPageViewItem.lua
│ │ │ ├── UIPushButton.lua
│ │ │ ├── UIScrollView.lua
│ │ │ ├── UISlider.lua
│ │ │ ├── UIStretch.lua
│ │ │ └── init.lua
│ │ ├── uiloader/
│ │ │ ├── CCSSceneLoader.lua
│ │ │ ├── CCSUILoader.lua
│ │ │ ├── UILoaderUtilitys.lua
│ │ │ ├── init.lua
│ │ │ └── uiloader.lua
│ │ └── utils/
│ │ ├── ByteArray.lua
│ │ ├── ByteArrayVarint.lua
│ │ ├── GameState.lua
│ │ ├── Gettext.lua
│ │ ├── Localize.lua
│ │ ├── Timer.lua
│ │ ├── bit.lua
│ │ └── init.lua
│ ├── cocos2dx/
│ │ ├── ActionEx.lua
│ │ ├── Cocos2d.lua
│ │ ├── Cocos2dConstants.lua
│ │ ├── DrawNodeEx.lua
│ │ ├── Event.lua
│ │ ├── NodeEx.lua
│ │ ├── OpenglConstants.lua
│ │ ├── SceneEx.lua
│ │ ├── SpriteEx.lua
│ │ └── StudioConstants.lua
│ ├── cocos2dx.lua
│ ├── crypto.lua
│ ├── debug.lua
│ ├── deprecated/
│ │ └── deprecated_functions.lua
│ ├── device.lua
│ ├── display.lua
│ ├── filter.lua
│ ├── functions.lua
│ ├── global.lua
│ ├── init.lua
│ ├── json.lua
│ ├── luaj.lua
│ ├── luaoc.lua
│ ├── network.lua
│ ├── platform/
│ │ ├── android.lua
│ │ ├── ios.lua
│ │ └── mac.lua
│ ├── scheduler.lua
│ ├── shortcodes.lua
│ ├── transition.lua
│ └── ui.lua
└── main.lua
================================================
FILE CONTENTS
================================================
================================================
FILE: README.md
================================================
mir9-lua
================
mir9——《热血沙城》,是9秒论坛开源的一个使用Cocos2d-x-2.2.1引擎开发的45度ARPG手游Demo,源代码为c++。mir9-lua是mir9的Lua移植版,使用Quick-Cocos2d-x-3.3 Final引擎开发。由于移植得比较匆忙,代码写得可能比较混乱,请见谅。<br>
已知Bug:<br>
1、怪物在不可见范围时,自动攻击选中怪物会发现怪物选中图片位置不对<br>
2、停止自动攻击后,还会跑去攻击一次<br>
3、A*寻路会有死循环问题,在小地图上寻路有时会有卡顿的现象<br>
界面截图:<br>








资源下载地址:<br>
http://pan.baidu.com/s/1kTqqhin<br>
Win32安装包下载地址:<br>
http://pan.baidu.com/s/1gd5ruaJ<br>
Android安装包下载地址:<br>
http://pan.baidu.com/s/1i3GcL6X<br>
Cocos2d-x2.2.1 C++原版下载地址:<br>
http://pan.baidu.com/s/1jGl8042<br>
Cocos2d-x2.2.5 C++修改版下载地址:<br>
http://pan.baidu.com/s/1bnfHdzL<br>
开发环境:<br>
Quick-Cocos2d-x-3.3 Final<br>
Cocos Code IDE<br>
注意:<br>
在Windows下面运行不能将程序放在中文目录下,否则会播放不了声音,这是引擎的Bug。另资源文件下载完后,请解压缩至项目工程的res目录下。<br>
项目地址:<br>
[https://github.com/zym2014/mir9-lua](https://github.com/zym2014/mir9-lua)
作者Blog:<br>
[http://zym.cnblogs.com](http://zym.cnblogs.com)<br>
[http://blog.csdn.net/zym_123456](http://blog.csdn.net/zym_123456)<br>
================================================
FILE: 发布说明.txt
================================================
mir9-lua
mir9——《热血沙城》,是9秒论坛开源的一个使用Cocos2d-x-2.2.1引擎开发的45度ARPG手游Demo,源代码为c++。mir9-lua是mir9的Lua移植版,使用Quick-Cocos2d-x-3.3 Final引擎开发。由于移植得比较匆忙,代码写得可能比较混乱,请见谅。
已知Bug:
1、怪物在不可见范围时,自动攻击选中怪物会发现怪物选中图片位置不对
2、停止自动攻击后,还会跑去攻击一次
3、A*寻路会有死循环问题,在小地图上寻路有时会有卡顿的现象
资源下载地址:
http://pan.baidu.com/s/1kTqqhin
Win32安装包下载地址:
http://pan.baidu.com/s/1gd5ruaJ
Android安装包下载地址:
http://pan.baidu.com/s/1i3GcL6X
Cocos2d-x2.2.1 C++原版下载地址:
http://pan.baidu.com/s/1jGl8042
Cocos2d-x2.2.5 C++修改版下载地址:
http://pan.baidu.com/s/1bnfHdzL
开发环境:
Quick-Cocos2d-x-3.3 Final
Cocos Code IDE
注意:
在Windows下面运行不能将程序放在中文目录下,否则会播放不了声音,这是引擎的Bug。另资源文件下载完后,请解压缩至项目工程的res目录下。
项目地址:
https://github.com/zym2014/mir9-lua
作者Blog:
http://zym.cnblogs.com
http://blog.csdn.net/zym_123456
================================================
FILE: 源代码/2.2.5/mir9/.buildpath
================================================
<?xml version="1.0" encoding="UTF-8"?>
<buildpath>
<buildpathentry kind="src" path=""/>
<buildpathentry kind="con" path="org.ccdt.ldt.ExecutionEnvironmentContainer/lua/5.1"/>
<buildpathentry kind="con" path="org.ccdt.ldt.ExecutionEnvironmentContainer/quick/3.2"/>
</buildpath>
================================================
FILE: 源代码/2.2.5/mir9/.cocos-project.json
================================================
{
"has_native": false,
"project_type": "lua"
}
================================================
FILE: 源代码/2.2.5/mir9/.project
================================================
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>mir9</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
<nature>org.ccdt.cocosproject</nature>
<nature>org.eclipse.koneki.ldt.nature</nature>
</natures>
</projectDescription>
================================================
FILE: 源代码/2.2.5/mir9/.settings/org.eclipse.core.resources.prefs
================================================
eclipse.preferences.version=1
encoding/<project>=UTF-8
================================================
FILE: 源代码/2.2.5/mir9/.settings/version.json
================================================
{
"ideVersion": "1.0.1",
"templateVersion": "1.3",
"runtimeVersion": "1.3",
"engineVersion": "cocos2d-x 3.2"
}
================================================
FILE: 源代码/2.2.5/mir9/config.json
================================================
{
"init_cfg": {
"isLandscape": true,
"name": "mir9",
"width": 960,
"height": 640,
"entry": "scripts/main.lua",
"consolePort": 6010,
"forwardConsolePort": 10089,
"forwardUploadPort": 10091
},
"simulator_screen_size": [
{
"title": "iPhone 3Gs (480x320)",
"width": 480,
"height": 320
},
{
"title": "iPhone 4 (960x640)",
"width": 960,
"height": 640
},
{
"title": "iPhone 5 (1136x640)",
"width": 1136,
"height": 640
},
{
"title": "iPad (1024x768)",
"width": 1024,
"height": 768
},
{
"title": "iPad Retina (2048x1536)",
"width": 2048,
"height": 1536
},
{
"title": "Android (800x480)",
"width": 800,
"height": 480
},
{
"title": "Android (854x480)",
"width": 854,
"height": 480
},
{
"title": "Android (1280x720)",
"width": 1280,
"height": 720
},
{
"title": "Android (1920x1080)",
"width": 1920,
"height": 1080
}
]
}
================================================
FILE: 源代码/2.2.5/mir9/proj.android/.classpath
================================================
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
================================================
FILE: 源代码/2.2.5/mir9/proj.android/.project
================================================
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Mir9</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
================================================
FILE: 源代码/2.2.5/mir9/proj.android/.settings/org.eclipse.jdt.core.prefs
================================================
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.source=1.6
================================================
FILE: 源代码/2.2.5/mir9/proj.android/AndroidManifest.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.zym.mir9"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" />
<uses-feature android:glEsVersion="0x00020000" />
<supports-screens android:largeScreens="true"
android:smallScreens="true"
android:anyDensity="true"
android:normalScreens="true"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<application android:label="@string/app_name"
android:icon="@drawable/icon">
<activity android:name=".Mir9"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:screenOrientation="landscape"
android:configChanges="orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
================================================
FILE: 源代码/2.2.5/mir9/proj.android/build_native.bat
================================================
@echo off
set DIR=%~dp0
set APP_ROOT=%DIR%..\
set APP_ANDROID_ROOT=%DIR%
set COCOS2DX_ROOT=%QUICK_COCOS2DX_ROOT%\lib\cocos2d-x
echo - config:
echo ANDROID_NDK_ROOT = %ANDROID_NDK_ROOT%
echo QUICK_COCOS2DX_ROOT = %QUICK_COCOS2DX_ROOT%
echo COCOS2DX_ROOT = %COCOS2DX_ROOT%
echo APP_ROOT = %APP_ROOT%
echo APP_ANDROID_ROOT = %APP_ANDROID_ROOT%
rem if dont use DEBUG, comments out two lines below
set NDK_DEBUG=1
set NDK_BUILD_FLAGS=CPPFLAGS="-DCOCOS2D_DEBUG=1"
echo - cleanup
if exist "%APP_ANDROID_ROOT%bin" rmdir /s /q "%APP_ANDROID_ROOT%bin"
mkdir "%APP_ANDROID_ROOT%bin"
if exist "%APP_ANDROID_ROOT%assets" rmdir /s /q "%APP_ANDROID_ROOT%assets"
mkdir "%APP_ANDROID_ROOT%assets"
echo - copy scripts
mkdir "%APP_ANDROID_ROOT%assets\scripts"
xcopy /s /q "%APP_ROOT%scripts\*.*" "%APP_ANDROID_ROOT%assets\scripts\"
echo - copy resources
mkdir "%APP_ANDROID_ROOT%assets\res"
xcopy /s /q "%APP_ROOT%res\*.*" "%APP_ANDROID_ROOT%assets\res\"
echo Using prebuilt externals
"%ANDROID_NDK_ROOT%\ndk-build" %ANDROID_NDK_BUILD_FLAGS% NDK_DEBUG=%NDK_DEBUG% %NDK_BUILD_FLAGS% -C %APP_ANDROID_ROOT% NDK_MODULE_PATH=%QUICK_COCOS2DX_ROOT%;%COCOS2DX_ROOT%;%COCOS2DX_ROOT%\cocos2dx\platform\third_party\android\prebuilt
================================================
FILE: 源代码/2.2.5/mir9/proj.android/build_native.sh
================================================
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
APP_ROOT="$DIR/.."
APP_ANDROID_ROOT="$DIR"
COCOS2DX_ROOT=$QUICK_COCOS2DX_ROOT/lib/cocos2d-x
echo "- config:"
echo " ANDROID_NDK_ROOT = $ANDROID_NDK_ROOT"
echo " QUICK_COCOS2DX_ROOT = $QUICK_COCOS2DX_ROOT"
echo " COCOS2DX_ROOT = $COCOS2DX_ROOT"
echo " APP_ROOT = $APP_ROOT"
echo " APP_ANDROID_ROOT = $APP_ANDROID_ROOT"
# if dont use DEBUG, comments out two lines below
NDK_DEBUG=1
NDK_BUILD_FLAGS="CPPFLAGS=\"-DCOCOS2D_DEBUG=1\""
echo "- cleanup"
find "$APP_ANDROID_ROOT" -type d | xargs chmod 755 $1
if [ -d "$APP_ANDROID_ROOT"/bin ]; then
rm -rf "$APP_ANDROID_ROOT"/bin/*.apk
fi
mkdir -p "$APP_ANDROID_ROOT"/bin
chmod 755 "$APP_ANDROID_ROOT"/bin
if [ -d "$APP_ANDROID_ROOT"/assets ]; then
rm -rf "$APP_ANDROID_ROOT"/assets/*
fi
mkdir -p "$APP_ANDROID_ROOT"/assets
chmod 755 "$APP_ANDROID_ROOT"/assets
echo "- copy scripts"
cp -rf "$APP_ROOT"/scripts "$APP_ANDROID_ROOT"/assets/
echo "- copy resources"
cp -rf "$APP_ROOT"/res "$APP_ANDROID_ROOT"/assets/
# build
echo "Using prebuilt externals"
"$ANDROID_NDK_ROOT"/ndk-build $ANDROID_NDK_BUILD_FLAGS NDK_DEBUG=$NDK_DEBUG $NDK_BUILD_FLAGS -C "$APP_ANDROID_ROOT" $* \
"NDK_MODULE_PATH=${QUICK_COCOS2DX_ROOT}:${COCOS2DX_ROOT}:${COCOS2DX_ROOT}/cocos2dx/platform/third_party/android/prebuilt"
================================================
FILE: 源代码/2.2.5/mir9/proj.android/clean.bat
================================================
@echo off
set DIR=%~dp0
rmdir /s/q %DIR%obj
rmdir /s/q %DIR%libs\armeabi
rmdir /s/q %DIR%assets
================================================
FILE: 源代码/2.2.5/mir9/proj.android/clean.sh
================================================
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
rm -fr $DIR/obj/*
rm -fr $DIR/libs/armeabi/*.so
rm -fr $DIR/assets/*
================================================
FILE: 源代码/2.2.5/mir9/proj.android/gen/com/zym/mir9/BuildConfig.java
================================================
/** Automatically generated file. DO NOT MODIFY */
package com.zym.mir9;
public final class BuildConfig {
public final static boolean DEBUG = true;
}
================================================
FILE: 源代码/2.2.5/mir9/proj.android/gen/com/zym/mir9/R.java
================================================
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.zym.mir9;
public final class R {
public static final class attr {
}
public static final class drawable {
public static final int icon=0x7f020000;
}
public static final class string {
public static final int app_name=0x7f030000;
}
}
================================================
FILE: 源代码/2.2.5/mir9/proj.android/jni/Android.mk
================================================
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := game_shared
LOCAL_MODULE_FILENAME := libgame
LOCAL_SRC_FILES := hellocpp/main.cpp \
../../sources/AppDelegate.cpp
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../sources
LOCAL_CFLAGS += -D__GXX_EXPERIMENTAL_CXX0X__ -std=gnu++11 -Wno-psabi -DCC_LUA_ENGINE_ENABLED=1 $(ANDROID_COCOS2D_BUILD_FLAGS)
LOCAL_WHOLE_STATIC_LIBRARIES := quickcocos2dx
include $(BUILD_SHARED_LIBRARY)
$(call import-module,lib/proj.android)
================================================
FILE: 源代码/2.2.5/mir9/proj.android/jni/Application.mk
================================================
APP_STL := gnustl_static
APP_CPPFLAGS := -D__GXX_EXPERIMENTAL_CXX0X__ -std=gnu++11 -frtti -Wno-error=format-security -fsigned-char -Os $(CPPFLAGS)
APP_ABI := armeabi
================================================
FILE: 源代码/2.2.5/mir9/proj.android/jni/hellocpp/main.cpp
================================================
#include "cocos2d.h"
#include "AppDelegate.h"
#include "platform/android/jni/JniHelper.h"
#include <jni.h>
#include <android/log.h>
#define LOG_TAG "main"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
using namespace cocos2d;
extern "C"
{
jint JNI_OnLoad(JavaVM *vm, void *reserved)
{
JniHelper::setJavaVM(vm);
return JNI_VERSION_1_4;
}
void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thiz, jint w, jint h)
{
if (!CCDirector::sharedDirector()->getOpenGLView())
{
CCEGLView *view = CCEGLView::sharedOpenGLView();
view->setFrameSize(w, h);
AppDelegate *pAppDelegate = new AppDelegate();
CCApplication::sharedApplication()->run();
}
else
{
ccGLInvalidateStateCache();
CCShaderCache::sharedShaderCache()->reloadDefaultShaders();
ccDrawInit();
CCTextureCache::reloadAllTextures();
CCNotificationCenter::sharedNotificationCenter()->postNotification(EVENT_COME_TO_FOREGROUND, NULL);
CCDirector::sharedDirector()->setGLDefaultValues();
}
}
}
================================================
FILE: 源代码/2.2.5/mir9/proj.android/jni/list.sh
================================================
#!/bin/bash
append_str=' \'
list_alldir()
{
for file in $1/*
do
if [ -f $file ]; then
echo $file$append_str | grep .cpp
fi
if [ -d $file ]; then
list_alldir $file
fi
done
}
if [ $# -gt 0 ]; then
list_alldir "$1"
else
list_alldir "."
fi
================================================
FILE: 源代码/2.2.5/mir9/proj.android/project.properties
================================================
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=Google Inc.:Google APIs (x86 System Image):19
android.library=false
android.library.reference.1=../../../lib/cocos2d-x/cocos2dx/platform/android/java
================================================
FILE: 源代码/2.2.5/mir9/proj.android/res/values/strings.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">热血沙城</string>
</resources>
================================================
FILE: 源代码/2.2.5/mir9/proj.android/src/com/zym/mir9/Mir9.java
================================================
/****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
package com.zym.mir9;
import org.cocos2dx.lib.Cocos2dxActivity;
import android.os.Bundle;
public class Mir9 extends Cocos2dxActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
static {
System.loadLibrary("game");
}
}
================================================
FILE: 源代码/2.2.5/mir9/proj.ios/AppController.h
================================================
/****************************************************************************
Copyright (c) 2010 cocos2d-x.org
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
@class RootViewController;
#define kOpenGameImmediately 0
#define kOpenGameWaitForAlert 1
#define kOpenGameExit 2
@interface AppController : NSObject <UIAccelerometerDelegate, UIAlertViewDelegate, UITextFieldDelegate, UIApplicationDelegate, UIAlertViewDelegate> {
UIWindow *window;
@public RootViewController *viewController;
int openGame;
int appUpdateCheckResult;
}
@end
================================================
FILE: 源代码/2.2.5/mir9/proj.ios/AppController.mm
================================================
/****************************************************************************
Copyright (c) 2010 cocos2d-x.org
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#import <UIKit/UIKit.h>
#import <AVFoundation/AVAudioSession.h>
#import "AppController.h"
#import "cocos2d.h"
#import "EAGLView.h"
#import "AppDelegate.h"
#import "RootViewController.h"
@implementation AppController
#pragma mark -
#pragma mark Application lifecycle
// cocos2d application instance
static AppDelegate s_sharedApplication;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
// Add the view controller's view to the window and display.
window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]];
EAGLView *__glView = [EAGLView viewWithFrame: [window bounds]
pixelFormat: kEAGLColorFormatRGBA8
depthFormat: GL_DEPTH24_STENCIL8_OES
preserveBackbuffer: NO
sharegroup: nil
multiSampling: NO
numberOfSamples: 0];
// Enable multi-touches
// [__glView setMultipleTouchEnabled:YES];
// Use RootViewController manage EAGLView
viewController = [[RootViewController alloc] initWithNibName:nil bundle:nil];
viewController.wantsFullScreenLayout = YES;
viewController.view = __glView;
// Set RootViewController to window
if ([[UIDevice currentDevice].systemVersion floatValue] < 6.0)
{
[window addSubview: viewController.view];
}
[window setRootViewController:viewController];
[window makeKeyAndVisible];
[[UIApplication sharedApplication] setStatusBarHidden: YES];
cocos2d::CCApplication::sharedApplication()->run();
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application {
/*
Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
*/
cocos2d::CCDirector::sharedDirector()->pause();
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
/*
Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
*/
cocos2d::CCDirector::sharedDirector()->resume();
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
/*
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
If your application supports background execution, called instead of applicationWillTerminate: when the user quits.
*/
cocos2d::CCApplication::sharedApplication()->applicationDidEnterBackground();
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
/*
Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background.
*/
NSError *err;
[[AVAudioSession sharedInstance] setActive:true error:&err];
cocos2d::CCApplication::sharedApplication()->applicationWillEnterForeground();
}
- (void)applicationWillTerminate:(UIApplication *)application {
/*
Called when the application is about to terminate.
See also applicationDidEnterBackground:.
*/
}
#pragma mark -
#pragma mark Memory management
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {
/*
Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later.
*/
}
- (void)dealloc {
[super dealloc];
}
@end
================================================
FILE: 源代码/2.2.5/mir9/proj.ios/Resources/Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIconFiles</key>
<array>
<string>Icon.png</string>
<string>Icon@2x.png</string>
<string>Icon-72.png</string>
</array>
<key>CFBundleIdentifier</key>
<string>com.zym.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIPrerenderedIcon</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<dict>
<key>accelerometer</key>
<true/>
<key>opengles-1</key>
<true/>
</dict>
<key>UIStatusBarHidden</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
================================================
FILE: 源代码/2.2.5/mir9/proj.ios/RootViewController.h
================================================
/****************************************************************************
Copyright (c) 2010-2011 cocos2d-x.org
Copyright (c) 2010 Ricardo Quesada
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#import <UIKit/UIKit.h>
#import <GameKit/GameKit.h>
@interface RootViewController : UIViewController <GKAchievementViewControllerDelegate, GKLeaderboardViewControllerDelegate>
- (BOOL) prefersStatusBarHidden;
@end
================================================
FILE: 源代码/2.2.5/mir9/proj.ios/RootViewController.mm
================================================
/****************************************************************************
Copyright (c) 2010-2011 cocos2d-x.org
Copyright (c) 2010 Ricardo Quesada
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#import "RootViewController.h"
@implementation RootViewController
// GKLeaderboardViewControllerのDelegate
-(void)leaderboardViewControllerDidFinish:(GKLeaderboardViewController *)viewController
{
[self dismissViewControllerAnimated:YES completion:nil];
}
// GKAchievementViewControllerのDelegate
-(void)achievementViewControllerDidFinish:(GKAchievementViewController *)viewController
{
[self dismissViewControllerAnimated:YES completion:nil];
}
// Override to allow orientations other than the default portrait orientation.
// This method is deprecated on ios6
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return UIInterfaceOrientationIsPortrait(interfaceOrientation);
}
// For ios6.0 and higher, use supportedInterfaceOrientations & shouldAutorotate instead
- (NSUInteger) supportedInterfaceOrientations
{
#ifdef __IPHONE_6_0
return UIInterfaceOrientationMaskPortrait;
#endif
}
- (BOOL) shouldAutorotate {
return YES;
}
//fix not hide status on ios7
- (BOOL) prefersStatusBarHidden {
return YES;
}
- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
- (void)viewDidUnload {
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (void)dealloc {
[super dealloc];
}
@end
================================================
FILE: 源代码/2.2.5/mir9/proj.ios/main.m
================================================
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool *pool = [NSAutoreleasePool new];
int retVal = UIApplicationMain(argc, argv, nil, @"AppController");
[pool release];
return retVal;
}
================================================
FILE: 源代码/2.2.5/mir9/proj.ios/mir9.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
2EDD276C191B6258004F9539 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2EDD276A191B6258004F9539 /* AppDelegate.cpp */; };
2EDD2787191B62CA004F9539 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 2EDD2780191B62CA004F9539 /* Default-568h@2x.png */; };
2EDD2788191B62CA004F9539 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 2EDD2781191B62CA004F9539 /* Default.png */; };
2EDD2789191B62CA004F9539 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 2EDD2782191B62CA004F9539 /* Default@2x.png */; };
2EDD278A191B62CA004F9539 /* Icon-72.png in Resources */ = {isa = PBXBuildFile; fileRef = 2EDD2783191B62CA004F9539 /* Icon-72.png */; };
2EDD278B191B62CA004F9539 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 2EDD2784191B62CA004F9539 /* Icon.png */; };
2EDD278C191B62CA004F9539 /* Icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 2EDD2785191B62CA004F9539 /* Icon@2x.png */; };
2EDD2790191B62D6004F9539 /* res in Resources */ = {isa = PBXBuildFile; fileRef = 2EDD278E191B62D6004F9539 /* res */; };
2EDD2791191B62D6004F9539 /* scripts in Resources */ = {isa = PBXBuildFile; fileRef = 2EDD278F191B62D6004F9539 /* scripts */; };
2EDD2799191B639C004F9539 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2EDD2794191B639C004F9539 /* AppController.mm */; };
2EDD279A191B639C004F9539 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 2EDD2795191B639C004F9539 /* main.m */; };
2EDD279B191B639C004F9539 /* RootViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2EDD2798191B639C004F9539 /* RootViewController.mm */; };
F4323CF716D3298E0072B773 /* libquickcocos2dx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F48F590816D21F8C000651BE /* libquickcocos2dx.a */; };
F452BFC51687EEF900DC5BCC /* CoreText.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F452BFC41687EEF900DC5BCC /* CoreText.framework */; };
F452BFD01687F0F200DC5BCC /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F452BFCF1687F0F200DC5BCC /* UIKit.framework */; };
F456ECC615EE018E00FCF3E2 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F456ECC515EE018E00FCF3E2 /* QuartzCore.framework */; };
F456ECC815EE018E00FCF3E2 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F456ECC715EE018E00FCF3E2 /* OpenGLES.framework */; };
F456ECCA15EE018E00FCF3E2 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F456ECC915EE018E00FCF3E2 /* OpenAL.framework */; };
F456ECCC15EE018E00FCF3E2 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F456ECCB15EE018E00FCF3E2 /* AudioToolbox.framework */; };
F456ECCE15EE018E00FCF3E2 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F456ECCD15EE018E00FCF3E2 /* AVFoundation.framework */; };
F456ECD215EE018E00FCF3E2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F456ECD115EE018E00FCF3E2 /* Foundation.framework */; };
F456ECD415EE018E00FCF3E2 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F456ECD315EE018E00FCF3E2 /* CoreGraphics.framework */; };
F456F0F915EE0CDB00FCF3E2 /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F456F0F815EE0CDB00FCF3E2 /* CFNetwork.framework */; };
F456F0FD15EE0CF600FCF3E2 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F456F0FC15EE0CF600FCF3E2 /* SystemConfiguration.framework */; };
F456F10515EE0D2D00FCF3E2 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F456F10415EE0D2D00FCF3E2 /* MobileCoreServices.framework */; };
F4949C791699553B00DB561E /* AddressBook.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F4949C781699553B00DB561E /* AddressBook.framework */; };
F4949C7B1699554600DB561E /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F4949C7A1699554600DB561E /* CoreTelephony.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
F4F40D1B16573CE0007937AD /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F4F40D1A16573CE0007937AD /* StoreKit.framework */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
F48F590716D21F8C000651BE /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = F4499C7116C7CDE20059FF37 /* quickcocos2dx.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = F45A2B9D166B07B600760194;
remoteInfo = quickcocos2dx;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
2EDD276A191B6258004F9539 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AppDelegate.cpp; sourceTree = "<group>"; };
2EDD276B191B6258004F9539 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
2EDD2780191B62CA004F9539 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
2EDD2781191B62CA004F9539 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
2EDD2782191B62CA004F9539 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; };
2EDD2783191B62CA004F9539 /* Icon-72.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon-72.png"; sourceTree = "<group>"; };
2EDD2784191B62CA004F9539 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = "<group>"; };
2EDD2785191B62CA004F9539 /* Icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Icon@2x.png"; sourceTree = "<group>"; };
2EDD2786191B62CA004F9539 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
2EDD278E191B62D6004F9539 /* res */ = {isa = PBXFileReference; lastKnownFileType = folder; name = res; path = ../../res; sourceTree = "<group>"; };
2EDD278F191B62D6004F9539 /* scripts */ = {isa = PBXFileReference; lastKnownFileType = folder; name = scripts; path = ../../scripts; sourceTree = "<group>"; };
2EDD2793191B639C004F9539 /* AppController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppController.h; sourceTree = "<group>"; };
2EDD2794191B639C004F9539 /* AppController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = AppController.mm; sourceTree = "<group>"; };
2EDD2795191B639C004F9539 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
2EDD2796191B639C004F9539 /* Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Prefix.pch; sourceTree = "<group>"; };
2EDD2797191B639C004F9539 /* RootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RootViewController.h; sourceTree = "<group>"; };
2EDD2798191B639C004F9539 /* RootViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RootViewController.mm; sourceTree = "<group>"; };
F4499C7116C7CDE20059FF37 /* quickcocos2dx.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = quickcocos2dx.xcodeproj; path = lib/proj.ios/quickcocos2dx.xcodeproj; sourceTree = QUICK_COCOS2DX_ROOT; };
F452BFC41687EEF900DC5BCC /* CoreText.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreText.framework; path = System/Library/Frameworks/CoreText.framework; sourceTree = SDKROOT; };
F452BFCF1687F0F200DC5BCC /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
F456ECC115EE018E00FCF3E2 /* mir9.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = mir9.app; sourceTree = BUILT_PRODUCTS_DIR; };
F456ECC515EE018E00FCF3E2 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
F456ECC715EE018E00FCF3E2 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
F456ECC915EE018E00FCF3E2 /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = System/Library/Frameworks/OpenAL.framework; sourceTree = SDKROOT; };
F456ECCB15EE018E00FCF3E2 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
F456ECCD15EE018E00FCF3E2 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
F456ECD115EE018E00FCF3E2 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
F456ECD315EE018E00FCF3E2 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
F456F0F815EE0CDB00FCF3E2 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; };
F456F0FA15EE0CEB00FCF3E2 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; };
F456F0FC15EE0CF600FCF3E2 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
F456F10415EE0D2D00FCF3E2 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
F456F10615EE0D3500FCF3E2 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
F4949C781699553B00DB561E /* AddressBook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AddressBook.framework; path = System/Library/Frameworks/AddressBook.framework; sourceTree = SDKROOT; };
F4949C7A1699554600DB561E /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; };
F4F40D1A16573CE0007937AD /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = System/Library/Frameworks/StoreKit.framework; sourceTree = SDKROOT; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
F456ECBE15EE018E00FCF3E2 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
F4323CF716D3298E0072B773 /* libquickcocos2dx.a in Frameworks */,
F452BFD01687F0F200DC5BCC /* UIKit.framework in Frameworks */,
F456F0FD15EE0CF600FCF3E2 /* SystemConfiguration.framework in Frameworks */,
F456ECC615EE018E00FCF3E2 /* QuartzCore.framework in Frameworks */,
F4949C7B1699554600DB561E /* CoreTelephony.framework in Frameworks */,
F456ECD415EE018E00FCF3E2 /* CoreGraphics.framework in Frameworks */,
F4949C791699553B00DB561E /* AddressBook.framework in Frameworks */,
F456ECC815EE018E00FCF3E2 /* OpenGLES.framework in Frameworks */,
F452BFC51687EEF900DC5BCC /* CoreText.framework in Frameworks */,
F4F40D1B16573CE0007937AD /* StoreKit.framework in Frameworks */,
F456F10515EE0D2D00FCF3E2 /* MobileCoreServices.framework in Frameworks */,
F456F0F915EE0CDB00FCF3E2 /* CFNetwork.framework in Frameworks */,
F456ECCA15EE018E00FCF3E2 /* OpenAL.framework in Frameworks */,
F456ECCC15EE018E00FCF3E2 /* AudioToolbox.framework in Frameworks */,
F456ECCE15EE018E00FCF3E2 /* AVFoundation.framework in Frameworks */,
F456ECD215EE018E00FCF3E2 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
2EDD2769191B6258004F9539 /* sources */ = {
isa = PBXGroup;
children = (
2EDD276A191B6258004F9539 /* AppDelegate.cpp */,
2EDD276B191B6258004F9539 /* AppDelegate.h */,
);
name = sources;
path = ../sources;
sourceTree = "<group>";
};
2EDD277F191B62CA004F9539 /* Resources */ = {
isa = PBXGroup;
children = (
2EDD278E191B62D6004F9539 /* res */,
2EDD278F191B62D6004F9539 /* scripts */,
2EDD279C191B641B004F9539 /* ios */,
);
path = Resources;
sourceTree = "<group>";
};
2EDD2792191B6392004F9539 /* ios */ = {
isa = PBXGroup;
children = (
2EDD2793191B639C004F9539 /* AppController.h */,
2EDD2794191B639C004F9539 /* AppController.mm */,
2EDD2795191B639C004F9539 /* main.m */,
2EDD2796191B639C004F9539 /* Prefix.pch */,
2EDD2797191B639C004F9539 /* RootViewController.h */,
2EDD2798191B639C004F9539 /* RootViewController.mm */,
);
name = ios;
sourceTree = "<group>";
};
2EDD279C191B641B004F9539 /* ios */ = {
isa = PBXGroup;
children = (
2EDD2780191B62CA004F9539 /* Default-568h@2x.png */,
2EDD2781191B62CA004F9539 /* Default.png */,
2EDD2782191B62CA004F9539 /* Default@2x.png */,
2EDD2783191B62CA004F9539 /* Icon-72.png */,
2EDD2784191B62CA004F9539 /* Icon.png */,
2EDD2785191B62CA004F9539 /* Icon@2x.png */,
2EDD2786191B62CA004F9539 /* Info.plist */,
);
name = ios;
sourceTree = "<group>";
};
F456ECB615EE018E00FCF3E2 = {
isa = PBXGroup;
children = (
F4499C7116C7CDE20059FF37 /* quickcocos2dx.xcodeproj */,
2EDD2792191B6392004F9539 /* ios */,
2EDD2769191B6258004F9539 /* sources */,
2EDD277F191B62CA004F9539 /* Resources */,
F456ECC415EE018E00FCF3E2 /* Frameworks */,
F456ECC215EE018E00FCF3E2 /* Products */,
);
sourceTree = "<group>";
};
F456ECC215EE018E00FCF3E2 /* Products */ = {
isa = PBXGroup;
children = (
F456ECC115EE018E00FCF3E2 /* mir9.app */,
);
name = Products;
sourceTree = "<group>";
};
F456ECC415EE018E00FCF3E2 /* Frameworks */ = {
isa = PBXGroup;
children = (
F4949C781699553B00DB561E /* AddressBook.framework */,
F456ECCB15EE018E00FCF3E2 /* AudioToolbox.framework */,
F456ECCD15EE018E00FCF3E2 /* AVFoundation.framework */,
F456F0F815EE0CDB00FCF3E2 /* CFNetwork.framework */,
F456F0FA15EE0CEB00FCF3E2 /* CoreFoundation.framework */,
F456ECD315EE018E00FCF3E2 /* CoreGraphics.framework */,
F4949C7A1699554600DB561E /* CoreTelephony.framework */,
F452BFC41687EEF900DC5BCC /* CoreText.framework */,
F456ECD115EE018E00FCF3E2 /* Foundation.framework */,
F456F10415EE0D2D00FCF3E2 /* MobileCoreServices.framework */,
F456ECC915EE018E00FCF3E2 /* OpenAL.framework */,
F456ECC715EE018E00FCF3E2 /* OpenGLES.framework */,
F456ECC515EE018E00FCF3E2 /* QuartzCore.framework */,
F456F10615EE0D3500FCF3E2 /* Security.framework */,
F4F40D1A16573CE0007937AD /* StoreKit.framework */,
F456F0FC15EE0CF600FCF3E2 /* SystemConfiguration.framework */,
F452BFCF1687F0F200DC5BCC /* UIKit.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
F48F590416D21F8C000651BE /* Products */ = {
isa = PBXGroup;
children = (
F48F590816D21F8C000651BE /* libquickcocos2dx.a */,
);
name = Products;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
F456ECC015EE018E00FCF3E2 /* mir9 */ = {
isa = PBXNativeTarget;
buildConfigurationList = F456EFBD15EE019300FCF3E2 /* Build configuration list for PBXNativeTarget "mir9" */;
buildPhases = (
F456ECBD15EE018E00FCF3E2 /* Sources */,
F456ECBE15EE018E00FCF3E2 /* Frameworks */,
F456ECBF15EE018E00FCF3E2 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = mir9;
productName = mir9;
productReference = F456ECC115EE018E00FCF3E2 /* mir9.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
F456ECB815EE018E00FCF3E2 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0440;
};
buildConfigurationList = F456ECBB15EE018E00FCF3E2 /* Build configuration list for PBXProject "mir9" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
"zh-Hans",
);
mainGroup = F456ECB615EE018E00FCF3E2;
productRefGroup = F456ECC215EE018E00FCF3E2 /* Products */;
projectDirPath = "";
projectReferences = (
{
ProductGroup = F48F590416D21F8C000651BE /* Products */;
ProjectRef = F4499C7116C7CDE20059FF37 /* quickcocos2dx.xcodeproj */;
},
);
projectRoot = "";
targets = (
F456ECC015EE018E00FCF3E2 /* mir9 */,
);
};
/* End PBXProject section */
/* Begin PBXReferenceProxy section */
F48F590816D21F8C000651BE /* libquickcocos2dx.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libquickcocos2dx.a;
remoteRef = F48F590716D21F8C000651BE /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
/* End PBXReferenceProxy section */
/* Begin PBXResourcesBuildPhase section */
F456ECBF15EE018E00FCF3E2 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
2EDD2789191B62CA004F9539 /* Default@2x.png in Resources */,
2EDD278C191B62CA004F9539 /* Icon@2x.png in Resources */,
2EDD278A191B62CA004F9539 /* Icon-72.png in Resources */,
2EDD278B191B62CA004F9539 /* Icon.png in Resources */,
2EDD2790191B62D6004F9539 /* res in Resources */,
2EDD2787191B62CA004F9539 /* Default-568h@2x.png in Resources */,
2EDD2788191B62CA004F9539 /* Default.png in Resources */,
2EDD2791191B62D6004F9539 /* scripts in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
F456ECBD15EE018E00FCF3E2 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
2EDD279B191B639C004F9539 /* RootViewController.mm in Sources */,
2EDD276C191B6258004F9539 /* AppDelegate.cpp in Sources */,
2EDD279A191B639C004F9539 /* main.m in Sources */,
2EDD2799191B639C004F9539 /* AppController.mm in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
F456EFBB15EE019300FCF3E2 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = armv7;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
DEBUG,
"COCOS2D_DEBUG=1",
USE_FILE32API,
TARGET_OS_IPHONE,
"CC_LUA_ENGINE_ENABLED=1",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = (
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform/ios\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform/third_party/ios\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/kazmath/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/CocosDenshion/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/CocosDenshion/ios\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions/GUI/CCControlExtension\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions/GUI/CCEditBox\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/cocos2dx_support\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/tolua\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/luajit/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2dx_extensions_luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2dx_extra/extra\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2dx_extra/extra/luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/lua_extensions\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/lua_extensions/cjson\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/lua_extensions/zlib\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party/chipmunk/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party/chipmunk/luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party/CSArmature\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party\"",
);
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
SDKROOT = iphoneos;
VALID_ARCHS = armv7;
};
name = Debug;
};
F456EFBC15EE019300FCF3E2 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = armv7;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_PREPROCESSOR_DEFINITIONS = (
NDEBUG,
USE_FILE32API,
TARGET_OS_IPHONE,
"CC_LUA_ENGINE_ENABLED=1",
);
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = (
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform/ios\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform/third_party/ios\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/kazmath/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/CocosDenshion/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/CocosDenshion/ios\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions/GUI/CCControlExtension\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions/GUI/CCEditBox\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/cocos2dx_support\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/tolua\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/luajit/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2dx_extensions_luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2dx_extra/extra\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2dx_extra/extra/luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/lua_extensions\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/lua_extensions/cjson\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/lua_extensions/zlib\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party/chipmunk/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party/chipmunk/luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party/CSArmature\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party\"",
);
IPHONEOS_DEPLOYMENT_TARGET = 4.3;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
SDKROOT = iphoneos;
VALID_ARCHS = armv7;
};
name = Release;
};
F456EFBE15EE019300FCF3E2 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = armv7;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_INLINES_ARE_PRIVATE_EXTERN = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = (
DEBUG,
"COCOS2D_DEBUG=1",
USE_FILE32API,
CC_TARGET_OS_IPHONE,
"CC_LUA_ENGINE_ENABLED=1",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
"GCC_THUMB_SUPPORT[arch=armv6]" = "";
HEADER_SEARCH_PATHS = (
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform/ios\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform/third_party/ios\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/kazmath/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/CocosDenshion/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/CocosDenshion/ios\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions/GUI/CCControlExtension\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions/GUI/CCEditBox\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/cocos2dx_support\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/tolua\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/luajit/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2dx_extensions_luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2dx_extra/extra\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2dx_extra/extra/luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/lua_extensions\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/lua_extensions/cjson\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/lua_extensions/zlib\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party/chipmunk/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party/chipmunk/luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party/CSArmature\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party\"",
);
INFOPLIST_FILE = "$(SRCROOT)/Resources/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
LIBRARY_SEARCH_PATHS = (
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform/third_party/ios/libraries\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/luajit/ios\"",
);
OTHER_LDFLAGS = (
"-lxml2",
"-lz",
"-ObjC",
);
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
TARGETED_DEVICE_FAMILY = "1,2";
VALID_ARCHS = armv7;
WRAPPER_EXTENSION = app;
};
name = Debug;
};
F456EFBF15EE019300FCF3E2 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = armv7;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_INLINES_ARE_PRIVATE_EXTERN = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = (
NDEBUG,
USE_FILE32API,
CC_TARGET_OS_IPHONE,
"CC_LUA_ENGINE_ENABLED=1",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
"GCC_THUMB_SUPPORT[arch=armv6]" = "";
HEADER_SEARCH_PATHS = (
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform/ios\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform/third_party/ios\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/kazmath/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/CocosDenshion/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/CocosDenshion/ios\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions/GUI/CCControlExtension\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions/GUI/CCEditBox\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/cocos2dx_support\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/tolua\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/luajit/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2dx_extensions_luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2dx_extra/extra\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2dx_extra/extra/luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/lua_extensions\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/lua_extensions/cjson\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/lua_extensions/zlib\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party/chipmunk/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party/chipmunk/luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party/CSArmature\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/third_party\"",
);
INFOPLIST_FILE = "$(SRCROOT)/Resources/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
LIBRARY_SEARCH_PATHS = (
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform/third_party/ios/libraries\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/luajit/ios\"",
);
OTHER_LDFLAGS = (
"-lxml2",
"-lz",
"-ObjC",
);
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
VALID_ARCHS = armv7;
WRAPPER_EXTENSION = app;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
F456ECBB15EE018E00FCF3E2 /* Build configuration list for PBXProject "mir9" */ = {
isa = XCConfigurationList;
buildConfigurations = (
F456EFBB15EE019300FCF3E2 /* Debug */,
F456EFBC15EE019300FCF3E2 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
F456EFBD15EE019300FCF3E2 /* Build configuration list for PBXNativeTarget "mir9" */ = {
isa = XCConfigurationList;
buildConfigurations = (
F456EFBE15EE019300FCF3E2 /* Debug */,
F456EFBF15EE019300FCF3E2 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = F456ECB815EE018E00FCF3E2 /* Project object */;
}
================================================
FILE: 源代码/2.2.5/mir9/proj.mac/AppController.h
================================================
/****************************************************************************
Copyright (c) 2010 cocos2d-x.org
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#import "EAGLView.h"
#include <string>
#include "ProjectConfig/SimulatorConfig.h"
#include "AppDelegate.h"
@interface AppController : NSObject <NSApplicationDelegate, NSWindowDelegate>
{
NSWindow *window;
EAGLView *glView;
NSMenu *menu;
BOOL isAlwaysOnTop;
AppDelegate *app;
ProjectConfig projectConfig;
}
@property (nonatomic, assign) IBOutlet NSMenu* menu;
- (IBAction) onFileRelaunch:(id)sender;
- (IBAction) onScreenPortait:(id)sender;
- (IBAction) onScreenLandscape:(id)sender;
- (IBAction) onScreenZoomOut:(id)sender;
- (IBAction) onWindowAlwaysOnTop:(id)sender;
@end
================================================
FILE: 源代码/2.2.5/mir9/proj.mac/AppController.mm
================================================
/****************************************************************************
Copyright (c) 2010 cocos2d-x.org
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#import "AppController.h"
#include <sys/stat.h>
#include <stdio.h>
#include <fcntl.h>
#include <string>
#include <vector>
#include "AppDelegate.h"
#include "CCDirector.h"
#include "SimpleAudioEngine.h"
#include "platform/CCFileUtils.h"
#include "native/CCNative.h"
using namespace std;
using namespace cocos2d;
using namespace cocos2d::extra;
@implementation AppController
@synthesize menu;
-(void) dealloc
{
CCDirector::sharedDirector()->end();
[super dealloc];
}
#pragma mark -
#pragma delegates
- (void) applicationDidFinishLaunching:(NSNotification *)aNotification
{
isAlwaysOnTop = NO;
[self updateProjectConfigFromCommandLineArgs:&projectConfig];
[self createWindowAndGLView];
[self startup];
[self initUI];
[self updateUI];
[window orderFrontRegardless];
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
}
- (BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)theApplication
{
return YES;
}
- (BOOL) applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)flag
{
return NO;
}
- (void) windowWillClose:(NSNotification *)notification
{
CCDirector::sharedDirector()->end();
[[NSApplication sharedApplication] terminate:self];
}
#pragma mark -
#pragma mark functions
- (void) createWindowAndGLView
{
const CCSize frameSize = projectConfig.getFrameSize();
float left = 10;
float bottom = NSHeight([[NSScreen mainScreen] visibleFrame]) - frameSize.height;
bottom -= [[[NSApplication sharedApplication] menu] menuBarHeight] + 10;
NSDictionary *state = [[NSUserDefaults standardUserDefaults] objectForKey:@"last-state"];
if (state)
{
NSNumber *x = [state objectForKey:@"x"];
NSNumber *y = [state objectForKey:@"y"];
if (x && y)
{
projectConfig.setWindowOffset(CCPoint([x floatValue], [y floatValue]));
}
NSNumber *scale = [state objectForKey:@"scale"];
if (scale)
{
projectConfig.setFrameScale([scale floatValue]);
}
}
// create the window
// note that using NSResizableWindowMask causes the window to be a little
// smaller and therefore ipad graphics are not loaded
NSRect rect = NSMakeRect(left, bottom, frameSize.width, frameSize.height);
NSInteger mask = NSClosableWindowMask | NSTitledWindowMask | NSMiniaturizableWindowMask;
window = [[NSWindow alloc] initWithContentRect:rect
styleMask:mask
backing:NSBackingStoreBuffered
defer:YES];
window.delegate = self;
// allocate our GL view
// (isn't there already a shared EAGLView?)
glView = [[EAGLView alloc] initWithFrame:rect];
// set window parameters
[window setContentView:glView];
[window setTitle:@"mir9"];
[window center];
if (projectConfig.getProjectDir().length())
{
[self setZoom:projectConfig.getFrameScale()];
CCPoint pos = projectConfig.getWindowOffset();
if (pos.x != 0 && pos.y != 0)
{
[window setFrameOrigin:NSMakePoint(pos.x, pos.y)];
}
}
[window becomeFirstResponder];
[window makeKeyAndOrderFront:self];
[window setAcceptsMouseMovedEvents:NO];
}
- (void) startup
{
const string projectDir = projectConfig.getProjectDir();
if (projectDir.length())
{
CCFileUtils::sharedFileUtils()->setSearchRootPath(projectDir.c_str());
}
const string writablePath = projectConfig.getWritableRealPath();
if (writablePath.length())
{
CCFileUtils::sharedFileUtils()->setWritablePath(writablePath.c_str());
}
app = new AppDelegate();
app->setProjectConfig(projectConfig);
app->run();
}
- (void) initUI
{
NSMenu *submenu = [[[window menu] itemWithTitle:@"Screen"] submenu];
SimulatorConfig *config = SimulatorConfig::sharedDefaults();
int current = config->checkScreenSize(projectConfig.getFrameSize());
for (int i = config->getScreenSizeCount() - 1; i >= 0; --i)
{
SimulatorScreenSize size = config->getScreenSize(i);
NSMenuItem *item = [[[NSMenuItem alloc] initWithTitle:[NSString stringWithCString:size.title.c_str() encoding:NSUTF8StringEncoding]
action:@selector(onScreenChangeFrameSize:)
keyEquivalent:@""] autorelease];
[item setTag:i];
if (i == current)
{
[item setState:NSOnState];
}
[submenu insertItem:item atIndex:0];
}
}
- (void) updateUI
{
NSMenu *menuScreen = [[[window menu] itemWithTitle:@"Screen"] submenu];
NSMenuItem *itemPortait = [menuScreen itemWithTitle:@"Portait"];
NSMenuItem *itemLandscape = [menuScreen itemWithTitle:@"Landscape"];
if (projectConfig.isLandscapeFrame())
{
[itemPortait setState:NSOffState];
[itemLandscape setState:NSOnState];
}
else
{
[itemPortait setState:NSOnState];
[itemLandscape setState:NSOffState];
}
int scale = projectConfig.getFrameScale() * 100;
NSMenuItem *itemZoom100 = [menuScreen itemWithTitle:@"Actual (100%)"];
NSMenuItem *itemZoom75 = [menuScreen itemWithTitle:@"Zoom Out (75%)"];
NSMenuItem *itemZoom50 = [menuScreen itemWithTitle:@"Zoom Out (50%)"];
NSMenuItem *itemZoom25 = [menuScreen itemWithTitle:@"Zoom Out (25%)"];
[itemZoom100 setState:NSOffState];
[itemZoom75 setState:NSOffState];
[itemZoom50 setState:NSOffState];
[itemZoom25 setState:NSOffState];
if (scale == 100)
{
[itemZoom100 setState:NSOnState];
}
else if (scale == 75)
{
[itemZoom75 setState:NSOnState];
}
else if (scale == 50)
{
[itemZoom50 setState:NSOnState];
}
else if (scale == 25)
{
[itemZoom25 setState:NSOnState];
}
[window setTitle:[NSString stringWithFormat:@"mir9 (%0.0f%%)", projectConfig.getFrameScale() * 100]];
}
- (NSMutableArray*) makeCommandLineArgsFromProjectConfig
{
return [self makeCommandLineArgsFromProjectConfig:kProjectConfigAll];
}
- (NSMutableArray*) makeCommandLineArgsFromProjectConfig:(unsigned int)mask
{
projectConfig.setWindowOffset(CCPoint(window.frame.origin.x, window.frame.origin.y));
NSString *commandLine = [NSString stringWithCString:projectConfig.makeCommandLine(mask).c_str()
encoding:NSUTF8StringEncoding];
return [NSMutableArray arrayWithArray:[commandLine componentsSeparatedByString:@" "]];
}
- (void) updateProjectConfigFromCommandLineArgs:(ProjectConfig *)config
{
NSArray *nsargs = [[NSProcessInfo processInfo] arguments];
vector<string> args;
for (int i = 0; i < [nsargs count]; ++i)
{
args.push_back([[nsargs objectAtIndex:i] cStringUsingEncoding:NSUTF8StringEncoding]);
}
config->parseCommandLine(args);
config->dump();
}
- (void) launch:(NSArray*)args
{
NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]];
NSMutableDictionary *configuration = [NSMutableDictionary dictionaryWithObject:args
forKey:NSWorkspaceLaunchConfigurationArguments];
NSError *error = [[[NSError alloc] init] autorelease];
[[NSWorkspace sharedWorkspace] launchApplicationAtURL:url
options:NSWorkspaceLaunchNewInstance
configuration:configuration error:&error];
}
- (void) relaunch:(NSArray*)args
{
[self saveLastState];
if (projectConfig.isExitWhenRelaunch())
{
exit(99);
}
else
{
[self launch:args];
[[NSApplication sharedApplication] terminate:self];
}
}
- (void) relaunch
{
[self relaunch:[self makeCommandLineArgsFromProjectConfig]];
}
- (void) showAlertWithoutSheet:(NSString*)message withTitle:(NSString*)title
{
NSAlert *alert = [[[NSAlert alloc] init] autorelease];
[alert addButtonWithTitle:@"OK"];
[alert setMessageText:message];
[alert setInformativeText:title];
[alert setAlertStyle:NSWarningAlertStyle];
[alert runModal];
}
- (void) setZoom:(float)scale
{
[glView setFrameZoomFactor:scale];
projectConfig.setFrameScale(scale);
}
-(void) setAlwaysOnTop:(BOOL)alwaysOnTop
{
NSMenuItem *windowMenu = [[window menu] itemWithTitle:@"Window"];
NSMenuItem *menuItem = [[windowMenu submenu] itemWithTitle:@"Always On Top"];
if (alwaysOnTop)
{
[window setLevel:NSFloatingWindowLevel];
[menuItem setState:NSOnState];
}
else
{
[window setLevel:NSNormalWindowLevel];
[menuItem setState:NSOffState];
}
isAlwaysOnTop = alwaysOnTop;
}
-(void) saveLastState
{
NSMutableDictionary *state = [NSMutableDictionary dictionary];
[state setObject:[NSNumber numberWithInt:window.frame.origin.x] forKey:@"x"];
[state setObject:[NSNumber numberWithInt:window.frame.origin.y] forKey:@"y"];
[state setObject:[NSNumber numberWithFloat:projectConfig.getFrameScale()] forKey:@"scale"];
[[NSUserDefaults standardUserDefaults] setObject:state forKey:@"last-state"];
[[NSUserDefaults standardUserDefaults] synchronize];
}
#pragma mark -
#pragma mark IB Actions
- (IBAction) onFileRelaunch:(id)sender
{
[self relaunch];
}
- (IBAction) onScreenChangeFrameSize:(id)sender
{
NSInteger i = [sender tag];
if (i >= 0 && i < SimulatorConfig::sharedDefaults()->getScreenSizeCount())
{
SimulatorScreenSize size = SimulatorConfig::sharedDefaults()->getScreenSize((int)i);
projectConfig.setFrameSize(projectConfig.isLandscapeFrame() ? CCSize(size.height, size.width) : CCSize(size.width, size.height));
projectConfig.setFrameScale(1.0f);
[self relaunch];
}
}
- (IBAction) onScreenPortait:(id)sender
{
if ([sender state] == NSOnState) return;
[sender setState:NSOnState];
[[[[[window menu] itemWithTitle:@"Screen"] submenu] itemWithTitle:@"Landscape"] setState:NSOffState];
projectConfig.changeFrameOrientationToPortait();
[self relaunch];
}
- (IBAction) onScreenLandscape:(id)sender
{
if ([sender state] == NSOnState) return;
[sender setState:NSOnState];
[[[[[window menu] itemWithTitle:@"Screen"] submenu] itemWithTitle:@"Portait"] setState:NSOffState];
projectConfig.changeFrameOrientationToLandscape();
[self relaunch];
}
- (IBAction) onScreenZoomOut:(id)sender
{
if ([sender state] == NSOnState) return;
float scale = (float)[sender tag] / 100.0f;
[self setZoom:scale];
[self updateUI];
}
-(IBAction) onWindowAlwaysOnTop:(id)sender
{
[self setAlwaysOnTop:!isAlwaysOnTop];
}
@end
================================================
FILE: 源代码/2.2.5/mir9/proj.mac/Info.plist
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string>Icon</string>
<key>CFBundleIdentifier</key>
<string>com.qeeplay.apps.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>20131001</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2012 qeeplay.com. All rights reserved.</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
================================================
FILE: 源代码/2.2.5/mir9/proj.mac/MainMenu.xib
================================================
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5056" systemVersion="13C1021" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment version="1060" defaultVersion="1070" identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5056"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="AppController">
<connections>
<outlet property="delegate" destination="536" id="537"/>
<outlet property="menu" destination="29" id="RGo-Y7-T4b"/>
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application"/>
<menu title="AMainMenu" systemMenu="main" id="29">
<items>
<menuItem title="helloworld" id="56">
<menu key="submenu" title="helloworld" systemMenu="apple" id="57">
<items>
<menuItem title="About helloworld" id="58">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="orderFrontStandardAboutPanel:" target="-2" id="142"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="236">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Services" id="131">
<menu key="submenu" title="Services" systemMenu="services" id="130"/>
</menuItem>
<menuItem isSeparatorItem="YES" id="144">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Hide helloworld" keyEquivalent="h" id="134">
<connections>
<action selector="hide:" target="-1" id="367"/>
</connections>
</menuItem>
<menuItem title="Hide Others" keyEquivalent="h" id="145">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="hideOtherApplications:" target="-1" id="368"/>
</connections>
</menuItem>
<menuItem title="Show All" id="150">
<connections>
<action selector="unhideAllApplications:" target="-1" id="370"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="149">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Quit helloworld" keyEquivalent="q" id="136">
<connections>
<action selector="terminate:" target="-3" id="449"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="File" id="83">
<menu key="submenu" title="File" id="81">
<items>
<menuItem title="Relaunch" keyEquivalent="r" id="01T-Iz-Pcm">
<connections>
<action selector="onFileRelaunch:" target="-1" id="JKQ-fG-ndn"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Edit" id="Sqe-GR-erP">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Edit" id="k0V-hR-upN">
<items>
<menuItem title="Undo" keyEquivalent="z" id="Ueo-Yj-fzm">
<connections>
<action selector="undo:" target="-1" id="Ex2-6U-hZI"/>
</connections>
</menuItem>
<menuItem title="Redo" keyEquivalent="Z" id="x6z-iQ-VK2">
<connections>
<action selector="redo:" target="-1" id="KEx-Aj-tYn"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="COi-E7-7M4"/>
<menuItem title="Cut" keyEquivalent="x" id="NAk-12-pg4">
<connections>
<action selector="cut:" target="-1" id="Owu-Ie-Kfg"/>
</connections>
</menuItem>
<menuItem title="Copy" keyEquivalent="c" id="XOY-ya-lNt">
<connections>
<action selector="copy:" target="-1" id="aIB-pV-N2w"/>
</connections>
</menuItem>
<menuItem title="Paste" keyEquivalent="v" id="ul0-51-Ibd">
<connections>
<action selector="paste:" target="-1" id="7rk-Tb-7hI"/>
</connections>
</menuItem>
<menuItem title="Paste and Match Style" keyEquivalent="V" id="Zvy-7g-x4q">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="pasteAsPlainText:" target="-1" id="oM4-kj-hTQ"/>
</connections>
</menuItem>
<menuItem title="Delete" id="Xyz-QC-wlG">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="delete:" target="-1" id="idJ-aN-6bB"/>
</connections>
</menuItem>
<menuItem title="Select All" keyEquivalent="a" id="4fT-JL-N6e">
<connections>
<action selector="selectAll:" target="-1" id="pAH-rW-PaD"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="osB-R6-2jE"/>
<menuItem title="Find" id="bms-8x-7Yb">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Find" id="AXr-4L-lcV">
<items>
<menuItem title="Find…" tag="1" keyEquivalent="f" id="GS8-y9-yQY">
<connections>
<action selector="performFindPanelAction:" target="-1" id="jVT-dG-Frl"/>
</connections>
</menuItem>
<menuItem title="Find Next" tag="2" keyEquivalent="g" id="RJc-P7-Ibq">
<connections>
<action selector="performFindPanelAction:" target="-1" id="yLp-2a-Nuk"/>
</connections>
</menuItem>
<menuItem title="Find Previous" tag="3" keyEquivalent="G" id="f5k-Su-hK0">
<connections>
<action selector="performFindPanelAction:" target="-1" id="uoF-9Z-ef7"/>
</connections>
</menuItem>
<menuItem title="Use Selection for Find" tag="7" keyEquivalent="e" id="9Zj-Be-aBN">
<connections>
<action selector="performFindPanelAction:" target="-1" id="8hs-AK-0U8"/>
</connections>
</menuItem>
<menuItem title="Jump to Selection" keyEquivalent="j" id="4tD-ef-pd8">
<connections>
<action selector="centerSelectionInVisibleArea:" target="-1" id="8xc-J0-7iQ"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Spelling and Grammar" id="3zu-oA-Lwh">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Spelling" id="Rw0-u8-9Jd">
<items>
<menuItem title="Show Spelling and Grammar" keyEquivalent=":" id="cA3-Ek-9yR">
<connections>
<action selector="showGuessPanel:" target="-1" id="9iU-13-OG3"/>
</connections>
</menuItem>
<menuItem title="Check Document Now" keyEquivalent=";" id="Rv1-Ws-AjN">
<connections>
<action selector="checkSpelling:" target="-1" id="lJa-2J-vbR"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="Nfe-cz-BcK"/>
<menuItem title="Check Spelling While Typing" id="m0f-Qa-nDC">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleContinuousSpellChecking:" target="-1" id="kpi-oz-XsN"/>
</connections>
</menuItem>
<menuItem title="Check Grammar With Spelling" id="vtr-52-Ani">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleGrammarChecking:" target="-1" id="yjk-wP-MvM"/>
</connections>
</menuItem>
<menuItem title="Correct Spelling Automatically" id="iVS-Zk-xy0">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticSpellingCorrection:" target="-1" id="4op-79-0sd"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Substitutions" id="UaR-w3-b5E">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Substitutions" id="mmK-ZY-1i7">
<items>
<menuItem title="Show Substitutions" id="E6f-H6-QhY">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="orderFrontSubstitutionsPanel:" target="-1" id="c4L-9l-58Z"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="ENB-nL-Asg"/>
<menuItem title="Smart Copy/Paste" id="RNy-Ve-QQn">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleSmartInsertDelete:" target="-1" id="qpY-x8-X4o"/>
</connections>
</menuItem>
<menuItem title="Smart Quotes" id="WOW-3M-PVs">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticQuoteSubstitution:" target="-1" id="4LP-0s-thl"/>
</connections>
</menuItem>
<menuItem title="Smart Dashes" id="c3Y-vb-jMJ">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticDashSubstitution:" target="-1" id="VOh-m7-bQX"/>
</connections>
</menuItem>
<menuItem title="Smart Links" id="xpL-0N-OPW">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticLinkDetection:" target="-1" id="OKD-gC-8aE"/>
</connections>
</menuItem>
<menuItem title="Data Detectors" id="Hbt-6Y-8jk">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticDataDetection:" target="-1" id="gun-Rv-8nJ"/>
</connections>
</menuItem>
<menuItem title="Text Replacement" id="Zq8-Zi-Bhq">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticTextReplacement:" target="-1" id="9Ss-B0-tH1"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Transformations" id="lVL-sB-nwJ">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Transformations" id="0Gi-wi-fPh">
<items>
<menuItem title="Make Upper Case" id="74T-ro-lNN">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="uppercaseWord:" target="-1" id="bNP-Yh-wfr"/>
</connections>
</menuItem>
<menuItem title="Make Lower Case" id="eUB-DS-Th3">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="lowercaseWord:" target="-1" id="Qn7-8C-v9E"/>
</connections>
</menuItem>
<menuItem title="Capitalize" id="Qdu-on-Bhv">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="capitalizeWord:" target="-1" id="euU-PY-6a5"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Speech" id="aly-Wy-hOl">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Speech" id="aWn-Eb-Kvg">
<items>
<menuItem title="Start Speaking" id="dnR-gz-zsX">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="startSpeaking:" target="-1" id="CRt-UM-92c"/>
</connections>
</menuItem>
<menuItem title="Stop Speaking" id="Wen-oy-zkg">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="stopSpeaking:" target="-1" id="eVf-xt-2xb"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Screen" id="295">
<menu key="submenu" title="Screen" id="296">
<items>
<menuItem isSeparatorItem="YES" id="579"/>
<menuItem title="Portait" state="on" id="592">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="onScreenPortait:" target="-1" id="667"/>
</connections>
</menuItem>
<menuItem title="Landscape" id="593">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="onScreenLandscape:" target="-1" id="647"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="594"/>
<menuItem title="Actual (100%)" state="on" tag="100" keyEquivalent="0" id="595">
<connections>
<action selector="onScreenZoomOut:" target="-1" id="yUj-fN-Rh7"/>
</connections>
</menuItem>
<menuItem title="Zoom Out (75%)" tag="75" keyEquivalent="6" id="pqR-xy-5ip">
<connections>
<action selector="onScreenZoomOut:" target="-1" id="yps-LZ-egB"/>
</connections>
</menuItem>
<menuItem title="Zoom Out (50%)" tag="50" keyEquivalent="5" id="596">
<connections>
<action selector="onScreenZoomOut:" target="-1" id="654"/>
</connections>
</menuItem>
<menuItem title="Zoom Out (25%)" tag="25" keyEquivalent="4" id="QB8-6D-hAr">
<connections>
<action selector="onScreenZoomOut:" target="-1" id="DSu-if-D2T"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Window" id="19">
<menu key="submenu" title="Window" systemMenu="window" id="24">
<items>
<menuItem title="Minimize" keyEquivalent="m" id="23">
<connections>
<action selector="performMiniaturize:" target="-1" id="37"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="92">
<modifierMask key="keyEquivalentModifierMask" command="YES"/>
</menuItem>
<menuItem title="Bring All to Front" id="5">
<connections>
<action selector="arrangeInFront:" target="-1" id="39"/>
</connections>
</menuItem>
<menuItem title="Always On Top" keyEquivalent="a" id="582">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="onWindowAlwaysOnTop:" target="-1" id="668"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Help" id="490">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
</items>
</menu>
<customObject id="420" customClass="NSFontManager"/>
<customObject id="536" customClass="AppController">
<connections>
<outlet property="menu" destination="29" id="550"/>
</connections>
</customObject>
</objects>
</document>
================================================
FILE: 源代码/2.2.5/mir9/proj.mac/main.m
================================================
#import <Cocoa/Cocoa.h>
int main(int argc, char *argv[])
{
return NSApplicationMain(argc, (const char **)argv);
}
================================================
FILE: 源代码/2.2.5/mir9/proj.mac/mir9.xcodeproj/project.pbxproj
================================================
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
F40EE898163F83E000090121 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F44C957915F49004004D4151 /* AppKit.framework */; };
F44C957715F49004004D4151 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F44C957615F49004004D4151 /* Cocoa.framework */; };
F4703CBE177955E200A8A9E9 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = F4703CBC177955E100A8A9E9 /* MainMenu.xib */; };
F4A5C15E16B7A35700A12606 /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F4A5C15816B7A35700A12606 /* AudioToolbox.framework */; };
F4A5C15F16B7A35700A12606 /* OpenAL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F4A5C15916B7A35700A12606 /* OpenAL.framework */; };
F4A5C16016B7A35700A12606 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F4A5C15A16B7A35700A12606 /* OpenGL.framework */; };
F4A5C16E16B7A3EC00A12606 /* libcurl.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = F4A5C16B16B7A3EC00A12606 /* libcurl.dylib */; };
F4A5C16F16B7A3EC00A12606 /* libxml2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = F4A5C16C16B7A3EC00A12606 /* libxml2.dylib */; };
F4A5C17016B7A3EC00A12606 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = F4A5C16D16B7A3EC00A12606 /* libz.dylib */; };
F4B0814A175C89050029F472 /* AppController.mm in Sources */ = {isa = PBXBuildFile; fileRef = F4B08140175C89050029F472 /* AppController.mm */; };
F4B0814D175C89050029F472 /* Icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = F4B08146175C89050029F472 /* Icon.icns */; };
F4B0814F175C89050029F472 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = F4B08148175C89050029F472 /* main.m */; };
F4B08157175C89E90029F472 /* libquickcocos2dx.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F4B08156175C89E30029F472 /* libquickcocos2dx.a */; };
F4B0815E175C8A1E0029F472 /* AppDelegate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F4B0815A175C8A1E0029F472 /* AppDelegate.cpp */; };
F4B4EF6616CA2A8B00736FFE /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F4B4EF6516CA2A8B00736FFE /* SystemConfiguration.framework */; };
F4BA6EB315F499A300CE7A10 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F4BA6EB215F499A300CE7A10 /* QuartzCore.framework */; };
F4BA6EBD15F499EE00CE7A10 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F4BA6EBC15F499EE00CE7A10 /* Security.framework */; };
F4DDD22D1926533C00D37F83 /* mir9.app in CopyFiles */ = {isa = PBXBuildFile; fileRef = F44C957215F49004004D4151 /* mir9.app */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
F4B08155175C89E30029F472 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = F4B08151175C89E30029F472 /* quickcocos2dx.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = F4DE082016800061005DB2DB;
remoteInfo = quickcocos2dx;
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
F4DDD22C1926532400D37F83 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "$(SRCROOT)/bin";
dstSubfolderSpec = 0;
files = (
F4DDD22D1926533C00D37F83 /* mir9.app in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
F44C957215F49004004D4151 /* mir9.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "mir9.app"; sourceTree = BUILT_PRODUCTS_DIR; };
F44C957615F49004004D4151 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
F44C957915F49004004D4151 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
F44C957A15F49004004D4151 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
F44C957B15F49004004D4151 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
F4703CBC177955E100A8A9E9 /* MainMenu.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MainMenu.xib; sourceTree = "<group>"; };
F4A5C15816B7A35700A12606 /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/AudioToolbox.framework; sourceTree = "<absolute>"; };
F4A5C15916B7A35700A12606 /* OpenAL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenAL.framework; path = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenAL.framework; sourceTree = "<absolute>"; };
F4A5C15A16B7A35700A12606 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/OpenGL.framework; sourceTree = "<absolute>"; };
F4A5C16B16B7A3EC00A12606 /* libcurl.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcurl.dylib; path = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/libcurl.dylib; sourceTree = "<absolute>"; };
F4A5C16C16B7A3EC00A12606 /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/libxml2.dylib; sourceTree = "<absolute>"; };
F4A5C16D16B7A3EC00A12606 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/libz.dylib; sourceTree = "<absolute>"; };
F4B0813F175C89050029F472 /* AppController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppController.h; sourceTree = SOURCE_ROOT; };
F4B08140175C89050029F472 /* AppController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = AppController.mm; sourceTree = SOURCE_ROOT; };
F4B08146175C89050029F472 /* Icon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Icon.icns; sourceTree = SOURCE_ROOT; };
F4B08147175C89050029F472 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = SOURCE_ROOT; };
F4B08148175C89050029F472 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = SOURCE_ROOT; };
F4B08149175C89050029F472 /* Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Prefix.pch; sourceTree = SOURCE_ROOT; };
F4B08151175C89E30029F472 /* quickcocos2dx.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = quickcocos2dx.xcodeproj; path = lib/proj.mac/quickcocos2dx.xcodeproj; sourceTree = QUICK_COCOS2DX_ROOT; };
F4B0815A175C8A1E0029F472 /* AppDelegate.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AppDelegate.cpp; sourceTree = "<group>"; };
F4B0815B175C8A1E0029F472 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
F4B4EF6516CA2A8B00736FFE /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
F4BA6EB215F499A300CE7A10 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
F4BA6EBA15F499CC00CE7A10 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; };
F4BA6EBC15F499EE00CE7A10 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
F44C956F15F49004004D4151 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
F4B08157175C89E90029F472 /* libquickcocos2dx.a in Frameworks */,
F4B4EF6616CA2A8B00736FFE /* SystemConfiguration.framework in Frameworks */,
F40EE898163F83E000090121 /* AppKit.framework in Frameworks */,
F4BA6EBD15F499EE00CE7A10 /* Security.framework in Frameworks */,
F4BA6EB315F499A300CE7A10 /* QuartzCore.framework in Frameworks */,
F44C957715F49004004D4151 /* Cocoa.framework in Frameworks */,
F4A5C15E16B7A35700A12606 /* AudioToolbox.framework in Frameworks */,
F4A5C15F16B7A35700A12606 /* OpenAL.framework in Frameworks */,
F4A5C16016B7A35700A12606 /* OpenGL.framework in Frameworks */,
F4A5C16E16B7A3EC00A12606 /* libcurl.dylib in Frameworks */,
F4A5C16F16B7A3EC00A12606 /* libxml2.dylib in Frameworks */,
F4A5C17016B7A3EC00A12606 /* libz.dylib in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
F44C956715F49004004D4151 = {
isa = PBXGroup;
children = (
F4B08151175C89E30029F472 /* quickcocos2dx.xcodeproj */,
F44C957C15F49004004D4151 /* mir9 */,
F44C957515F49004004D4151 /* Frameworks */,
F44C957315F49004004D4151 /* Products */,
);
sourceTree = "<group>";
};
F44C957315F49004004D4151 /* Products */ = {
isa = PBXGroup;
children = (
F44C957215F49004004D4151 /* mir9.app */,
);
name = Products;
sourceTree = "<group>";
};
F44C957515F49004004D4151 /* Frameworks */ = {
isa = PBXGroup;
children = (
F44C957915F49004004D4151 /* AppKit.framework */,
F4A5C15816B7A35700A12606 /* AudioToolbox.framework */,
F44C957615F49004004D4151 /* Cocoa.framework */,
F44C957A15F49004004D4151 /* CoreData.framework */,
F4BA6EBA15F499CC00CE7A10 /* CoreFoundation.framework */,
F44C957B15F49004004D4151 /* Foundation.framework */,
F4A5C16B16B7A3EC00A12606 /* libcurl.dylib */,
F4A5C16C16B7A3EC00A12606 /* libxml2.dylib */,
F4A5C16D16B7A3EC00A12606 /* libz.dylib */,
F4A5C15916B7A35700A12606 /* OpenAL.framework */,
F4A5C15A16B7A35700A12606 /* OpenGL.framework */,
F4BA6EB215F499A300CE7A10 /* QuartzCore.framework */,
F4BA6EBC15F499EE00CE7A10 /* Security.framework */,
F4B4EF6516CA2A8B00736FFE /* SystemConfiguration.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
F44C957C15F49004004D4151 /* mir9 */ = {
isa = PBXGroup;
children = (
F4B08159175C8A1E0029F472 /* sources */,
F4B08158175C8A100029F472 /* mac */,
);
name = "mir9";
sourceTree = "<group>";
};
F4B08152175C89E30029F472 /* Products */ = {
isa = PBXGroup;
children = (
F4B08156175C89E30029F472 /* libquickcocos2dx.a */,
);
name = Products;
sourceTree = "<group>";
};
F4B08158175C8A100029F472 /* mac */ = {
isa = PBXGroup;
children = (
F4B0813F175C89050029F472 /* AppController.h */,
F4B08140175C89050029F472 /* AppController.mm */,
F4B08146175C89050029F472 /* Icon.icns */,
F4B08147175C89050029F472 /* Info.plist */,
F4B08148175C89050029F472 /* main.m */,
F4703CBC177955E100A8A9E9 /* MainMenu.xib */,
F4B08149175C89050029F472 /* Prefix.pch */,
);
name = mac;
sourceTree = "<group>";
};
F4B08159175C8A1E0029F472 /* sources */ = {
isa = PBXGroup;
children = (
F4B0815A175C8A1E0029F472 /* AppDelegate.cpp */,
F4B0815B175C8A1E0029F472 /* AppDelegate.h */,
);
name = sources;
path = ../sources;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
F44C957115F49004004D4151 /* mir9 */ = {
isa = PBXNativeTarget;
buildConfigurationList = F44C959015F49004004D4151 /* Build configuration list for PBXNativeTarget "mir9" */;
buildPhases = (
F44C956E15F49004004D4151 /* Sources */,
F44C956F15F49004004D4151 /* Frameworks */,
F44C957015F49004004D4151 /* Resources */,
F4DDD22C1926532400D37F83 /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = "mir9";
productName = "mir9";
productReference = F44C957215F49004004D4151 /* mir9.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
F44C956915F49004004D4151 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0500;
ORGANIZATIONNAME = qeeplay.com;
};
buildConfigurationList = F44C956C15F49004004D4151 /* Build configuration list for PBXProject "mir9" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = F44C956715F49004004D4151;
productRefGroup = F44C957315F49004004D4151 /* Products */;
projectDirPath = "";
projectReferences = (
{
ProductGroup = F4B08152175C89E30029F472 /* Products */;
ProjectRef = F4B08151175C89E30029F472 /* quickcocos2dx.xcodeproj */;
},
);
projectRoot = "";
targets = (
F44C957115F49004004D4151 /* mir9 */,
);
};
/* End PBXProject section */
/* Begin PBXReferenceProxy section */
F4B08156175C89E30029F472 /* libquickcocos2dx.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libquickcocos2dx.a;
remoteRef = F4B08155175C89E30029F472 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
/* End PBXReferenceProxy section */
/* Begin PBXResourcesBuildPhase section */
F44C957015F49004004D4151 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F4B0814D175C89050029F472 /* Icon.icns in Resources */,
F4703CBE177955E200A8A9E9 /* MainMenu.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
F44C956E15F49004004D4151 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F4B0814A175C89050029F472 /* AppController.mm in Sources */,
F4B0814F175C89050029F472 /* main.m in Sources */,
F4B0815E175C8A1E0029F472 /* AppDelegate.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
F44C958E15F49004004D4151 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
TARGET_OS_MAC,
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.7;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"-pagezero_size",
10000,
"-image_base",
100000000,
);
SDKROOT = macosx;
VALID_ARCHS = "$(ARCHS_STANDARD)";
};
name = Debug;
};
F44C958F15F49004004D4151 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_PREPROCESSOR_DEFINITIONS = TARGET_OS_MAC;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.7;
OTHER_LDFLAGS = (
"-pagezero_size",
10000,
"-image_base",
100000000,
);
SDKROOT = macosx;
VALID_ARCHS = "$(ARCHS_STANDARD)";
};
name = Release;
};
F44C959115F49004004D4151 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
COMBINE_HIDPI_IMAGES = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = (
CC_TARGET_OS_MAC,
"DEBUG=1",
USE_FILE32API,
"CC_LUA_ENGINE_ENABLED=1",
"COCOS2D_DEBUG=1",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
HEADER_SEARCH_PATHS = (
"\"$(SDKROOT)/usr/include/libxml2\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform/mac\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform/third_party/mac\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/kazmath/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/CocosDenshion/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/CocosDenshion/mac\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions/GUI/CCControlExtension\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions/GUI/CCEditBox\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/external/chipmunk/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/external/chipmunk/luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/external/extra\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/external/extra/luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/cocos2dx_support\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/tolua\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/luajit/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/lua_extensions\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/lua_extensions/cjson\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/lua_extensions/zlib\"",
);
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
INFOPLIST_OUTPUT_FORMAT = binary;
LIBRARY_SEARCH_PATHS = "$(inherited)";
MACOSX_DEPLOYMENT_TARGET = 10.7;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
VALID_ARCHS = "$(ARCHS_STANDARD)";
WRAPPER_EXTENSION = app;
};
name = Debug;
};
F44C959215F49004004D4151 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
COMBINE_HIDPI_IMAGES = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_INLINES_ARE_PRIVATE_EXTERN = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = (
CC_TARGET_OS_MAC,
USE_FILE32API,
"CC_LUA_ENGINE_ENABLED=1",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
HEADER_SEARCH_PATHS = (
"\"$(SDKROOT)/usr/include/libxml2\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform/mac\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/platform/third_party/mac\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/cocos2dx/kazmath/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/CocosDenshion/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/CocosDenshion/mac\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions/GUI/CCControlExtension\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/extensions/GUI/CCEditBox\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/external/chipmunk/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/external/chipmunk/luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/external/extra\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/external/extra/luabinding\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/cocos2dx_support\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/tolua\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/luajit/include\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/lua_extensions\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/lua_extensions/cjson\"",
"\"$(QUICK_COCOS2DX_ROOT)/lib/cocos2d-x/scripting/lua/lua_extensions/zlib\"",
);
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
INFOPLIST_OUTPUT_FORMAT = binary;
LIBRARY_SEARCH_PATHS = "$(inherited)";
MACOSX_DEPLOYMENT_TARGET = 10.7;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
VALID_ARCHS = "$(ARCHS_STANDARD)";
WRAPPER_EXTENSION = app;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
F44C956C15F49004004D4151 /* Build configuration list for PBXProject "mir9" */ = {
isa = XCConfigurationList;
buildConfigurations = (
F44C958E15F49004004D4151 /* Debug */,
F44C958F15F49004004D4151 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
F44C959015F49004004D4151 /* Build configuration list for PBXNativeTarget "mir9" */ = {
isa = XCConfigurationList;
buildConfigurations = (
F44C959115F49004004D4151 /* Debug */,
F44C959215F49004004D4151 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = F44C956915F49004004D4151 /* Project object */;
}
================================================
FILE: 源代码/2.2.5/mir9/proj.win32/app.cpp
================================================
#pragma comment(lib, "comctl32.lib")
#pragma comment(linker, "\"/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='X86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#include "stdafx.h"
#include "app.h"
#include <io.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <Commdlg.h>
#include <Shlobj.h>
#include <winnls.h>
#include <shobjidl.h>
#include <objbase.h>
#include <objidl.h>
#include <shlguid.h>
#include <shellapi.h>
#include <vector>
#include "CCEGLView.h"
#include "CCLuaEngine.h"
#include "CCLuaStack.h"
#include "SimpleAudioEngine.h"
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
return App::createAndRun();
}
int App::createAndRun(void)
{
App *host = App::sharedInstance();
int ret = host->run();
App::purgeSharedInstance();
return ret;
}
App *App::s_sharedInstance = NULL;
App *App::sharedInstance(void)
{
if (!s_sharedInstance)
{
s_sharedInstance = new App();
}
return s_sharedInstance;
}
void App::purgeSharedInstance(void)
{
if (s_sharedInstance)
{
delete s_sharedInstance;
s_sharedInstance = NULL;
}
}
App::App(void)
: m_app(NULL)
, m_hwnd(NULL)
, m_exit(TRUE)
, m_writeDebugLogFile(NULL)
{
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
}
int App::run(void)
{
const char *QUICK_COCOS2DX_ROOT = getenv("QUICK_COCOS2DX_ROOT");
SimulatorConfig::sharedDefaults()->setQuickCocos2dxRootPath(QUICK_COCOS2DX_ROOT);
loadProjectConfig();
HWND hwndConsole = NULL;
if (m_project.isShowConsole())
{
AllocConsole();
freopen("CONOUT$", "wt", stdout);
freopen("CONOUT$", "wt", stderr);
// disable close console
hwndConsole = GetConsoleWindow();
if (hwndConsole != NULL)
{
HMENU hMenu = GetSystemMenu(hwndConsole, FALSE);
if (hMenu != NULL) DeleteMenu(hMenu, SC_CLOSE, MF_BYCOMMAND);
ShowWindow(hwndConsole, SW_SHOW);
BringWindowToTop(hwndConsole);
}
}
m_project.dump();
if (m_project.isWriteDebugLogToFile())
{
const string debugLogFilePath = m_project.getDebugLogFilePath();
m_writeDebugLogFile = fopen(debugLogFilePath.c_str(), "w");
if (!m_writeDebugLogFile)
{
CCLOG("Cannot create debug log file %s", debugLogFilePath.c_str());
}
}
do
{
m_exit = TRUE;
// create the application instance
m_app = new AppDelegate();
m_app->setProjectConfig(m_project);
// set environments
SetCurrentDirectoryA(m_project.getProjectDir().c_str());
CCFileUtils::sharedFileUtils()->setSearchRootPath(m_project.getProjectDir().c_str());
CCFileUtils::sharedFileUtils()->setWritablePath(m_project.getWritableRealPath().c_str());
// create opengl view
CCEGLView* eglView = CCEGLView::sharedOpenGLView();
eglView->setMenuResource(MAKEINTRESOURCE(IDC_LUAHOSTWIN32));
eglView->setWndProc(WindowProc);
eglView->setFrameSize(m_project.getFrameSize().width, m_project.getFrameSize().height);
eglView->setFrameZoomFactor(m_project.getFrameScale());
// make window actived
m_hwnd = eglView->getHWnd();
BringWindowToTop(m_hwnd);
SetWindowTextA(m_hwnd, "mir9");
// restore window position
const CCPoint windowOffset = m_project.getWindowOffset();
if (windowOffset.x != 0 || windowOffset.y != 0)
{
eglView->moveWindow(windowOffset.x, windowOffset.y);
}
// set icon
HICON icon = LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_LUAHOSTWIN32));
SendMessage(m_hwnd, WM_SETICON, ICON_BIG, (LPARAM)icon);
if (hwndConsole)
{
SendMessage(hwndConsole, WM_SETICON, ICON_BIG, (LPARAM)icon);
}
// update menu
createViewMenu();
updateMenu();
// run game
CCLuaStack *stack = CCLuaEngine::defaultEngine()->getLuaStack();
const vector<string> arr = m_project.getPackagePathArray();
for (vector<string>::const_iterator it = arr.begin(); it != arr.end(); ++it)
{
stack->addSearchPath(it->c_str());
}
m_app->run();
// cleanup
CCScriptEngineManager::sharedManager()->removeScriptEngine();
CCScriptEngineManager::purgeSharedManager();
CocosDenshion::SimpleAudioEngine::end();
delete m_app;
m_app = NULL;
} while (!m_exit);
FreeConsole();
if (m_writeDebugLogFile) fclose(m_writeDebugLogFile);
return 0;
}
void App::loadProjectConfig(void)
{
vector<string> args;
for (int i = 0; i < __argc; ++i)
{
wstring ws(__wargv[i]);
string s;
s.assign(ws.begin(), ws.end());
args.push_back(s);
}
if (args.size() <= 1)
{
args.push_back("-workdir");
#ifdef DEBUG
args.push_back(DEBUG_WORK_DIR);
#else
char szPath[MAX_PATH] = {0};
::GetModuleFileNameA(NULL, szPath, MAX_PATH);
string strPath(szPath);
for (int nPos = (int)strPath.size()-1; nPos >= 0; --nPos)
{
char cChar = strPath[nPos];
if (_T('\\') == cChar || _T('/') == cChar)
{
strPath = strPath.substr(0, nPos+1);
break;
}
}
args.push_back(strPath);
args.push_back("-disable-console");
#endif
#ifndef ENCRYPT_LUA
args.push_back("-file");
args.push_back("scripts/main.lua");
#endif
args.push_back("-size");
args.push_back("960x640");
}
m_project.parseCommandLine(args);
}
void App::createViewMenu(void)
{
HMENU menu = GetMenu(m_hwnd);
HMENU viewMenu = GetSubMenu(menu, 1);
for (int i = SimulatorConfig::sharedDefaults()->getScreenSizeCount() - 1; i >= 0; --i)
{
SimulatorScreenSize size = SimulatorConfig::sharedDefaults()->getScreenSize(i);
wstring menuName;
menuName.assign(size.title.begin(), size.title.end());
MENUITEMINFO item;
ZeroMemory(&item, sizeof(item));
item.cbSize = sizeof(item);
item.fMask = MIIM_FTYPE | MIIM_ID | MIIM_STRING;
item.fType = MFT_STRING;
item.wID = ID_VIEW_SIZE + i;
item.dwTypeData = (LPTSTR)menuName.c_str();
item.cch = menuName.length();
InsertMenuItem(viewMenu, 0, TRUE, &item);
}
}
void App::updateMenu(void)
{
HMENU menu = GetMenu(m_hwnd);
HMENU viewMenu = GetSubMenu(menu, 1);
if (m_project.isLandscapeFrame())
{
CheckMenuItem(viewMenu, ID_VIEW_PORTRAIT, MF_BYCOMMAND | MF_UNCHECKED);
CheckMenuItem(viewMenu, ID_VIEW_LANDSCAPE, MF_BYCOMMAND | MF_CHECKED);
}
else
{
CheckMenuItem(viewMenu, ID_VIEW_PORTRAIT, MF_BYCOMMAND | MF_CHECKED);
CheckMenuItem(viewMenu, ID_VIEW_LANDSCAPE, MF_BYCOMMAND | MF_UNCHECKED);
}
if (m_project.getFrameScale() < 1.0f)
{
CheckMenuItem(viewMenu, ID_VIEW_RESET_ZOOM, MF_BYCOMMAND | MF_UNCHECKED);
CheckMenuItem(viewMenu, ID_VIEW_ZOOM_OUT, MF_BYCOMMAND | MF_CHECKED);
}
else
{
CheckMenuItem(viewMenu, ID_VIEW_RESET_ZOOM, MF_BYCOMMAND | MF_CHECKED);
CheckMenuItem(viewMenu, ID_VIEW_ZOOM_OUT, MF_BYCOMMAND | MF_UNCHECKED);
}
int current = SimulatorConfig::sharedDefaults()->checkScreenSize(m_project.getFrameSize());
for (int i = SimulatorConfig::sharedDefaults()->getScreenSizeCount() - 1; i >= 0; --i)
{
CheckMenuItem(viewMenu, i, MF_BYPOSITION | (i == current ? MF_CHECKED : MF_UNCHECKED));
}
}
void App::relaunch(void)
{
string commandLine = m_project.makeCommandLine(kProjectConfigAll);
TCHAR moduleName[MAX_PATH];
ZeroMemory(moduleName, sizeof(moduleName));
GetModuleFileName(NULL, moduleName, MAX_PATH);
wstring ws;
ws.append(L"\"");
ws.append(moduleName);
ws.append(L"\" ");
ws.append(commandLine.begin(), commandLine.end());
STARTUPINFO si = {0};
PROCESS_INFORMATION pi = {0};
lstrcpyW(moduleName, ws.c_str());
if (CreateProcess(NULL, moduleName, NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi))
{
ExitProcess(0);
}
}
void App::writeDebugLog(const char *log)
{
if (!m_writeDebugLogFile) return;
fputs(log, m_writeDebugLogFile);
fputc('\n', m_writeDebugLogFile);
fflush(m_writeDebugLogFile);
}
// menu callback
void App::onFileRelaunch(void)
{
relaunch();
}
void App::onFileExit(void)
{
DestroyWindow(m_hwnd);
}
void App::onViewChangeFrameSize(int viewMenuID)
{
int index = viewMenuID - ID_VIEW_SIZE;
if (index >= 0 && index < SimulatorConfig::sharedDefaults()->getScreenSizeCount())
{
SimulatorScreenSize size = SimulatorConfig::sharedDefaults()->getScreenSize(index);
bool isLandscape = m_project.isLandscapeFrame();
m_project.setFrameSize(CCSize(size.width, size.height));
if (isLandscape)
{
m_project.changeFrameOrientationToLandscape();
}
else
{
m_project.changeFrameOrientationToPortait();
}
m_project.setFrameScale(1.0f);
relaunch();
}
}
void App::onViewChangeOrientation(int viewMenuID)
{
bool isLandscape = m_project.isLandscapeFrame();
bool isNeedRelaunch = false;
if (viewMenuID == ID_VIEW_PORTRAIT && isLandscape)
{
m_project.changeFrameOrientationToPortait();
isNeedRelaunch = true;
}
else if (viewMenuID == ID_VIEW_LANDSCAPE && !isLandscape)
{
m_project.changeFrameOrientationToLandscape();
isNeedRelaunch = true;
}
if (isNeedRelaunch) relaunch();
}
void App::onViewChangeZoom(int scaleMode)
{
float scale = 1.0f;
if (scaleMode == ID_VIEW_ZOOM_OUT)
{
scale = 0.5f;
}
m_project.setFrameScale(scale);
CCEGLView::sharedOpenGLView()->setFrameZoomFactor(scale);
CCEGLView::sharedOpenGLView()->resize(m_project.getFrameSize().width * scale,
m_project.getFrameSize().height * scale);
updateMenu();
}
// windows callback
LRESULT App::WindowProc(UINT message, WPARAM wParam, LPARAM lParam, BOOL* pProcessed)
{
int wmId, wmEvent;
App *host = App::sharedInstance();
HWND hwnd = host->getWindowHandle();
switch (message)
{
case WM_COMMAND:
wmId = LOWORD(wParam);
wmEvent = HIWORD(wParam);
switch (wmId)
{
case ID_FILE_RELAUNCH:
host->onFileRelaunch();
break;
case ID_FILE_EXIT:
host->onFileExit();
break;
case ID_VIEW_PORTRAIT:
case ID_VIEW_LANDSCAPE:
host->onViewChangeOrientation(wmId);
break;
case ID_VIEW_RESET_ZOOM:
case ID_VIEW_ZOOM_OUT:
host->onViewChangeZoom(wmId);
break;
default:
if (wmId >= ID_VIEW_SIZE && wmId <= ID_VIEW_SIZE + SimulatorConfig::sharedDefaults()->getScreenSizeCount() - 1)
{
host->onViewChangeFrameSize(wmId);
break;
}
return 0;
}
break;
case WM_KEYDOWN:
if (wParam == VK_F5)
{
host->onFileRelaunch();
}
break;
case WM_COPYDATA:
{
PCOPYDATASTRUCT pMyCDS = (PCOPYDATASTRUCT) lParam;
if (pMyCDS->dwData == CCLOG_STRING)
{
const char *szBuf = (const char*)(pMyCDS->lpData);
sharedInstance()->writeDebugLog(szBuf);
break;
}
}
default:
return 0;
}
*pProcessed = TRUE;
return 0;
}
================================================
FILE: 源代码/2.2.5/mir9/proj.win32/app.h
================================================
#pragma once
#include "resource.h"
// C RunTime Header Files
#include "CCStdC.h"
#include <string>
#include "cocos2d.h"
#include "AppDelegate.h"
#include "ProjectConfig/SimulatorConfig.h"
using namespace std;
using namespace cocos2d;
class CC_DLL App : public CCObject
{
public:
static int createAndRun(void);
AppDelegate *getApp(void) {
return m_app;
}
HWND getWindowHandle(void) {
return m_hwnd;
}
private:
static App *s_sharedInstance;
static App *sharedInstance(void);
static void purgeSharedInstance(void);
App(void);
AppDelegate *m_app;
ProjectConfig m_project;
HWND m_hwnd;
BOOL m_exit;
FILE *m_writeDebugLogFile;
int run(void);
void loadProjectConfig(void);
void createViewMenu(void);
void updateMenu(void);
void relaunch(void);
// debug log
void writeDebugLog(const char *log);
// menu callback
void onFileRelaunch(void);
void onFileExit(void);
void onViewChangeFrameSize(int viewMenuID);
void onViewChangeOrientation(int viewMenuID);
void onViewChangeZoom(int scaleMode);
// windows callback
static LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam, BOOL *pProcessed);
};
================================================
FILE: 源代码/2.2.5/mir9/proj.win32/mir9.sln
================================================
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mir9", "mir9.vcxproj", "{71666DE3-D772-41E9-8624-8881686C7AED}"
ProjectSection(ProjectDependencies) = postProject
{9E05AA4B-1A09-433C-B1DF-BCE6675EC0D5} = {9E05AA4B-1A09-433C-B1DF-BCE6675EC0D5}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cocos2dx_2012", "%QUICK_COCOS2DX_ROOT%\lib\proj.win32\cocos2dx_2012.vcxproj", "{9E05AA4B-1A09-433C-B1DF-BCE6675EC0D5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{71666DE3-D772-41E9-8624-8881686C7AED}.Debug|Win32.ActiveCfg = Debug|Win32
{71666DE3-D772-41E9-8624-8881686C7AED}.Debug|Win32.Build.0 = Debug|Win32
{71666DE3-D772-41E9-8624-8881686C7AED}.Release|Win32.ActiveCfg = Release|Win32
{71666DE3-D772-41E9-8624-8881686C7AED}.Release|Win32.Build.0 = Release|Win32
{9E05AA4B-1A09-433C-B1DF-BCE6675EC0D5}.Debug|Win32.ActiveCfg = Debug|Win32
{9E05AA4B-1A09-433C-B1DF-BCE6675EC0D5}.Debug|Win32.Build.0 = Debug|Win32
{9E05AA4B-1A09-433C-B1DF-BCE6675EC0D5}.Release|Win32.ActiveCfg = Release|Win32
{9E05AA4B-1A09-433C-B1DF-BCE6675EC0D5}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
================================================
FILE: 源代码/2.2.5/mir9/proj.win32/mir9.vcxproj
================================================
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\sources\AppDelegate.cpp" />
<ClCompile Include="app.cpp" />
<ClCompile Include="stdafx.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\sources\AppDelegate.h" />
<ClInclude Include="app.h" />
<ClInclude Include="resource.h" />
<ClInclude Include="stdafx.h" />
<ClInclude Include="targetver.h" />
</ItemGroup>
<ItemGroup>
<Image Include="app.ico" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="app.rc" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{71666DE3-D772-41E9-8624-8881686C7AED}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>mir9</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v110_xp</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<UseOfAtl>false</UseOfAtl>
<UseOfMfc>false</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v110_xp</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<TargetName>mir9</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<TargetName>mir9</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_LUA_ENGINE_ENABLED=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\include;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\kazmath\include;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\support;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\support\tinyxml2;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\win32;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\curl;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\iconv;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\libjpeg;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\libpng;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\libtiff;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\libwebp;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\OGLES;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\pthread;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\zlib;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\CocosDenshion\include;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\CocosDenshion\win32;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\cocos2dx_support;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\tolua;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\luajit\include;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\lua_extensions;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\lua_extensions\cjson;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\lua_extensions\filesystem;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\lua_extensions\lpack;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\lua_extensions\socket;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\lua_extensions\zlib;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\GUI\CCControlExtension;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\GUI\CCEditBox;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\GUI\CCScrollView;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\AssetsManager;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CCBReader;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\network;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Action;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Armature;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Armature\animation;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Armature\datas;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Armature\display;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Armature\external_tool;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Armature\utils;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Components;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\GUI;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Json;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Reader;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\libwebsockets\win32\include;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\libwebsockets\win32\include\win32helpers;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\chipmunk\include;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\chipmunk\luabinding;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\chipmunk\cocos2dx_support;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\luaproxy;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\luaproxy\tolua;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\luaproxy\ui;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\extra;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\extra\crypto;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\extra\luabinding;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\extra\native;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\extra\network;$(ProjectDir)..\sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4068;4267;4251;4244;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<MinimalRebuild>false</MinimalRebuild>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>cocos2dx.lib;opengl32.lib;ws2_32.lib;wsock32.lib;pthreadVCE2.lib;lua51.lib;winmm.lib;glew32.lib;libcurl_imp.lib;libiconv.lib;libjpeg.lib;libpng.lib;libtiff.lib;libzlib.lib;libwebp.lib;websockets.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>.\$(Configuration);$(QUICK_COCOS2DX_ROOT)\lib\luajit2\proj.win32;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\libraries;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\libwebsockets\win32\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
<PostBuildEvent>
<Command>
</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;CC_LUA_ENGINE_ENABLED=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\include;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\kazmath\include;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\support;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\support\tinyxml2;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\win32;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\curl;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\iconv;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\libjpeg;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\libpng;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\libtiff;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\libwebp;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\OGLES;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\pthread;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\zlib;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\CocosDenshion\include;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\CocosDenshion\win32;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\cocos2dx_support;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\tolua;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\luajit\include;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\lua_extensions;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\lua_extensions\cjson;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\lua_extensions\filesystem;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\lua_extensions\lpack;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\lua_extensions\socket;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\scripting\lua\lua_extensions\zlib;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\GUI\CCControlExtension;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\GUI\CCEditBox;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\GUI\CCScrollView;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\AssetsManager;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CCBReader;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\network;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Action;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Armature;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Armature\animation;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Armature\datas;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Armature\display;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Armature\external_tool;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Armature\utils;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Components;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\GUI;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Json;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\extensions\CocoStudio\Reader;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\libwebsockets\win32\include;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\libwebsockets\win32\include\win32helpers;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\chipmunk\include;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\chipmunk\luabinding;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\chipmunk\cocos2dx_support;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\luaproxy;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\luaproxy\tolua;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\luaproxy\ui;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\extra;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\extra\crypto;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\extra\luabinding;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\extra\native;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\extra\network;$(ProjectDir)..\sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4068;4267;4251;4244;%(DisableSpecificWarnings)</DisableSpecificWarnings>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalDependencies>cocos2dx.lib;opengl32.lib;ws2_32.lib;wsock32.lib;pthreadVCE2.lib;lua51.lib;winmm.lib;glew32.lib;libcurl_imp.lib;libiconv.lib;libjpeg.lib;libpng.lib;libtiff.lib;libzlib.lib;libwebp.lib;websockets.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>.\$(Configuration);$(QUICK_COCOS2DX_ROOT)\lib\luajit2\proj.win32;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\cocos2dx\platform\third_party\win32\libraries;$(QUICK_COCOS2DX_ROOT)\lib\cocos2d-x\external\libwebsockets\win32\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
================================================
FILE: 源代码/2.2.5/mir9/proj.win32/mir9.vcxproj.filters
================================================
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="sources">
<UniqueIdentifier>{da35f943-2f62-4dbf-bd58-91a522b39592}</UniqueIdentifier>
</Filter>
<Filter Include="win32">
<UniqueIdentifier>{54d36d2c-b373-4c65-962b-76ff1fedc28b}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="stdafx.cpp">
<Filter>win32</Filter>
</ClCompile>
<ClCompile Include="..\sources\AppDelegate.cpp">
<Filter>sources</Filter>
</ClCompile>
<ClCompile Include="app.cpp">
<Filter>win32</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="resource.h">
<Filter>win32</Filter>
</ClInclude>
<ClInclude Include="stdafx.h">
<Filter>win32</Filter>
</ClInclude>
<ClInclude Include="targetver.h">
<Filter>win32</Filter>
</ClInclude>
<ClInclude Include="..\sources\AppDelegate.h">
<Filter>sources</Filter>
</ClInclude>
<ClInclude Include="app.h">
<Filter>win32</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="app.ico">
<Filter>win32</Filter>
</Image>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="app.rc">
<Filter>win32</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
================================================
FILE: 源代码/2.2.5/mir9/proj.win32/stdafx.cpp
================================================
#include "stdafx.h"
================================================
FILE: 源代码/2.2.5/mir9/proj.win32/stdafx.h
================================================
#pragma once
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files
#include <windows.h>
// C RunTime Header Files
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
================================================
FILE: 源代码/2.2.5/mir9/proj.win32/targetver.h
================================================
#pragma once
#include <SDKDDKVer.h>
================================================
FILE: 源代码/2.2.5/mir9/run-mac.sh
================================================
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BIN="$DIR/proj.mac/bin/mir9.app/Contents/MacOS/mir9"
if [ ! -f $BIN ]; then
echo "PLEASE BUILD proj.mac/mir9.xcodeproj FIRST"
exit
fi
ARG="-relaunch-off -quick $QUICK_COCOS2DX_ROOT -workdir $DIR"
SIZE="-portrait"
CMD="$BIN $ARG $SIZE"
until $CMD; do
echo ""
echo "------------------------------------------------------"
echo ""
echo ""
echo ""
done
================================================
FILE: 源代码/2.2.5/mir9/run-win.bat
================================================
@echo off
E:\Demo\cocos2d-x\quick-cocos2d-x-2.2.5\player\win\player.exe -workdir E:\Demo\cocos2d-x\quick-cocos2d-x-2.2.5\projects\mir9 -file scripts\main.lua -size 960x640
================================================
FILE: 源代码/2.2.5/mir9/scripts/app/GameSocket.lua
================================================
local PlayerController = require("app.figure.PlayerController")
local GameSocket = class("GameSocket")
function GameSocket.sendRoleCreate(node, roleID, nickName)
local _playerController = PlayerController.sharePlayerController()
_playerController.m_playerNumber = roleID
_playerController.m_weaponsNumber = 1000
_playerController.m_playerName = nickName
node:joinGame()
end
function GameSocket.attackGroup(one, two, skillNumber)
if ((not one) or (type(two) ~= "table") or (#two <= 0)) then
return
end
local hurt = one:getTheAttack()
if (skillNumber == 2005) then
hurt = hurt * 15
end
local r = math.random()
hurt = hurt + math.floor((hurt/10) * r) - hurt/20
for i = 1, #two do
if (two[i]:getBlood() <= 0) then
else
local blood = two[i]:getBlood() - hurt
blood = math.max(blood, 0)
two[i]:addAgainstMe(one, blood)
end
end
end
function GameSocket.attack(one, two, skillNumber)
if (not one or not two) then
return
end
if (two:getBlood() <= 0) then
return
end
local hurt = one:getTheAttack()
if (skillNumber == 1020) then
hurt = hurt * 1.5
end
hurt = hurt + (math.floor((hurt/10) * math.random()) - hurt/20)
local blood = two:getBlood() - hurt
blood = math.max(blood, 0)
two:addAgainstMe(one, blood)
end
return GameSocket
================================================
FILE: 源代码/2.2.5/mir9/scripts/app/MyApp.lua
================================================
require("config")
require("framework.init")
local MyApp = class("MyApp", cc.mvc.AppBase)
function MyApp:ctor()
MyApp.super.ctor(self)
end
function MyApp:run()
math.randomseed(os.clock()*1000)
CCFileUtils:sharedFileUtils():addSearchPath("res/")
self:enterScene("LoginScene")
end
return MyApp
================================================
FILE: 源代码/2.2.5/mir9/scripts/app/figure/Enemy.lua
================================================
local scheduler = require("framework.scheduler")
local MapPoint = require("app.map.MapPoint")
local Monomer = require("app.figure.Monomer")
local FlutteringFairy = require("app.game_ui.FlutteringFairy")
-- 敌人类
local Enemy = class("Enemy", Monomer)
function Enemy:ctor(enemyID, roleNumber, weaponNumber)
Enemy.super.ctor(self)
self.m_enemyID = enemyID
self.m_denPos = MapPoint.new(0, 0)
self.m_isActive = true
self:initWithEnemy(roleNumber, weaponNumber)
end
function Enemy:initWithEnemy(roleNumber, weaponNumber)
self.m_fReactionInterval = 1.0
self:setVisualRange(10)
self:setFigure(TexturePathType.Monster, roleNumber)
self:setWeapon(weaponNumber)
return true
end
function Enemy:onEnter()
Enemy.super.onEnter(self)
local mpoint = MapPoint.new(cc.p(self:getPosition()))
g_mainScene:insterMapPoint(self, mpoint)
end
function Enemy:onExit()
Enemy.super.onExit(self)
self:stopAllActions()
self:killTimer_Patrol()
end
-- 启动计时器
function Enemy:setTimer_Patrol(fTime)
self:killTimer_Patrol()
self.hPatrol = scheduler.scheduleGlobal(handler(self, self.patrol), fTime)
end
-- 关闭计时器
function Enemy:killTimer_Patrol()
if (self.hPatrol) then
scheduler.unscheduleGlobal(self.hPatrol)
self.hPatrol = nil
end
end
-- 显示人物
function Enemy:showFigure()
local point = cc.p(self:getPosition())
if (not g_mainScene:getCurrBgMap():getShowRect():containsPoint(point)) then
return
end
Enemy.super.showFigure(self)
end
-- 隐藏人物
function Enemy:hideFigure()
local point = cc.p(self:getPosition())
if (g_mainScene:getCurrBgMap():getHideRect():containsPoint(point)) then
return
end
Enemy.super.hideFigure(self)
end
-- 跑
function Enemy:runBy(mpoint)
local relust = Enemy.super.runBy(self, mpoint)
if (relust.fTime ~= 0) then
g_mainScene:insterMapPoint(self, relust.mpoint)
end
return relust
end
-- 走
function Enemy:walkBy(mpoint)
local relust = Enemy.super.walkBy(self, mpoint)
if (relust.fTime ~= 0) then
g_mainScene:insterMapPoint(self, relust.mpoint)
end
return relust
end
-- 去到指定点
function Enemy:goTo(mpoint)
g_mainScene:insterMapPoint(self, mpoint)
return Enemy.super.goTo(self, mpoint)
end
function Enemy:detectionOfEachOther()
Enemy.super.detectionOfEachOther(self)
self:detectionWhetherCounter()
end
-- 检测是否反击
function Enemy:detectionWhetherCounter()
if (not self.m_attackMonomerMajor) then
self:setAttackMonomerMajor(self:getAgainstMeOfFirst())
end
if (not self.m_attackMonomerMajor) then
self:patrol()
else
self:followAttackAndSetAttackMethods(self.m_attackMonomerMajor, self.m_attackSkillInfo.m_nNum)
end
end
function Enemy:followAttack()
self:killTimer_Patrol()
Enemy.super.followAttack(self)
end
function Enemy:followTheTracks()
local mpoint = self.m_attackMonomerMajor:ownAttackPoint(self, self.m_attackSkillInfo.m_attackDistance)
if (mpoint:equalsObj(MapPoint.new(cc.p(0, 0)))) then
return
end
mpoint = MapPoint.sub(mpoint, MapPoint.new(cc.p(self:getPosition())))
local relust = self:walkBy(mpoint)
local fTime = self.m_fReactionInterval + relust.fTime
self:delayCallBack(fTime, handler(self, self.followAttack)):setTag(TAG_FOLLOWATTACK)
end
-- 超出可视范围
function Enemy:beyondVisualRange()
self.m_attackMonomerMajor:removeAgainstMe(self)
self:patrol()
Enemy.super.beyondVisualRange(self)
end
-- 隔一段时间走动一下
function Enemy:patrol(fDelay)
self:killTimer_Patrol()
if (self.m_isCanMoved == false) then
return
end
local symbol = math.floor(2 * math.random())
local arcX = math.floor(10 * math.random())
local arcY = math.floor(10 * math.random())
local mpoint = MapPoint.new(self.m_denPos.x+arcX*symbol, self.m_denPos.z+arcY*symbol)
local dirt = MapPoint.sub(mpoint, MapPoint.new(cc.p(self:getPosition())))
self:walkBy(dirt)
local fTime = math.floor(180 * math.random()) + 1
self:setTimer_Patrol(fTime)
end
function Enemy:moveByEnd()
Enemy.super.moveByEnd(self)
end
-- 死亡
function Enemy:death()
if (self:getState() == FigureState.Death) then
return
end
Enemy.super.death(self)
local delayTime1 = cc.DelayTime:create(0.3)
local delayTime2 = cc.DelayTime:create(0.3)
local delayTime3 = cc.DelayTime:create(6)
local fadeOut = cc.FadeOut:create(0.1)
local callFunc1 = cc.CallFunc:create(handler(self, self.addExp))
local callFunc2 = cc.CallFunc:create(handler(self, self.removeThis))
local callFunc3 = cc.CallFunc:create(handler(self, self.removeFromParent))
local array = CCArray:create()
array:addObject(delayTime1)
array:addObject(callFunc1)
array:addObject(delayTime2)
array:addObject(callFunc2)
array:addObject(delayTime3)
array:addObject(fadeOut)
array:addObject(callFunc3)
local sequence = cc.Sequence:create(array)
self.m_nMonomer:runAction(sequence)
end
function Enemy:addAgainstMe(monomer, blood)
Enemy.super.addAgainstMe(self, monomer, blood)
self:hurt()
end
function Enemy:addExp()
local fairy = FlutteringFairy.addFairy(self, cc.p(0, self:getContentSize().height*0.6), FairyType.AddExp, math.random()*20+990, handler(self, self.flutteringFairyFinish))
self:pushFlutteringFairy(fairy)
end
function Enemy:removeThis()
g_mainScene:removeEnemy(self)
if (self.bloodBg) then
self.bloodBg:removeFromParent()
self.bloodBg = nil
end
end
function Enemy:getRoleNumber()
return self.m_nCurRoleNum
end
-- 攻击
function Enemy:attacking()
Enemy.super.attacking(self)
end
-- 受到攻击
function Enemy:underAttack()
Enemy.super.underAttack(self)
if (self.m_nState == FigureState.Death) then
return
end
if (self.m_attackMonomerMajor) then
return
end
self:detectionWhetherCounter()
end
-- 设置人物状态
function Enemy:setFigureState(nState, nDirection)
Enemy.super.setFigureState(self, nState, nDirection)
end
function Enemy:getDenPos()
return self.m_denPos
end
function Enemy:setDenPos(mpoint)
self.m_denPos = mpoint
end
function Enemy:getEnemyID()
return self.m_enemyID
end
function Enemy:getActive()
return self.m_isActive
end
function Enemy:setActive(bActive)
self.m_isActive = bActive
end
return Enemy
================================================
FILE: 源代码/2.2.5/mir9/scripts/app/figure/Figure.lua
================================================
local TextureController = require("app.figure.TextureController")
local TAG_ANIMATE = 0xfffff0
-- 人物方向
FigureDirection = {
Up = 8, -- 上
LeftAndUp = 7, -- 左上
Left = 6, -- 左
LeftAndDown = 5, -- 左下
Down = 4, -- 下
RightAndDown = 3, -- 右下
Right = 2, -- 右
RightAndUp = 1, -- 右上
None = 0
}
-- 人物状态
FigureState = {
Death = 7, -- 死亡
Hurt = 6, -- 伤害
Caster = 5, -- 投掷
Attack = 4, -- 攻击
Run = 3, -- 跑
Walk = 2, -- 走
Stand = 1,
None = 0
}
-- 人物类
local Figure = class("Figure", function()
return display.newSprite()
end)
function Figure:ctor(nType, nFigureNum)
self.m_nState = FigureState.Stand
self.m_nDirection = FigureDirection.Down
self.m_nFrameRate = 0.5
self.m_nTexturePathType = nType
self.m_nFigureNum = math.floor(nFigureNum)
self.m_nHairNum = 0
self.m_nWeaponNum = 0
self.m_spHair = nil
self.m_spWeapon = nil
self.m_pDelegate = nil
TextureController.addSpriteFrames(self.m_nTexturePathType, self.m_nFigureNum, handler(self, self.updateFigure))
local point = cc.PointMult(cc.p(256, 256), 0.8)
self:setContentSize(point.x, point.y)
end
-- 设置头发
function Figure:setHair(nHairNum)
nHairNum = math.floor(nHairNum)
if (self.m_spHair ~= nil) then
self.m_spHair:removeFromParent()
TextureController.subSpriteFrames(TexturePathType.Hair, self.m_nHairNum)
self.m_spHair = nil
self.m_nHairNum = 0
end
if (self.m_nTexturePathType == TexturePathType.Monster) then
return
end
self.m_nHairNum = nHairNum * 10 + self.m_nFigureNum % 10
if (0 == self.m_nHairNum) then
return
end
TextureController.addSpriteFrames(TexturePathType.Hair, self.m_nHairNum, handler(self, self.updateFigure))
self.m_spHair = CCSprite:create()
self.m_spHair:setPosition(128*0.8, 128*0.8)
self:addChild(self.m_spHair, 1, 999)
end
-- 设置武器
function Figure:setWeapon(nWeaponNum)
if (self.m_spWeapon ~= nil) then
self.m_spWeapon:removeFromParent()
TextureController.subSpriteFrames(TexturePathType.Weapon, self.m_nWeaponNum)
self.m_spWeapon = nil
self.m_nWeaponNum = 0
end
if (self.m_nTexturePathType == TexturePathType.Monster) then
return
end
self.m_nWeaponNum = nWeaponNum
if (0 == self.m_nWeaponNum) then
return
end
TextureController.addSpriteFrames(TexturePathType.Weapon, self.m_nWeaponNum, handler(self, self.updateFigure))
self.m_spWeapon = CCSprite:create()
self.m_spWeapon:setPosition(128*0.8, 128*0.8)
self:addChild(self.m_spWeapon, 0, 888)
end
-- 设置状态和方向
function Figure:setFigureState(nState, nDirection)
local bIsChange = false
if (nState and nState ~= FigureState.None and nState ~= self.m_nState) then
self.m_nState = nState
bIsChange = true
end
if (nDirection and nDirection ~= FigureDirection.None and nDirection ~= self.m_nDirection) then
self.m_nDirection = nDirection
bIsChange = true
end
if (bIsChange) then
self:updateFigure()
end
end
local function getFrameRate(nState, nType)
local nFrameRate = 0
if (nType == TexturePathType.Figure) then
if (nState == FigureState.Stand) then
nFrameRate = 1/3.0
elseif (nState == FigureState.Walk) then
nFrameRate = 0.6/16.0
elseif (nState == FigureState.Run) then
nFrameRate = 0.6/16.0
elseif (nState == FigureState.Attack) then
nFrameRate = 1/8.0
elseif (nState == FigureState.Caster) then
nFrameRate = 1/8.0
elseif (nState == FigureState.Hurt) then
nFrameRate = 1/8.0
elseif (nState == FigureState.Death) then
nFrameRate = 1/4.0
end
end
if (nType == TexturePathType.Monster) then
if (nState == FigureState.Stand) then
nFrameRate = 1/5.0
elseif (nState == FigureState.Walk) then
nFrameRate = 0.6/8.0
elseif (nState == FigureState.Run) then
nFrameRate = 0.6/8.0
elseif (nState == FigureState.Attack) then
nFrameRate = 1/8.0
elseif (nState == FigureState.Caster) then
nFrameRate = 1/8.0
elseif (nState == FigureState.Hurt) then
nFrameRate = 1/8.0
elseif (nState == FigureState.Death) then
nFrameRate = 1/8.0
end
end
return nFrameRate
end
-- 更新人物状态
function Figure:updateFigure()
self.m_nFrameRate = getFrameRate(self.m_nState, self.m_nTexturePathType)
if (self.m_nDirection == FigureDirection.Left or
self.m_nDirection == FigureDirection.LeftAndUp or
self.m_nDirection == FigureDirection.LeftAndDown) then
self:setRotationY(180)
else
self:setRotationY(0)
end
if (self.m_spWeapon) then
if (self.m_nDirection == FigureDirection.Up) then
self.m_spWeapon:setZOrder(-1)
else
self.m_spWeapon:setZOrder(0)
end
end
self:runActions()
end
function Figure:runActions()
self:stopActionByTag(TAG_ANIMATE)
local figurePath = TextureController.getTexturePath(self.m_nTexturePathType, self.m_nFigureNum)
local animate = self:getRunActionsFromSprite(figurePath)
if (self.m_nState == FigureState.Attack) then
local delayTime = cc.DelayTime:create(animate:getDuration()/2)
local callFunc1 = cc.CallFunc:create(handler(self, self.attacking))
local callFunc2 = cc.CallFunc:create(handler(self, self.attackCompleted))
local array = CCArray:create()
array:addObject(delayTime)
array:addObject(callFunc1)
array:addObject(delayTime)
array:addObject(callFunc2)
self:runAction(cc.Sequence:create(array))
animate:setTag(TAG_ANIMATE)
self:runAction(animate)
elseif (self.m_nState == FigureState.Caster) then
local delayTime = cc.DelayTime:create(animate:getDuration()/2)
local callFunc1 = cc.CallFunc:create(handler(self, self.attacking))
local callFunc2 = cc.CallFunc:create(handler(self, self.attackCompleted))
local array = CCArray:create()
array:addObject(delayTime)
array:addObject(callFunc1)
array:addObject(delayTime)
array:addObject(callFunc2)
self:runAction(cc.Sequence:create(array))
animate:setTag(TAG_ANIMATE)
self:runAction(animate)
elseif (self.m_nState == FigureState.Hurt) then
local array = CCArray:create()
array:addObject(animate)
array:addObject(cc.CallFunc:create(handler(self, self.hurtCompleted)))
local sequence = cc.Sequence:create(array)
sequence:setTag(TAG_ANIMATE)
self:runAction(sequence)
elseif (self.m_nState == FigureState.Death) then
local array = CCArray:create()
array:addObject(animate)
array:addObject(cc.CallFunc:create(handler(self, self.deathCompleted)))
self:runAction(cc.Sequence:create(array))
else
local repeatForever = cc.RepeatForever:create(animate)
repeatForever:setTag(TAG_ANIMATE)
self:runAction(repeatForever)
end
if (self.m_spHair) then
self.m_spHair:stopAllActions()
local path = TextureController.getTexturePath(TexturePathType.Hair, self.m_nHairNum)
local animate = self:getRunActionsFromSprite(path)
if (self.m_nState > 3) then
self.m_spHair:runAction(animate)
else
self.m_spHair:runAction(cc.RepeatForever:create(animate))
end
end
if (self.m_spWeapon) then
self.m_spWeapon:stopAllActions()
local path = TextureController.getTexturePath(TexturePathType.Weapon, self.m_nWeaponNum)
if (self.m_nState == FigureState.Death) then
path = path .. string.sub(figurePath, -1)
else
path = path .. "0"
end
local animate = self:getRunActionsFromSprite(path)
if (self.m_nState > 3) then
self.m_spWeapon:runAction(animate)
else
self.m_spWeapon:runAction(cc.RepeatForever:create(animate))
end
end
end
function Figure:getRunActionsFromSprite(path)
local nDirection = self.m_nDirection
if (8 > nDirection and nDirection > 4) then
nDirection = 8 - nDirection
end
local flag = 0
local array = CCArray:createWithCapacity(8)
while (true) do
local frameName = string.format("%s_%d_%d_%02d.png", path, self.m_nState, nDirection, flag)
local frame = CCSpriteFrameCache:sharedSpriteFrameCache():spriteFrameByName(frameName)
if (not frame) then
break
end
array:addObject(frame)
flag = flag + 1
end
local animation = cc.Animation:createWithSpriteFrames(array, self.m_nFrameRate)
local animate = cc.Animate:create(animation)
return animate
end
function Figure:attacking()
if (self.m_pDelegate) then
self.m_pDelegate:attacking()
end
end
function Figure:attackCompleted()
if (self.m_pDelegate) then
self.m_pDelegate:attackCompleted()
end
end
function Figure:hurtCompleted()
if (self.m_pDelegate) then
self.m_pDelegate:underAttack()
end
end
function Figure:deathCompleted()
if (self.m_pDelegate) then
self.m_pDelegate:deathActionFinish()
end
end
function Figure:setDelegate(delegate)
self.m_pDelegate = delegate
end
-- 脚
function Figure:getAnchorPointWithFoot()
local x = self:getContentSize().width / 2 / self:getContentSize().width
local y = (self:getContentSize().height - 120) / self:getContentSize().height
return cc.p(x, y)
end
-- 手
function Figure:getAnchorPointWithHand()
local x = self:getContentSize().width / 2 / self:getContentSize().width
local y = (self:getContentSize().height - 64) / self:getContentSize().height
return cc.p(x, y)
end
function Figure:getAnchorPointCenter()
return cc.p(0.5, 0.5)
end
-- 设置透明度
function Figure:setOpacityEx(opacity)
self:setOpacity(opacity)
if (self.m_spHair) then
self.m_spHair:setOpacity(opacity)
end
if (self.m_spWeapon) then
self.m_spWeapon:setOpacity(opacity)
end
end
function Figure:getWeaponSprite()
return self.m_spWeapon
end
return Figure
================================================
FILE: 源代码/2.2.5/mir9/scripts/app/figure/Monomer.lua
================================================
local scheduler = require("framework.scheduler")
local Figure = require("app.figure.Figure")
local MapPoint = require("app.map.MapPoint")
local BgMap = require("app.map.BgMap")
local TextureController = require("app.figure.TextureController")
local AttackSkillSystem = require("app.skill_system.AttackSkillSystem")
local SkillEffectShow = require("app.skill_system.SkillEffectShow")
local FlutteringFairy = require("app.game_ui.FlutteringFairy")
TAG_MOVET = 0xfffff1
TAG_FOLLOWATTACK = 0xfffff2
TAG_COOLINGTIMEATTACK = 0xfffff3
TAG_MOVETWAIT = 0xfffff4
MoveInfo = class("MoveInfo")
function MoveInfo:ctor(fTime, mpoint, bIsCanNotFineTheWay)
self.fTime = fTime
self.mpoint = mpoint
self.bIsCanNotFineTheWay = bIsCanNotFineTheWay
end
local Monomer = class("Monomer", function()
return display.newSprite()
end)
function Monomer:ctor()
self.m_nMonomer = nil
self.m_nDirection = FigureDirection.Down
self.m_nState = FigureState.Stand
self.m_attackMonomerMajor = nil
self.m_againstMeSet = {}
self.m_attackTime = 0.5
self.m_fReactionInterval = 0
self.m_bIsCanMoved = true
self.m_runSpeed = 1
self.m_visualRange = 5
self.m_bIsCooling = false
self.m_attackSkillInfo = nil
self.m_blood = 0
self.m_magic = 0
self.m_pTheAttack = 0
self.m_nTexturePathType = TexturePathType.Figure
self.m_nCurRoleNum = 0
self.m_nCurHairNum = 0
self.m_nCurWeaponNum = 0
self.m_nCurEffectID = 0
self.hUpdateVertexZ = 0
self.m_mapAttackSkill = {}
self.m_flutteringFairyDeque = {}
self:addAttackSkill(1001)
self.m_attackSkillInfo = g_attackSkillSystem:getAttackSkillInfo(1001)
self:setNodeEventEnabled(true)
self:setScale(1.0)
end
function Monomer:onEnter()
self:showFigure()
end
function Monomer:onExit()
self:stopAllActions()
self:killTimer_UpdateVertexZ()
end
-- 设置人物
function Monomer:setFigure(nType, nRoleNum)
self.m_nTexturePathType = nType
self.m_nCurRoleNum = nRoleNum
if (self.m_nTexturePathType ~= TexturePathType.Figure) then
self.m_nCurWeaponNum = 0
end
if (self.m_nMonomer) then
self:hideFigure()
self:showFigure()
end
end
-- 设置头发
function Monomer:setHair(nHairNum)
if (self.m_nTexturePathType ~= TexturePathType.Figure) then
return
end
self.m_nCurHairNum = nHairNum
if (self.m_nMonomer) then
self.m_nMonomer:setHair(self.m_nCurHairNum)
end
end
-- 设置武器
function Monomer:setWeapon(nWeaponNum)
if (self.m_nTexturePathType ~= TexturePathType.Figure) then
return
end
self.m_nCurWeaponNum = nWeaponNum
if (self.m_nMonomer) then
self.m_nMonomer:setWeapon(self.m_nCurWeaponNum)
end
end
-- 显示人物
function Monomer:showFigure()
if (0 == self.m_nCurRoleNum) then
return
end
if (self.m_nMonomer) then
return
end
self.m_nMonomer = Figure.new(self.m_nTexturePathType, self.m_nCurRoleNum)
self:setContentSize(self.m_nMonomer:getContentSize())
self:setAnchorPoint(self.m_nMonomer:getAnchorPointWithFoot())
local size = self:getContentSize()
self.m_nMonomer:setPosition(size.width/2, size.height/2)
self:addChild(self.m_nMonomer)
self.m_nMonomer:setDelegate(self)
self.m_nMonomer:setHair(self.m_nCurHairNum)
self.m_nMonomer:setWeapon(self.m_nCurWeaponNum)
self.m_nMonomer:setFigureState(self.m_nState, self.m_nDirection)
local ptBlood = cc.p(size.width * self:getAnchorPoint().x, size.height * 0.8)
self.bloodBg = display.newSprite("blood_box.png")
self.bloodBg:setAnchorPoint(cc.p(0.5, 0.5))
self.bloodBg:setPosition(ptBlood)
self.bloodBg:setScale(0.3)
self:addChild(self.bloodBg)
self.bloodIn = display.newSprite("blood_in.png")
self.bloodIn:setAnchorPoint(cc.p(0, 0))
self.bloodBg:addChild(self.bloodIn)
end
-- 隐藏人物
function Monomer:hideFigure()
if (not self.m_nMonomer) then
return
end
self.m_nMonomer:removeFromParent()
self.m_nMonomer = nil
self.bloodBg:removeFromParent()
end
-- 设置人物状态
function Monomer:setFigureState(nState, nDirection)
if (self.m_nState == FigureState.Death) then
return
end
if (nState ~= FigureState.None) then
self.m_nState = nState
end
if (nDirection ~= FigureDirection.None) then
self.m_nDirection = nDirection
end
if (self.m_nMonomer) then
self.m_nMonomer:setFigureState(nState, nDirection)
end
end
-- 脚
function Monomer:getHandPointRelativeFootOffset()
local anchorPoint
if (self.m_nMonomer) then
anchorPoint = cc.PointSub(self.m_nMonomer:getAnchorPointWithHand(), cc.p(self:getAnchorPoint()))
else
anchorPoint = cc.p(0.5, 0.5)
end
local szContent = self:getContentSize()
return cc.p(szContent.width * anchorPoint.x, szContent.height * anchorPoint.y)
end
-- 手
function Monomer:getHandPoint()
local handRelativeFoot = self:getHandPointRelativeFootOffset()
local point = cc.p(self:getPosition())
return cc.PointAdd(point, handRelativeFoot)
end
function Monomer:getHurtPointRelativeFootOffset()
local anchorPoint
if (self.m_nMonomer) then
anchorPoint = cc.PointSub(self.m_nMonomer:getAnchorPointCenter(), cc.p(self:getAnchorPoint()))
else
anchorPoint = cc.p(0.5, 0.5)
end
local szContent = self:getContentSize()
return cc.p(szContent.width * anchorPoint.x, szContent.height * anchorPoint.y)
end
function Monomer:getHurtPoint()
local hurtRelativeFoot = self:getHurtPointRelativeFootOffset()
local point = cc.p(self:getPosition())
return cc.PointAdd(point, hurtRelativeFoot)
end
function Monomer:getAgainstMeOfFirst()
if (#self.m_againstMeSet <= 0) then
return nil
end
return self.m_againstMeSet[1]
end
function Monomer:getRect()
local ptPos = cc.p(self:getPosition())
local szContent = self:getContentSize()
local ptAnchor = self:getAnchorPoint()
local off_x = szContent.width * 0.4
local off_y = szContent.height * ptAnchor.y * 0.5
local width = szContent.width * 0.3
local height = szContent.height * 0.6
local rect = cc.rect(0,0,0,0)
rect.origin = cc.p(off_x, off_y)
rect.size = cc.size(width, height)
local x = szContent.width * ptAnchor.x
local y = szContent.height * ptAnchor.y
local point = cc.p(x, y)
point = cc.PointSub(ptPos, point)
local relustRect = rect
relustRect.origin = cc.PointAdd(point, rect.origin)
return relustRect
end
function Monomer:getAlphaWithPoint(point)
return 0
end
-- 走到左面
function Monomer:walkLeft()
self:setFigureState(FigureState.Walk, FigureDirection.Left)
end
-- 走到右面
function Monomer:walkRight()
self:setFigureState(FigureState.Walk, FigureDirection.Right)
end
-- 走到上面
function Monomer:walkUp()
self:setFigureState(FigureState.Walk, FigureDirection.Up)
end
-- 走到下面
function Monomer:walkDown()
self:setFigureState(FigureState.Walk, FigureDirection.Down)
end
-- 走到左上
function Monomer:walkLeftAndUp()
self:setFigureState(FigureState.Walk, FigureDirection.LeftAndUp)
end
-- 走到右上
function Monomer:walkRightAndUp()
self:setFigureState(FigureState.Walk, FigureDirection.RightAndUp)
end
-- 走到右下
function Monomer:walkRightAndDown()
self:setFigureState(FigureState.Walk, FigureDirection.RightAndDown)
end
-- 走到左下
function Monomer:walkLeftAndDown()
self:setFigureState(FigureState.Walk, FigureDirection.LeftAndDown)
end
-- 跑到左面
function Monomer:runLeft()
self:setFigureState(FigureState.Run, FigureDirection.Left)
end
-- 跑到右面
function Monomer:runRight()
self:setFigureState(FigureState.Run, FigureDirection.Right)
end
-- 跑到上面
function Monomer:runUp()
self:setFigureState(FigureState.Run, FigureDirection.Up)
end
-- 跑到下面
function Monomer:runDown()
self:setFigureState(FigureState.Run, FigureDirection.Down)
end
-- 跑到左上
function Monomer:runLeftAndUp()
self:setFigureState(FigureState.Run, FigureDirection.LeftAndUp)
end
-- 跑到右上
function Monomer:runRightAndUp()
self:setFigureState(FigureState.Run, FigureDirection.RightAndUp)
end
-- 跑到右下
function Monomer:runRightAndDown()
self:setFigureState(FigureState.Run, FigureDirection.RightAndDown)
end
-- 跑到左下
function Monomer:runLeftAndDown()
self:setFigureState(FigureState.Run, FigureDirection.LeftAndDown)
end
function Monomer:stand()
self:setFigureState(FigureState.Stand, FigureDirection.None)
end
-- 伤害
function Monomer:hurt()
if (self:getState() ~= FigureState.Death) then
self:setFigureState(FigureState.Hurt, FigureDirection.None)
end
end
-- 死亡
function Monomer:death()
if (self:getState() ~= FigureState.Death) then
self.m_nMonomer:stopAllActions()
--self.m_nMonomer:unscheduleAllSelectors()
self:stopAllActions()
--self:unscheduleAllSelectors()
self:setFigureState(FigureState.Death, FigureDirection.None)
self:clearData()
end
end
function Monomer:playEffect(node, path)
if ((not node) or (not path) or (path == "")) then
return
end
local array = CCArray:createWithCapacity(64)
local flag = 4
while (true) do
local fileName = string.format("%s%04d.png", path, flag)
local spriteFrame = CCSpriteFrameCache:sharedSpriteFrameCache():spriteFrameByName(fileName)
if (not spriteFrame) then
break
end
array:addObject(spriteFrame)
flag = flag + 1
end
if (array:count() == 0) then
return
end
local sprite = CCSprite:createWithSpriteFrame(array:objectAtIndex(0))
local x = self:getContentSize().width * self:getAnchorPoint().x
local y = self:getContentSize().height * 0.65
sprite:setPosition(x, y)
node:addChild(sprite, 1000)
local animation = cc.Animation:createWithSpriteFrames(array, 1 / 32)
local animate = cc.Animate:create(animation)
local callFunc = cc.CallFunc:create(handler(sprite, sprite.removeFromParent))
local array = CCArray:create()
array:addObject(animate)
array:addObject(callFunc)
local sequence = cc.Sequence:create(array)
sprite:runAction(sequence)
end
-- 恢复血量
function Monomer:bloodReturn(fBlood)
local blood = math.min(self:getBlood() + fBlood, self:getBloodCap())
self:setBlood(blood)
self:updateBloodProgress()
local point = cc.p(0, self:getContentSize().height * 0.5)
local fairy = FlutteringFairy.addFairy(self, point, TypeAddBlood, fBlood, handler(self, self.flutteringFairyFinish))
self:pushFlutteringFairy(fairy)
self:playEffect(self, "addh-")
end
function Monomer:followAttack()
self:stopActionByTag(TAG_FOLLOWATTACK)
if (not self.m_attackMonomerMajor) then
self:beyondVisualRange()
return
end
if (self.m_attackMonomerMajor:getState() == FigureState.Death) then
self:beyondVisualRange()
return
end
if (self:isInTheAttackRange(self.m_attackMonomerMajor)) then -- 敌人在攻击范围内
self:attackEnemy()
elseif (self:isInTheFieldOfView(self.m_attackMonomerMajor)) then -- 敌人在可视范围内
self:followTheTracks()
else
self:beyondVisualRange()
end
end
function Monomer:followTheTracks()
local mpoint = self.m_attackMonomerMajor:ownAttackPoint(self, self.m_attackSkillInfo.m_attackDistance)
if (mpoint:equalsObj(MapPoint.new(0, 0))) then
return
end
local point = cc.p(self:getPosition())
local mpos = MapPoint.new(point)
mpoint = MapPoint.sub(mpoint, mpos)
local relust = self:runBy(mpoint)
if (relust.fTime == 0) then
return
end
local fTime = self.m_fReactionInterval + relust.fTime + 0.01
self:delayCallBack(fTime, handler(self, self.followAttack)):setTag(TAG_FOLLOWATTACK)
end
function Monomer:isInTheAttackRange(monomer)
local pos1 = cc.p(self:getPosition())
local pos2 = cc.p(monomer:getPosition())
local mpos1 = MapPoint.new(pos1)
local mpos2 = MapPoint.new(pos2)
local attackRange = self.m_attackSkillInfo.m_attackDistance
if (mpos1:getDistance(mpos2) > attackRange) then
return false
end
if (mpos1:equalsObj(mpos2)) then
return false
end
if (self:isMoveRunning()) then
return false
end
return true
end
function Monomer:isInTheFieldOfView(monomer)
local pos1 = cc.p(self:getPosition())
local pos2 = cc.p(monomer:getPosition())
local mpos1 = MapPoint.new(pos1)
local mpos2 = MapPoint.new(pos2)
if (mpos1:getDistance(mpos2) <= self.m_visualRange) then
return true
end
return false
end
function Monomer:beyondVisualRange()
self:setAttackMonomerMajor(nil)
end
function Monomer:clearData()
self.m_flutteringFairyDeque = {}
for i = 1, #self.m_againstMeSet do
local monomer = self.m_againstMeSet[i]
monomer:removeAttackMonomerMajor(self)
end
self.m_againstMeSet = {}
if (self.m_attackMonomerMajor) then
self.m_attackMonomerMajor:removeAgainstMe(self)
self:setAttackMonomerMajor(nil)
end
end
function Monomer:followAttackAndSetAttackMethods(otherEnemy, nAttackSkillNum)
if (nAttackSkillNum ~= 0) then
if (not self.m_mapAttackSkill[nAttackSkillNum]) then
return
end
self.m_attackSkillInfo = self.m_mapAttackSkill[nAttackSkillNum]
end
if (not otherEnemy) then
return
end
if (self:getState() == FigureState.Death) then
return
end
self:setAttackMonomerMajor(otherEnemy)
self:followAttack()
end
function Monomer:ownAttackPoint(monomer, attackRange)
local relust = MapPoint.new(0, 0)
local mpos1 = MapPoint.new(cc.p(self:getPosition()))
local mpos2 = MapPoint.new(cc.p(monomer:getPosition()))
local lenght = math.min(mpos1:getDistance(mpos2), attackRange)
if (attackRange == 1) then
relust = mpos1
else
local x = -lenght
local z = -lenght
local arrMPoint = {}
while (true) do
if (#arrMPoint == 8*lenght) then
break
end
table.insert(arrMPoint, MapPoint.new(x, z))
if (#arrMPoint <= 2*lenght) then
x = x + 1
elseif (2*lenght < #arrMPoint and #arrMPoint <= 4*lenght) then
z = z + 1
elseif (4*lenght < #arrMPoint and #arrMPoint <= 6*lenght) then
x = x - 1
elseif (6*lenght < #arrMPoint and #arrMPoint < 8*lenght) then
z = z - 1
end
end
local l = 0xffff
for i = 1, #arrMPoint do
local mpoint = MapPoint.add(mpos2, arrMPoint[i])
if ((not g_mainScene:isPointValid(mpoint)) or (mpoint:getDistance(mpos1) >= l)) then
else
relust = mpoint
l = mpoint:getDistance(mpos1)
end
end
end
return relust
end
--function Monomer:standAndWatch(MapPoint point)
--{
-- M_INT lenghtX = mapSub(point, MapPoint(m_obPosition)).x;
-- M_INT lenghtY = mapSub(point, MapPoint(m_obPosition)).z;
-- float lenght = sqrtf(pow(lenghtX, 2) + pow(lenghtY, 2));
-- float pointX = lenghtX / lenght;
-- float pointY = lenghtY / lenght;
-- float angle_X = acosf(pointX) * 180 / M_PI;
-- float angle_Y = acosf(pointY) * 180 / M_PI;
--
-- float angle = angle_X;
-- if (angle_Y > 90)
-- {
-- angle = 360 - angle_X;
-- }
--
-- FigureDirectionType dirType = this->getDirectionType(angle);
--
-- this->setFigureState(FStateStand, dirType);
--}
function Monomer:isMoveRunning()
local x, y = self:getPosition()
local pos = cc.p(x, y)
local mpos = MapPoint.new(pos)
return (cc.PointDistance(mpos:getCCPointValue(), pos) >= 5.0)
end
function Monomer:actionsWithPoint(startMPoint, endMPoint)
local callFunc = nil
local array = CCArray:create()
if (startMPoint:equalsObj(endMPoint)) then
return array
end
local lenghtX = endMPoint.x - startMPoint.x
local lenghtY = endMPoint.z - startMPoint.z
local lenght = math.sqrt(lenghtX * lenghtX + lenghtY * lenghtY)
local gridNumber = startMPoint:getDistance(endMPoint)
local fTime = 0.6 * startMPoint:getDistance(endMPoint) / self.m_runSpeed / gridNumber
local pointX = lenghtX / lenght
local pointY = lenghtY / lenght
local angle_X = math.acos(pointX) * 180 / math.pi
local angle_Y = math.acos(pointY) * 180 / math.pi
local angle = angle_X
if (angle_Y > 90) then
angle = 360 - angle_X
end
local nType = math.floor(((angle + 22.5) % 360 ) / 45.0)
if (lenght < 2) then
if (nType == 0) then
callFunc = cc.CallFunc:create(handler(self, self.walkRight))
elseif (nType == 1) then
callFunc = cc.CallFunc:create(handler(self, self.walkRightAndUp))
elseif (nType == 2) then
callFunc = cc.CallFunc:create(handler(self, self.walkUp))
elseif (nType == 3) then
callFunc = cc.CallFunc:create(handler(self, self.walkLeftAndUp))
elseif (nType == 4) then
callFunc = cc.CallFunc:create(handler(self, self.walkLeft))
elseif (nType == 5) then
callFunc = cc.CallFunc:create(handler(self, self.walkLeftAndDown))
elseif (nType == 6) then
callFunc = cc.CallFunc:create(handler(self, self.walkDown))
elseif (nType == 7) then
callFunc = cc.CallFunc:create(handler(self, self.walkRightAndDown))
end
else
if (nType == 0) then
callFunc = cc.CallFunc:create(handler(self, self.runRight))
elseif (nType == 1) then
callFunc = cc.CallFunc:create(handler(self, self.runRightAndUp))
elseif (nType == 2) then
callFunc = cc.CallFunc:create(handler(self, self.runUp))
elseif (nType == 3) then
callFunc = cc.CallFunc:create(handler(self, self.runLeftAndUp))
elseif (nType == 4) then
callFunc = cc.CallFunc:create(handler(self, self.runLeft))
elseif (nType == 5) then
callFunc = cc.CallFunc:create(handler(self, self.runLeftAndDown))
elseif (nType == 6) then
callFunc = cc.CallFunc:create(handler(self, self.runDown))
elseif (nType == 7) then
callFunc = cc.CallFunc:create(handler(self, self.runRightAndDown))
end
end
array:addObject(callFunc)
local moveTo = cc.MoveTo:create(fTime, endMPoint:getCCPointValue())
array:addObject(moveTo)
return array
end
function Monomer:actionsWithMoveTo(dequeMapPoint)
local array = CCArray:createWithCapacity(8)
if (#dequeMapPoint <= 1) then
return array
end
local callFunc1 = cc.CallFunc:create(handler(self, self.setTimer_UpdateVertexZ))
local callFunc2 = cc.CallFunc:create(handler(self, self.killTimer_UpdateVertexZ))
array:addObject(callFunc1)
for i = 2, #dequeMapPoint do
local startMPoint = dequeMapPoint[i-1]
local endMPoint = dequeMapPoint[i]
array:addObjectsFromArray(self:actionsWithPoint(startMPoint, endMPoint))
end
array:addObject(callFunc2)
return array
end
--
gitextract_n8c0ksdh/
├── README.md
├── 发布说明.txt
└── 源代码/
├── 2.2.5/
│ └── mir9/
│ ├── .buildpath
│ ├── .cocos-project.json
│ ├── .project
│ ├── .settings/
│ │ ├── org.eclipse.core.resources.prefs
│ │ └── version.json
│ ├── config.json
│ ├── proj.android/
│ │ ├── .classpath
│ │ ├── .project
│ │ ├── .settings/
│ │ │ └── org.eclipse.jdt.core.prefs
│ │ ├── AndroidManifest.xml
│ │ ├── build_native.bat
│ │ ├── build_native.sh
│ │ ├── clean.bat
│ │ ├── clean.sh
│ │ ├── gen/
│ │ │ └── com/
│ │ │ └── zym/
│ │ │ └── mir9/
│ │ │ ├── BuildConfig.java
│ │ │ └── R.java
│ │ ├── jni/
│ │ │ ├── Android.mk
│ │ │ ├── Application.mk
│ │ │ ├── hellocpp/
│ │ │ │ └── main.cpp
│ │ │ └── list.sh
│ │ ├── project.properties
│ │ ├── res/
│ │ │ └── values/
│ │ │ └── strings.xml
│ │ └── src/
│ │ └── com/
│ │ └── zym/
│ │ └── mir9/
│ │ └── Mir9.java
│ ├── proj.ios/
│ │ ├── AppController.h
│ │ ├── AppController.mm
│ │ ├── Resources/
│ │ │ └── Info.plist
│ │ ├── RootViewController.h
│ │ ├── RootViewController.mm
│ │ ├── main.m
│ │ └── mir9.xcodeproj/
│ │ └── project.pbxproj
│ ├── proj.mac/
│ │ ├── AppController.h
│ │ ├── AppController.mm
│ │ ├── Icon.icns
│ │ ├── Info.plist
│ │ ├── MainMenu.xib
│ │ ├── main.m
│ │ └── mir9.xcodeproj/
│ │ └── project.pbxproj
│ ├── proj.win32/
│ │ ├── app.cpp
│ │ ├── app.h
│ │ ├── app.rc
│ │ ├── mir9.sln
│ │ ├── mir9.v11.suo
│ │ ├── mir9.vcxproj
│ │ ├── mir9.vcxproj.filters
│ │ ├── resource.h
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ └── targetver.h
│ ├── run-mac.sh
│ ├── run-win.bat
│ ├── scripts/
│ │ ├── app/
│ │ │ ├── GameSocket.lua
│ │ │ ├── MyApp.lua
│ │ │ ├── figure/
│ │ │ │ ├── Enemy.lua
│ │ │ │ ├── Figure.lua
│ │ │ │ ├── Monomer.lua
│ │ │ │ ├── Player.lua
│ │ │ │ ├── PlayerController.lua
│ │ │ │ └── TextureController.lua
│ │ │ ├── game_ui/
│ │ │ │ ├── AttackEnemyInfo.lua
│ │ │ │ ├── CCTouchMouse.lua
│ │ │ │ ├── FlutteringFairy.lua
│ │ │ │ ├── GameInfoUIController.lua
│ │ │ │ ├── GameOptions.lua
│ │ │ │ ├── GameTabBarMenu.lua
│ │ │ │ ├── LAlertView.lua
│ │ │ │ ├── LOperationMenu.lua
│ │ │ │ ├── MapThumbnailLayer.lua
│ │ │ │ ├── ProgressAutomatic.lua
│ │ │ │ ├── PropColumn.lua
│ │ │ │ └── SkillTableView.lua
│ │ │ ├── map/
│ │ │ │ ├── AStarSearch.lua
│ │ │ │ ├── BgMap.lua
│ │ │ │ ├── BgMapFloorTile.lua
│ │ │ │ ├── MapPoint.lua
│ │ │ │ ├── NpcFigure.lua
│ │ │ │ ├── NpcInfo.lua
│ │ │ │ ├── NpcInfoSystem.lua
│ │ │ │ ├── PathAStar.lua
│ │ │ │ └── PortalSprite.lua
│ │ │ ├── prop_system/
│ │ │ │ ├── PropIconShow.lua
│ │ │ │ ├── PropInfo.lua
│ │ │ │ └── PropSystem.lua
│ │ │ ├── scenes/
│ │ │ │ ├── GameLoading.lua
│ │ │ │ ├── LoginScene.lua
│ │ │ │ ├── MainScene.lua
│ │ │ │ └── RoleSelScene.lua
│ │ │ └── skill_system/
│ │ │ ├── AttackSkillInfo.lua
│ │ │ ├── AttackSkillSystem.lua
│ │ │ └── SkillEffectShow.lua
│ │ ├── config.lua
│ │ └── main.lua
│ └── sources/
│ ├── AppDelegate.cpp
│ └── AppDelegate.h
└── mir9/
├── .project
├── config.json
├── frameworks/
│ └── runtime-src/
│ ├── Classes/
│ │ ├── AppDelegate.cpp
│ │ ├── AppDelegate.h
│ │ ├── CodeIDESupport.h
│ │ ├── ConfigParser.cpp
│ │ ├── ConfigParser.h
│ │ ├── VisibleRect.cpp
│ │ ├── VisibleRect.h
│ │ ├── anysdk_manual_bindings.cpp
│ │ ├── anysdk_manual_bindings.h
│ │ ├── anysdkbindings.cpp
│ │ ├── anysdkbindings.h
│ │ ├── lua_module_register.h
│ │ └── runtime/
│ │ ├── ConnectWaitLayer.cpp
│ │ ├── ConnectWaitLayer.h
│ │ ├── ConsoleCommand.cpp
│ │ ├── ConsoleCommand.h
│ │ ├── FileServer.cpp
│ │ ├── FileServer.h
│ │ ├── Landscape_png.cpp
│ │ ├── PlayDisable_png.cpp
│ │ ├── PlayEnable_png.cpp
│ │ ├── Portrait_png.cpp
│ │ ├── Protos.pb.cc
│ │ ├── Protos.pb.h
│ │ ├── ResData.h
│ │ ├── Runtime.cpp
│ │ ├── Runtime.h
│ │ ├── Shine_png.cpp
│ │ ├── lua_debugger.c
│ │ └── lua_debugger.h
│ ├── proj.android/
│ │ ├── AndroidManifest.xml
│ │ ├── ant.properties
│ │ ├── build-cfg.json
│ │ ├── build.xml
│ │ ├── build_apk.bat
│ │ ├── build_apk.sh
│ │ ├── build_native.bat
│ │ ├── build_native.sh
│ │ ├── build_native_release.bat
│ │ ├── build_native_release.sh
│ │ ├── clean.bat
│ │ ├── clean.sh
│ │ ├── gen/
│ │ │ └── com/
│ │ │ └── zym/
│ │ │ └── mir9/
│ │ │ └── R.java
│ │ ├── jni/
│ │ │ ├── Android.mk
│ │ │ ├── Application.mk
│ │ │ └── hellolua/
│ │ │ ├── Runtime_android.cpp
│ │ │ └── main.cpp
│ │ ├── libs/
│ │ │ └── libPluginProtocol.jar
│ │ ├── proguard-project.txt
│ │ ├── project.properties
│ │ ├── protocols/
│ │ │ ├── android/
│ │ │ │ ├── Android.mk
│ │ │ │ ├── PluginJavaData.h
│ │ │ │ ├── PluginJniHelper.h
│ │ │ │ ├── PluginJniMacros.h
│ │ │ │ ├── PluginUtils.h
│ │ │ │ ├── lib/
│ │ │ │ │ ├── armeabi/
│ │ │ │ │ │ └── libPluginProtocolStatic.a
│ │ │ │ │ ├── armeabi-v7a/
│ │ │ │ │ │ └── libPluginProtocolStatic.a
│ │ │ │ │ └── x86/
│ │ │ │ │ └── libPluginProtocolStatic.a
│ │ │ │ └── libPluginProtocol.jar
│ │ │ ├── include/
│ │ │ │ ├── AgentManager.h
│ │ │ │ ├── PluginFactory.h
│ │ │ │ ├── PluginManager.h
│ │ │ │ ├── PluginParam.h
│ │ │ │ ├── PluginProtocol.h
│ │ │ │ ├── ProtocolAds.h
│ │ │ │ ├── ProtocolAnalytics.h
│ │ │ │ ├── ProtocolIAP.h
│ │ │ │ ├── ProtocolPush.h
│ │ │ │ ├── ProtocolShare.h
│ │ │ │ ├── ProtocolSocial.h
│ │ │ │ └── ProtocolUser.h
│ │ │ └── res/
│ │ │ ├── layout/
│ │ │ │ ├── plugin_ads.xml
│ │ │ │ └── plugin_login.xml
│ │ │ └── values/
│ │ │ └── plugin_string.xml
│ │ ├── res/
│ │ │ ├── layout/
│ │ │ │ ├── plugin_ads.xml
│ │ │ │ └── plugin_login.xml
│ │ │ └── values/
│ │ │ ├── plugin_string.xml
│ │ │ └── strings.xml
│ │ └── src/
│ │ └── org/
│ │ └── cocos2dx/
│ │ ├── lib/
│ │ │ └── QuickHTTPInterface.java
│ │ └── lua/
│ │ └── AppActivity.java
│ ├── proj.android_no_anysdk/
│ │ ├── .classpath
│ │ ├── .project
│ │ ├── .settings/
│ │ │ └── org.eclipse.jdt.core.prefs
│ │ ├── AndroidManifest.xml
│ │ ├── ant.properties
│ │ ├── build-cfg.json
│ │ ├── build.xml
│ │ ├── build_apk.bat
│ │ ├── build_apk.sh
│ │ ├── build_native.bat
│ │ ├── build_native.sh
│ │ ├── build_native_release.bat
│ │ ├── build_native_release.sh
│ │ ├── clean.bat
│ │ ├── clean.sh
│ │ ├── gen/
│ │ │ └── com/
│ │ │ └── zym/
│ │ │ └── mir9/
│ │ │ ├── BuildConfig.java
│ │ │ └── R.java
│ │ ├── jni/
│ │ │ ├── Android.mk
│ │ │ ├── Application.mk
│ │ │ └── hellolua/
│ │ │ ├── Runtime_android.cpp
│ │ │ └── main.cpp
│ │ ├── keystore
│ │ ├── proguard-project.txt
│ │ ├── project.properties
│ │ ├── res/
│ │ │ └── values/
│ │ │ └── strings.xml
│ │ └── src/
│ │ └── org/
│ │ └── cocos2dx/
│ │ ├── lib/
│ │ │ └── QuickHTTPInterface.java
│ │ └── lua/
│ │ └── AppActivity.java
│ ├── proj.ios_mac/
│ │ ├── Runtime_ios-mac.mm
│ │ ├── ios/
│ │ │ ├── AppController.h
│ │ │ ├── AppController.mm
│ │ │ ├── Info.plist
│ │ │ ├── Prefix.pch
│ │ │ ├── RootViewController.h
│ │ │ ├── RootViewController.mm
│ │ │ ├── build-cfg.json
│ │ │ └── main.m
│ │ ├── mac/
│ │ │ ├── ConsoleWindow.xib
│ │ │ ├── ConsoleWindowController.h
│ │ │ ├── ConsoleWindowController.m
│ │ │ ├── Icon.icns
│ │ │ ├── Info.plist
│ │ │ ├── Prefix.pch
│ │ │ ├── SimulatorApp.h
│ │ │ ├── SimulatorApp.mm
│ │ │ ├── build-cfg.json
│ │ │ ├── en.lproj/
│ │ │ │ └── MainMenu.xib
│ │ │ └── main.m
│ │ └── mir9.xcodeproj/
│ │ └── project.pbxproj
│ ├── proj.win32/
│ │ ├── Runtime_win32.cpp
│ │ ├── SimulatorWindow.cpp
│ │ ├── SimulatorWindow.h
│ │ ├── build-cfg.json
│ │ ├── game.rc
│ │ ├── main.cpp
│ │ ├── main.h
│ │ ├── mir9.sln
│ │ ├── mir9.vcxproj
│ │ ├── mir9.vcxproj.filters
│ │ ├── mir9.vcxproj.user
│ │ └── resource.h
│ └── proj.wp8-xaml/
│ ├── App/
│ │ ├── App.xaml
│ │ ├── App.xaml.cs
│ │ ├── EditBox.xaml
│ │ ├── EditBox.xaml.cs
│ │ ├── LocalizedStrings.cs
│ │ ├── MainPage.xaml
│ │ ├── MainPage.xaml.cs
│ │ ├── Properties/
│ │ │ ├── AppManifest.xml
│ │ │ ├── AssemblyInfo.cs
│ │ │ └── WMAppManifest.xml
│ │ ├── Resources/
│ │ │ ├── AppResources.Designer.cs
│ │ │ └── AppResources.resx
│ │ └── mir9.csproj
│ ├── AppComponent/
│ │ ├── mir9Component.vcxproj
│ │ ├── mir9Component.vcxproj.filters
│ │ └── src/
│ │ ├── Cocos2dRenderer.cpp
│ │ ├── Cocos2dRenderer.h
│ │ ├── Direct3DContentProvider.cpp
│ │ ├── Direct3DContentProvider.h
│ │ ├── Direct3DInterop.cpp
│ │ ├── Direct3DInterop.h
│ │ ├── DirectXBase.cpp
│ │ ├── DirectXBase.h
│ │ ├── DirectXHelper.h
│ │ ├── EditBoxEvent.cpp
│ │ ├── EditBoxEvent.h
│ │ ├── pch.cpp
│ │ └── pch.h
│ └── mir9.sln
├── res/
│ └── README.txt
└── src/
├── app/
│ ├── GameSocket.lua
│ ├── MyApp.lua
│ ├── figure/
│ │ ├── Enemy.lua
│ │ ├── Figure.lua
│ │ ├── Monomer.lua
│ │ ├── Player.lua
│ │ ├── PlayerController.lua
│ │ └── TextureController.lua
│ ├── game_ui/
│ │ ├── AttackEnemyInfo.lua
│ │ ├── CCTouchMouse.lua
│ │ ├── FlutteringFairy.lua
│ │ ├── GameInfoUIController.lua
│ │ ├── GameOptions.lua
│ │ ├── GameTabBarMenu.lua
│ │ ├── LAlertView.lua
│ │ ├── LOperationMenu.lua
│ │ ├── MapThumbnailLayer.lua
│ │ ├── ProgressAutomatic.lua
│ │ ├── PropColumn.lua
│ │ └── SkillTableView.lua
│ ├── map/
│ │ ├── AStarSearch.lua
│ │ ├── BgMap.lua
│ │ ├── BgMapFloorTile.lua
│ │ ├── MapPoint.lua
│ │ ├── NpcFigure.lua
│ │ ├── NpcInfo.lua
│ │ ├── NpcInfoSystem.lua
│ │ ├── PathAStar.lua
│ │ └── PortalSprite.lua
│ ├── prop_system/
│ │ ├── PropIconShow.lua
│ │ ├── PropInfo.lua
│ │ └── PropSystem.lua
│ ├── scenes/
│ │ ├── GameLoading.lua
│ │ ├── LoginScene.lua
│ │ ├── MainScene.lua
│ │ └── RoleSelScene.lua
│ └── skill_system/
│ ├── AttackSkillInfo.lua
│ ├── AttackSkillSystem.lua
│ └── SkillEffectShow.lua
├── cocos/
│ ├── cocos2d/
│ │ ├── Cocos2d.lua
│ │ ├── Cocos2dConstants.lua
│ │ ├── DeprecatedCocos2dClass.lua
│ │ ├── DeprecatedCocos2dEnum.lua
│ │ ├── DeprecatedCocos2dFunc.lua
│ │ ├── DeprecatedOpenglEnum.lua
│ │ ├── DrawPrimitives.lua
│ │ ├── Opengl.lua
│ │ ├── OpenglConstants.lua
│ │ ├── bitExtend.lua
│ │ ├── extern.lua
│ │ ├── json.lua
│ │ ├── luaj.lua
│ │ └── luaoc.lua
│ ├── cocosbuilder/
│ │ ├── CCBReaderLoad.lua
│ │ └── DeprecatedCocosBuilderClass.lua
│ ├── cocosdenshion/
│ │ ├── AudioEngine.lua
│ │ ├── DeprecatedCocosDenshionClass.lua
│ │ └── DeprecatedCocosDenshionFunc.lua
│ ├── cocostudio/
│ │ ├── CocoStudio.lua
│ │ ├── DeprecatedCocoStudioClass.lua
│ │ ├── DeprecatedCocoStudioFunc.lua
│ │ └── StudioConstants.lua
│ ├── controller/
│ │ └── ControllerConstants.lua
│ ├── extension/
│ │ ├── DeprecatedExtensionClass.lua
│ │ ├── DeprecatedExtensionEnum.lua
│ │ ├── DeprecatedExtensionFunc.lua
│ │ └── ExtensionConstants.lua
│ ├── init.lua
│ ├── network/
│ │ ├── DeprecatedNetworkClass.lua
│ │ ├── DeprecatedNetworkEnum.lua
│ │ ├── DeprecatedNetworkFunc.lua
│ │ └── NetworkConstants.lua
│ ├── spine/
│ │ └── SpineConstants.lua
│ └── ui/
│ ├── DeprecatedUIEnum.lua
│ ├── DeprecatedUIFunc.lua
│ ├── GuiConstants.lua
│ └── experimentalUIConstants.lua
├── config.lua
├── framework/
│ ├── anysdkConst.lua
│ ├── audio.lua
│ ├── cc/
│ │ ├── EventProxy.lua
│ │ ├── GameObject.lua
│ │ ├── Registry.lua
│ │ ├── components/
│ │ │ ├── Component.lua
│ │ │ ├── behavior/
│ │ │ │ ├── EventProtocol.lua
│ │ │ │ └── StateMachine.lua
│ │ │ └── ui/
│ │ │ ├── BasicLayoutProtocol.lua
│ │ │ ├── DraggableProtocol.lua
│ │ │ └── LayoutProtocol.lua
│ │ ├── init.lua
│ │ ├── mvc/
│ │ │ ├── AppBase.lua
│ │ │ ├── ModelBase.lua
│ │ │ └── init.lua
│ │ ├── net/
│ │ │ ├── SocketTCP.lua
│ │ │ └── init.lua
│ │ ├── sdk/
│ │ │ └── Store.lua
│ │ ├── ui/
│ │ │ ├── UIBoxLayout.lua
│ │ │ ├── UIButton.lua
│ │ │ ├── UICheckBoxButton.lua
│ │ │ ├── UICheckBoxButtonGroup.lua
│ │ │ ├── UIGroup.lua
│ │ │ ├── UIImage.lua
│ │ │ ├── UIInput.lua
│ │ │ ├── UILabel.lua
│ │ │ ├── UILayout.lua
│ │ │ ├── UIListView.lua
│ │ │ ├── UIListViewItem.lua
│ │ │ ├── UILoadingBar.lua
│ │ │ ├── UIPageView.lua
│ │ │ ├── UIPageViewItem.lua
│ │ │ ├── UIPushButton.lua
│ │ │ ├── UIScrollView.lua
│ │ │ ├── UISlider.lua
│ │ │ ├── UIStretch.lua
│ │ │ └── init.lua
│ │ ├── uiloader/
│ │ │ ├── CCSSceneLoader.lua
│ │ │ ├── CCSUILoader.lua
│ │ │ ├── UILoaderUtilitys.lua
│ │ │ ├── init.lua
│ │ │ └── uiloader.lua
│ │ └── utils/
│ │ ├── ByteArray.lua
│ │ ├── ByteArrayVarint.lua
│ │ ├── GameState.lua
│ │ ├── Gettext.lua
│ │ ├── Localize.lua
│ │ ├── Timer.lua
│ │ ├── bit.lua
│ │ └── init.lua
│ ├── cocos2dx/
│ │ ├── ActionEx.lua
│ │ ├── Cocos2d.lua
│ │ ├── Cocos2dConstants.lua
│ │ ├── DrawNodeEx.lua
│ │ ├── Event.lua
│ │ ├── NodeEx.lua
│ │ ├── OpenglConstants.lua
│ │ ├── SceneEx.lua
│ │ ├── SpriteEx.lua
│ │ └── StudioConstants.lua
│ ├── cocos2dx.lua
│ ├── crypto.lua
│ ├── debug.lua
│ ├── deprecated/
│ │ └── deprecated_functions.lua
│ ├── device.lua
│ ├── display.lua
│ ├── filter.lua
│ ├── functions.lua
│ ├── global.lua
│ ├── init.lua
│ ├── json.lua
│ ├── luaj.lua
│ ├── luaoc.lua
│ ├── network.lua
│ ├── platform/
│ │ ├── android.lua
│ │ ├── ios.lua
│ │ └── mac.lua
│ ├── scheduler.lua
│ ├── shortcodes.lua
│ ├── transition.lua
│ └── ui.lua
└── main.lua
SYMBOL INDEX (468 symbols across 69 files)
FILE: 源代码/2.2.5/mir9/proj.android/gen/com/zym/mir9/BuildConfig.java
class BuildConfig (line 4) | public final class BuildConfig {
FILE: 源代码/2.2.5/mir9/proj.android/gen/com/zym/mir9/R.java
class R (line 10) | public final class R {
class attr (line 11) | public static final class attr {
class drawable (line 13) | public static final class drawable {
class string (line 16) | public static final class string {
FILE: 源代码/2.2.5/mir9/proj.android/jni/hellocpp/main.cpp
function jint (line 16) | jint JNI_OnLoad(JavaVM *vm, void *reserved)
function Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit (line 22) | void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, job...
FILE: 源代码/2.2.5/mir9/proj.android/src/com/zym/mir9/Mir9.java
class Mir9 (line 30) | public class Mir9 extends Cocos2dxActivity {
method onCreate (line 32) | @Override
FILE: 源代码/2.2.5/mir9/proj.win32/app.cpp
function _tWinMain (line 29) | int APIENTRY _tWinMain(HINSTANCE hInstance,
function App (line 49) | App *App::sharedInstance(void)
function LRESULT (line 390) | LRESULT App::WindowProc(UINT message, WPARAM wParam, LPARAM lParam, BOOL...
FILE: 源代码/2.2.5/mir9/proj.win32/app.h
function AppDelegate (line 23) | AppDelegate *getApp(void) {
function HWND (line 27) | HWND getWindowHandle(void) {
FILE: 源代码/2.2.5/mir9/sources/AppDelegate.h
function class (line 18) | class AppDelegate : public cocos2d::CCApplication
FILE: 源代码/mir9/frameworks/runtime-src/Classes/AppDelegate.cpp
function quick_module_register (line 34) | static void quick_module_register(lua_State *L)
FILE: 源代码/mir9/frameworks/runtime-src/Classes/AppDelegate.h
function class (line 11) | class AppDelegate : private cocos2d::Application
FILE: 源代码/mir9/frameworks/runtime-src/Classes/ConfigParser.cpp
function ConfigParser (line 17) | ConfigParser *ConfigParser::getInstance(void)
function string (line 144) | string ConfigParser::getInitViewName()
function string (line 149) | string ConfigParser::getEntryFile()
function Size (line 154) | Size ConfigParser::getInitViewSize()
function SimulatorScreenSize (line 181) | const SimulatorScreenSize ConfigParser::getScreenSize(int index)
FILE: 源代码/mir9/frameworks/runtime-src/Classes/ConfigParser.h
type SimulatorScreenSize (line 12) | typedef struct _SimulatorScreenSize {
type vector (line 25) | typedef vector<SimulatorScreenSize> ScreenSizeArray;
function class (line 26) | class ConfigParser
FILE: 源代码/mir9/frameworks/runtime-src/Classes/VisibleRect.cpp
function Rect (line 38) | Rect VisibleRect::getVisibleRect()
function Vec2 (line 44) | Vec2 VisibleRect::left()
function Vec2 (line 50) | Vec2 VisibleRect::right()
function Vec2 (line 56) | Vec2 VisibleRect::top()
function Vec2 (line 62) | Vec2 VisibleRect::bottom()
function Vec2 (line 68) | Vec2 VisibleRect::center()
function Vec2 (line 74) | Vec2 VisibleRect::leftTop()
function Vec2 (line 80) | Vec2 VisibleRect::rightTop()
function Vec2 (line 86) | Vec2 VisibleRect::leftBottom()
function Vec2 (line 92) | Vec2 VisibleRect::rightBottom()
FILE: 源代码/mir9/frameworks/runtime-src/Classes/VisibleRect.h
function class (line 6) | class VisibleRect
FILE: 源代码/mir9/frameworks/runtime-src/Classes/anysdk_manual_bindings.cpp
function tolua_anysdk_ProtocolShare_setDebugMode (line 73) | static int tolua_anysdk_ProtocolShare_setDebugMode(lua_State* tolua_S)
function tolua_anysdk_ProtocolShare_share00 (line 106) | static int tolua_anysdk_ProtocolShare_share00(lua_State* tolua_S)
class ProtocolShareActionListener (line 161) | class ProtocolShareActionListener : public ShareResultListener
method ProtocolShareActionListener (line 164) | ProtocolShareActionListener():_handler(0)
method onShareResult (line 183) | virtual void onShareResult(ShareResultCode ret, const char* msg)
method ProtocolShareActionListener (line 205) | static ProtocolShareActionListener* getInstance()
method purge (line 213) | static void purge()
method setHandler (line 222) | void setHandler(LUA_FUNCTION handler)
function tolua_anysdk_ProtocolShare_setResultListener (line 234) | static int tolua_anysdk_ProtocolShare_setResultListener(lua_State* tolua_S)
function tolua_anysdk_ProtocolShare_removeListener (line 288) | static int tolua_anysdk_ProtocolShare_removeListener(lua_State* tolua_S)
function extendProtocolsShare (line 325) | static void extendProtocolsShare(lua_State* tolua_S)
function tolua_anysdk_PluginParam_create (line 341) | static int tolua_anysdk_PluginParam_create(lua_State* tolua_S)
function tolua_anysdk_PluginParam_getMapValue (line 422) | static int tolua_anysdk_PluginParam_getMapValue(lua_State* tolua_S)
function tolua_anysdk_PluginParam_getStrMapValue (line 467) | static int tolua_anysdk_PluginParam_getStrMapValue(lua_State* tolua_S)
function extendPluginParam (line 510) | static void extendPluginParam(lua_State* tolua_S)
function tolua_anysdk_AgentManager_getIAPPlugin (line 525) | static int tolua_anysdk_AgentManager_getIAPPlugin(lua_State* tolua_S)
function extendAgentManager (line 568) | static void extendAgentManager(lua_State* tolua_S)
function tolua_anysdk_PluginProtocol_callFuncWithParam (line 581) | static int tolua_anysdk_PluginProtocol_callFuncWithParam(lua_State* tolu...
function tolua_anysdk_PluginProtocol_callStringFuncWithParam (line 669) | static int tolua_anysdk_PluginProtocol_callStringFuncWithParam(lua_State...
function tolua_anysdk_PluginProtocol_callIntFuncWithParam (line 757) | static int tolua_anysdk_PluginProtocol_callIntFuncWithParam(lua_State* t...
function tolua_anysdk_PluginProtocol_callBoolFuncWithParam (line 845) | static int tolua_anysdk_PluginProtocol_callBoolFuncWithParam(lua_State* ...
function tolua_anysdk_PluginProtocol_callFloatFuncWithParam (line 933) | static int tolua_anysdk_PluginProtocol_callFloatFuncWithParam(lua_State*...
function extendPluginProtocol (line 1019) | static void extendPluginProtocol(lua_State* tolua_S)
function tolua_anysdk_ProtocolAnalytics_setDebugMode (line 1036) | static int tolua_anysdk_ProtocolAnalytics_setDebugMode(lua_State* tolua_S)
function tolua_anysdk_ProtocolAnalytics_logEvent (line 1069) | static int tolua_anysdk_ProtocolAnalytics_logEvent(lua_State* tolua_S)
function extendProtocolAnalytics (line 1136) | static void extendProtocolAnalytics(lua_State* tolua_S)
function tolua_anysdk_ProtocolIAP_setDebugMode (line 1150) | static int tolua_anysdk_ProtocolIAP_setDebugMode(lua_State* tolua_S)
function tolua_anysdk_ProtocolIAP_payForProduct (line 1183) | static int tolua_anysdk_ProtocolIAP_payForProduct(lua_State* tolua_S)
class ProtocolIAPActionListener (line 1240) | class ProtocolIAPActionListener : public PayResultListener
method ProtocolIAPActionListener (line 1243) | ProtocolIAPActionListener():_handler(0)
method onPayResult (line 1257) | virtual void onPayResult(PayResultCode ret, const char* msg, TProductI...
method ProtocolIAPActionListener (line 1304) | static ProtocolIAPActionListener* getInstance()
method purge (line 1312) | static void purge()
method setHandler (line 1321) | void setHandler(LUA_FUNCTION handler)
function tolua_anysdk_ProtocolIAP_setResultListener (line 1333) | static int tolua_anysdk_ProtocolIAP_setResultListener(lua_State* tolua_S)
function tolua_anysdk_ProtocolIAP_removeListener (line 1387) | static int tolua_anysdk_ProtocolIAP_removeListener(lua_State* tolua_S)
function extendProtocolIAP (line 1424) | static void extendProtocolIAP(lua_State* tolua_S)
function tolua_anysdk_ProtocolPush_setTags (line 1440) | static int tolua_anysdk_ProtocolPush_setTags(lua_State* tolua_S)
function tolua_anysdk_ProtocolPush_setDebugMode (line 1503) | static int tolua_anysdk_ProtocolPush_setDebugMode(lua_State* tolua_S)
function tolua_anysdk_ProtocolPush_delTags (line 1536) | static int tolua_anysdk_ProtocolPush_delTags(lua_State* tolua_S)
class ProtocolPushActionListener (line 1598) | class ProtocolPushActionListener : public PushActionListener
method ProtocolPushActionListener (line 1601) | ProtocolPushActionListener():_handler(0)
method onActionResult (line 1615) | virtual void onActionResult(ProtocolPush* pPlugin, PushActionResultCod...
method ProtocolPushActionListener (line 1639) | static ProtocolPushActionListener* getInstance()
method purge (line 1647) | static void purge()
method setHandler (line 1656) | void setHandler(LUA_FUNCTION handler)
function tolua_anysdk_ProtocolPush_setActionListener (line 1668) | static int tolua_anysdk_ProtocolPush_setActionListener(lua_State* tolua_S)
function tolua_anysdk_ProtocolPush_removeListener (line 1722) | static int tolua_anysdk_ProtocolPush_removeListener(lua_State* tolua_S)
function extendProtocolPush (line 1759) | static void extendProtocolPush(lua_State* tolua_S)
function tolua_anysdk_ProtocolSocial_unlockAchievement (line 1776) | static int tolua_anysdk_ProtocolSocial_unlockAchievement(lua_State* tolu...
class ProtocolSocialActionListener (line 1828) | class ProtocolSocialActionListener : public SocialListener
method ProtocolSocialActionListener (line 1831) | ProtocolSocialActionListener():_handler(0)
method onSocialResult (line 1845) | virtual void onSocialResult(SocialRetCode code, const char* msg)
method ProtocolSocialActionListener (line 1867) | static ProtocolSocialActionListener* getInstance()
method purge (line 1875) | static void purge()
method setHandler (line 1884) | void setHandler(LUA_FUNCTION handler)
function tolua_anysdk_ProtocolSocial_setDebugMode (line 1896) | static int tolua_anysdk_ProtocolSocial_setDebugMode(lua_State* tolua_S)
function tolua_anysdk_ProtocolSocial_setListener (line 1929) | static int tolua_anysdk_ProtocolSocial_setListener(lua_State* tolua_S)
function tolua_anysdk_ProtocolSocial_removeListener (line 1983) | static int tolua_anysdk_ProtocolSocial_removeListener(lua_State* tolua_S)
function extendProtocolSocial (line 2020) | static void extendProtocolSocial(lua_State* tolua_S)
class ProtocolUserActionListener (line 2034) | class ProtocolUserActionListener : public UserActionListener
method ProtocolUserActionListener (line 2037) | ProtocolUserActionListener():_handler(0)
method onActionResult (line 2051) | virtual void onActionResult(ProtocolUser* pPlugin, UserActionResultCod...
method ProtocolUserActionListener (line 2075) | static ProtocolUserActionListener* getInstance()
method purge (line 2083) | static void purge()
method setHandler (line 2092) | void setHandler(LUA_FUNCTION handler)
function tolua_anysdk_ProtocolUser_setDebugMode (line 2104) | static int tolua_anysdk_ProtocolUser_setDebugMode(lua_State* tolua_S)
function tolua_anysdk_ProtocolUser_setActionListener (line 2137) | static int tolua_anysdk_ProtocolUser_setActionListener(lua_State* tolua_S)
function tolua_anysdk_ProtocolUser_removeListener (line 2191) | static int tolua_anysdk_ProtocolUser_removeListener(lua_State* tolua_S)
function extendProtocolUser (line 2228) | static void extendProtocolUser(lua_State* tolua_S)
class ProtocolAdsListener (line 2241) | class ProtocolAdsListener : public AdsListener
method ProtocolAdsListener (line 2244) | ProtocolAdsListener():_handler(0)
method onAdsResult (line 2258) | virtual void onAdsResult(AdsResultCode code, const char* msg)
method onPlayerGetPoints (line 2278) | virtual void onPlayerGetPoints(ProtocolAds* pAdsPlugin, int points)
method ProtocolAdsListener (line 2301) | static ProtocolAdsListener* getInstance()
method purge (line 2309) | static void purge()
method setHandler (line 2318) | void setHandler(LUA_FUNCTION handler)
function tolua_anysdk_ProtocolAds_setAdsListener (line 2330) | static int tolua_anysdk_ProtocolAds_setAdsListener(lua_State* tolua_S)
function tolua_anysdk_ProtocolAds_setDebugMode (line 2384) | static int tolua_anysdk_ProtocolAds_setDebugMode(lua_State* tolua_S)
function tolua_anysdk_ProtocolAds_removeListener (line 2418) | static int tolua_anysdk_ProtocolAds_removeListener(lua_State* tolua_S)
function extendProtocolAds (line 2455) | static void extendProtocolAds(lua_State* tolua_S)
function TOLUA_API (line 2469) | TOLUA_API int tolua_anysdk_manual_open (lua_State* tolua_S)
function TOLUA_API (line 2485) | TOLUA_API int luaopen_anysdk_manual (lua_State* tolua_S) {
FILE: 源代码/mir9/frameworks/runtime-src/Classes/anysdkbindings.cpp
function tolua_collect_AgentManager (line 64) | static int tolua_collect_AgentManager (lua_State* tolua_S)
function tolua_collect_PluginManager (line 71) | static int tolua_collect_PluginManager (lua_State* tolua_S)
function tolua_collect_PluginFactory (line 78) | static int tolua_collect_PluginFactory (lua_State* tolua_S)
function tolua_reg_types (line 88) | static void tolua_reg_types (lua_State* tolua_S)
function tolua_anysdk_AgentManager_delete00 (line 108) | static int tolua_anysdk_AgentManager_delete00(lua_State* tolua_S)
function tolua_anysdk_AgentManager_getInstance00 (line 137) | static int tolua_anysdk_AgentManager_getInstance00(lua_State* tolua_S)
function tolua_anysdk_AgentManager_endManager00 (line 165) | static int tolua_anysdk_AgentManager_endManager00(lua_State* tolua_S)
function tolua_anysdk_AgentManager_init00 (line 192) | static int tolua_anysdk_AgentManager_init00(lua_State* tolua_S)
function tolua_anysdk_AgentManager_loadALLPlugin00 (line 231) | static int tolua_anysdk_AgentManager_loadALLPlugin00(lua_State* tolua_S)
function tolua_anysdk_AgentManager_unloadALLPlugin00 (line 262) | static int tolua_anysdk_AgentManager_unloadALLPlugin00(lua_State* tolua_S)
function tolua_anysdk_AgentManager_getAnalyticsPlugin00 (line 293) | static int tolua_anysdk_AgentManager_getAnalyticsPlugin00(lua_State* tol...
function tolua_anysdk_AgentManager_getUserPlugin00 (line 325) | static int tolua_anysdk_AgentManager_getUserPlugin00(lua_State* tolua_S)
function tolua_anysdk_AgentManager_getSharePlugin00 (line 357) | static int tolua_anysdk_AgentManager_getSharePlugin00(lua_State* tolua_S)
function tolua_anysdk_AgentManager_getSocialPlugin00 (line 389) | static int tolua_anysdk_AgentManager_getSocialPlugin00(lua_State* tolua_S)
function tolua_anysdk_AgentManager_getAdsPlugin00 (line 421) | static int tolua_anysdk_AgentManager_getAdsPlugin00(lua_State* tolua_S)
function tolua_anysdk_AgentManager_getChannelId00 (line 453) | static int tolua_anysdk_AgentManager_getChannelId00(lua_State* tolua_S)
function tolua_anysdk_AgentManager_getPushPlugin00 (line 485) | static int tolua_anysdk_AgentManager_getPushPlugin00(lua_State* tolua_S)
function tolua_anysdk_AgentManager_getCustomParam00 (line 517) | static int tolua_anysdk_AgentManager_getCustomParam00(lua_State* tolua_S)
function tolua_anysdk_PluginFactory_delete00 (line 549) | static int tolua_anysdk_PluginFactory_delete00(lua_State* tolua_S)
function tolua_anysdk_PluginFactory_getInstance00 (line 578) | static int tolua_anysdk_PluginFactory_getInstance00(lua_State* tolua_S)
function tolua_anysdk_PluginFactory_purgeFactory00 (line 606) | static int tolua_anysdk_PluginFactory_purgeFactory00(lua_State* tolua_S)
function tolua_anysdk_PluginManager_delete00 (line 633) | static int tolua_anysdk_PluginManager_delete00(lua_State* tolua_S)
function tolua_anysdk_PluginManager_getInstance00 (line 662) | static int tolua_anysdk_PluginManager_getInstance00(lua_State* tolua_S)
function tolua_anysdk_PluginManager_endManager00 (line 690) | static int tolua_anysdk_PluginManager_endManager00(lua_State* tolua_S)
function tolua_anysdk_PluginManager_loadPlugin00 (line 717) | static int tolua_anysdk_PluginManager_loadPlugin00(lua_State* tolua_S)
function tolua_anysdk_PluginManager_unloadPlugin00 (line 753) | static int tolua_anysdk_PluginManager_unloadPlugin00(lua_State* tolua_S)
function tolua_anysdk_PluginProtocol_setPluginName00 (line 788) | static int tolua_anysdk_PluginProtocol_setPluginName00(lua_State* tolua_S)
function tolua_anysdk_PluginProtocol_getPluginName00 (line 821) | static int tolua_anysdk_PluginProtocol_getPluginName00(lua_State* tolua_S)
function tolua_anysdk_PluginProtocol_getPluginVersion00 (line 853) | static int tolua_anysdk_PluginProtocol_getPluginVersion00(lua_State* tol...
function tolua_anysdk_PluginProtocol_getSDKVersion00 (line 885) | static int tolua_anysdk_PluginProtocol_getSDKVersion00(lua_State* tolua_S)
function tolua_anysdk_PluginProtocol_setDebugMode00 (line 917) | static int tolua_anysdk_PluginProtocol_setDebugMode00(lua_State* tolua_S)
function tolua_anysdk_ProtocolAds_showAds00 (line 950) | static int tolua_anysdk_ProtocolAds_showAds00(lua_State* tolua_S)
function tolua_anysdk_ProtocolAds_hideAds00 (line 986) | static int tolua_anysdk_ProtocolAds_hideAds00(lua_State* tolua_S)
function tolua_anysdk_ProtocolAds_queryPoints00 (line 1022) | static int tolua_anysdk_ProtocolAds_queryPoints00(lua_State* tolua_S)
function tolua_anysdk_ProtocolAds_spendPoints00 (line 1054) | static int tolua_anysdk_ProtocolAds_spendPoints00(lua_State* tolua_S)
function tolua_anysdk_ProtocolAds_isAdTypeSupported00 (line 1088) | static int tolua_anysdk_ProtocolAds_isAdTypeSupported00(lua_State* tolua_S)
function tolua_anysdk_ProtocolAnalytics_startSession00 (line 1122) | static int tolua_anysdk_ProtocolAnalytics_startSession00(lua_State* tolu...
function tolua_anysdk_ProtocolAnalytics_stopSession00 (line 1153) | static int tolua_anysdk_ProtocolAnalytics_stopSession00(lua_State* tolua_S)
function tolua_anysdk_ProtocolAnalytics_isFunctionSupported00 (line 1184) | static int tolua_anysdk_ProtocolAnalytics_isFunctionSupported00(lua_Stat...
function tolua_anysdk_ProtocolAnalytics_setSessionContinueMillis00 (line 1218) | static int tolua_anysdk_ProtocolAnalytics_setSessionContinueMillis00(lua...
function tolua_anysdk_ProtocolAnalytics_logError00 (line 1251) | static int tolua_anysdk_ProtocolAnalytics_logError00(lua_State* tolua_S)
function tolua_anysdk_ProtocolAnalytics_logTimedEventBegin00 (line 1286) | static int tolua_anysdk_ProtocolAnalytics_logTimedEventBegin00(lua_State...
function tolua_anysdk_ProtocolAnalytics_logTimedEventEnd00 (line 1319) | static int tolua_anysdk_ProtocolAnalytics_logTimedEventEnd00(lua_State* ...
function tolua_anysdk_ProtocolAnalytics_setCaptureUncaughtException00 (line 1352) | static int tolua_anysdk_ProtocolAnalytics_setCaptureUncaughtException00(...
function tolua_anysdk_ProtocolIAP_getOrderId00 (line 1385) | static int tolua_anysdk_ProtocolIAP_getOrderId00(lua_State* tolua_S)
function tolua_anysdk_ProtocolIAP_getPluginId00 (line 1417) | static int tolua_anysdk_ProtocolIAP_getPluginId00(lua_State* tolua_S)
function tolua_anysdk_ProtocolIAP_resetPayState00 (line 1449) | static int tolua_anysdk_ProtocolIAP_resetPayState00(lua_State* tolua_S)
function tolua_anysdk_PluginParam_getCurrentType00 (line 1476) | static int tolua_anysdk_PluginParam_getCurrentType00(lua_State* tolua_S)
function tolua_anysdk_PluginParam_getIntValue00 (line 1508) | static int tolua_anysdk_PluginParam_getIntValue00(lua_State* tolua_S)
function tolua_anysdk_PluginParam_getFloatValue00 (line 1540) | static int tolua_anysdk_PluginParam_getFloatValue00(lua_State* tolua_S)
function tolua_anysdk_PluginParam_getBoolValue00 (line 1572) | static int tolua_anysdk_PluginParam_getBoolValue00(lua_State* tolua_S)
function tolua_anysdk_PluginParam_getStringValue00 (line 1604) | static int tolua_anysdk_PluginParam_getStringValue00(lua_State* tolua_S)
function tolua_anysdk_ProtocolPush_startPush00 (line 1636) | static int tolua_anysdk_ProtocolPush_startPush00(lua_State* tolua_S)
function tolua_anysdk_ProtocolPush_closePush00 (line 1667) | static int tolua_anysdk_ProtocolPush_closePush00(lua_State* tolua_S)
function tolua_anysdk_ProtocolPush_setAlias00 (line 1698) | static int tolua_anysdk_ProtocolPush_setAlias00(lua_State* tolua_S)
function tolua_anysdk_ProtocolPush_delAlias00 (line 1731) | static int tolua_anysdk_ProtocolPush_delAlias00(lua_State* tolua_S)
function tolua_anysdk_ProtocolSocial_signIn00 (line 1764) | static int tolua_anysdk_ProtocolSocial_signIn00(lua_State* tolua_S)
function tolua_anysdk_ProtocolSocial_signOut00 (line 1795) | static int tolua_anysdk_ProtocolSocial_signOut00(lua_State* tolua_S)
function tolua_anysdk_ProtocolSocial_submitScore00 (line 1826) | static int tolua_anysdk_ProtocolSocial_submitScore00(lua_State* tolua_S)
function tolua_anysdk_ProtocolSocial_showLeaderboard00 (line 1861) | static int tolua_anysdk_ProtocolSocial_showLeaderboard00(lua_State* tolu...
function tolua_anysdk_ProtocolSocial_showAchievements00 (line 1894) | static int tolua_anysdk_ProtocolSocial_showAchievements00(lua_State* tol...
function tolua_anysdk_ProtocolUser_login00 (line 1925) | static int tolua_anysdk_ProtocolUser_login00(lua_State* tolua_S)
function tolua_anysdk_ProtocolUser_login01 (line 1956) | static int tolua_anysdk_ProtocolUser_login01(lua_State* tolua_S)
function tolua_anysdk_ProtocolUser_isLogined00 (line 1988) | static int tolua_anysdk_ProtocolUser_isLogined00(lua_State* tolua_S)
function tolua_anysdk_ProtocolUser_getUserID00 (line 2020) | static int tolua_anysdk_ProtocolUser_getUserID00(lua_State* tolua_S)
function tolua_anysdk_ProtocolUser_isFunctionSupported00 (line 2052) | static int tolua_anysdk_ProtocolUser_isFunctionSupported00(lua_State* to...
function tolua_anysdk_ProtocolUser_getPluginId00 (line 2086) | static int tolua_anysdk_ProtocolUser_getPluginId00(lua_State* tolua_S)
function TOLUA_API (line 2117) | TOLUA_API int tolua_anysdk_open (lua_State* tolua_S)
function TOLUA_API (line 2237) | TOLUA_API int luaopen_anysdk (lua_State* tolua_S) {
FILE: 源代码/mir9/frameworks/runtime-src/Classes/lua_module_register.h
function lua_module_register (line 15) | int lua_module_register(lua_State* L)
FILE: 源代码/mir9/frameworks/runtime-src/Classes/runtime/ConnectWaitLayer.h
function class (line 30) | class ConnectWaitLayer: public cocos2d::Layer
FILE: 源代码/mir9/frameworks/runtime-src/Classes/runtime/ConsoleCommand.cpp
function resetLuaModule (line 36) | static void resetLuaModule(const string& fileName)
function reloadScript (line 74) | bool reloadScript(const string& file)
function ConsoleCommand (line 102) | ConsoleCommand* ConsoleCommand::getShareInstance()
type Console::Command (line 122) | struct Console::Command
FILE: 源代码/mir9/frameworks/runtime-src/Classes/runtime/ConsoleCommand.h
function class (line 30) | class ConsoleCommand
FILE: 源代码/mir9/frameworks/runtime-src/Classes/runtime/FileServer.cpp
function FileServer (line 44) | FileServer* FileServer::getShareInstance()
type addrinfo (line 126) | struct addrinfo
type addrinfo (line 132) | struct addrinfo
type sockaddr_in (line 178) | struct sockaddr_in
type sockaddr_in (line 178) | struct sockaddr_in
type sockaddr_in6 (line 186) | struct sockaddr_in6
type sockaddr_in6 (line 186) | struct sockaddr_in6
type sockaddr (line 261) | struct sockaddr
type sockaddr (line 266) | struct sockaddr
type ResponseHeaderStruct (line 490) | struct ResponseHeaderStruct
function createDir (line 510) | bool createDir(const char *sPathName)
FILE: 源代码/mir9/frameworks/runtime-src/Classes/runtime/FileServer.h
function class (line 56) | class FileServer
FILE: 源代码/mir9/frameworks/runtime-src/Classes/runtime/Protos.pb.cc
function protobuf_ShutdownFile_Protos_2eproto (line 17) | void protobuf_ShutdownFile_Protos_2eproto() {
function protobuf_AddDesc_Protos_2eproto (line 27) | void protobuf_AddDesc_Protos_2eproto() {
function protobuf_AddDesc_Protos_2eproto (line 43) | void protobuf_AddDesc_Protos_2eproto() {
type StaticDescriptorInitializer_Protos_2eproto (line 49) | struct StaticDescriptorInitializer_Protos_2eproto {
method StaticDescriptorInitializer_Protos_2eproto (line 50) | StaticDescriptorInitializer_Protos_2eproto() {
function FileSendProtos_CompressType_IsValid (line 58) | bool FileSendProtos_CompressType_IsValid(int value) {
function FileSendProtos_VerifyMode_IsValid (line 75) | bool FileSendProtos_VerifyMode_IsValid(int value) {
function FileSendProtos (line 158) | const FileSendProtos& FileSendProtos::default_instance() {
function FileSendProtos (line 169) | FileSendProtos* FileSendProtos::New() const {
function FileSendComplete_RESULTTYPE_IsValid (line 566) | bool FileSendComplete_RESULTTYPE_IsValid(int value) {
function FileSendComplete (line 638) | const FileSendComplete& FileSendComplete::default_instance() {
function FileSendComplete (line 649) | FileSendComplete* FileSendComplete::New() const {
FILE: 源代码/mir9/frameworks/runtime-src/Classes/runtime/Protos.pb.h
function namespace (line 28) | namespace runtime {
function set_has_package_sum (line 496) | inline void FileSendProtos::set_has_package_sum() {
function clear_has_package_sum (line 499) | inline void FileSendProtos::clear_has_package_sum() {
function clear_package_sum (line 502) | inline void FileSendProtos::clear_package_sum() {
function set_package_sum (line 509) | inline void FileSendProtos::set_package_sum(::google::protobuf::int32 va...
function set_has_content_size (line 518) | inline void FileSendProtos::set_has_content_size() {
function clear_has_content_size (line 521) | inline void FileSendProtos::clear_has_content_size() {
function clear_content_size (line 524) | inline void FileSendProtos::clear_content_size() {
function set_content_size (line 531) | inline void FileSendProtos::set_content_size(::google::protobuf::uint64 ...
function set_has_compress_type (line 540) | inline void FileSendProtos::set_has_compress_type() {
function clear_has_compress_type (line 543) | inline void FileSendProtos::clear_has_compress_type() {
function clear_compress_type (line 546) | inline void FileSendProtos::clear_compress_type() {
function set_compress_type (line 553) | inline void FileSendProtos::set_compress_type(::runtime::FileSendProtos_...
function set_has_modified_time (line 563) | inline void FileSendProtos::set_has_modified_time() {
function clear_has_modified_time (line 566) | inline void FileSendProtos::clear_has_modified_time() {
function clear_modified_time (line 569) | inline void FileSendProtos::clear_modified_time() {
function set_modified_time (line 576) | inline void FileSendProtos::set_modified_time(::google::protobuf::uint64...
function set_has_verify_mode (line 585) | inline void FileSendProtos::set_has_verify_mode() {
function clear_has_verify_mode (line 588) | inline void FileSendProtos::clear_has_verify_mode() {
function clear_verify_mode (line 591) | inline void FileSendProtos::clear_verify_mode() {
function set_verify_mode (line 598) | inline void FileSendProtos::set_verify_mode(::runtime::FileSendProtos_Ve...
function set_has_verify_sign (line 608) | inline void FileSendProtos::set_has_verify_sign() {
function clear_has_verify_sign (line 611) | inline void FileSendProtos::clear_has_verify_sign() {
function clear_verify_sign (line 614) | inline void FileSendProtos::clear_verify_sign() {
function set_verify_sign (line 623) | inline void FileSendProtos::set_verify_sign(const ::std::string& value) {
function set_verify_sign (line 630) | inline void FileSendProtos::set_verify_sign(const char* value) {
function set_verify_sign (line 637) | inline void FileSendProtos::set_verify_sign(const char* value, size_t si...
function std (line 644) | inline ::std::string* FileSendProtos::mutable_verify_sign() {
function std (line 651) | inline ::std::string* FileSendProtos::release_verify_sign() {
function set_allocated_verify_sign (line 661) | inline void FileSendProtos::set_allocated_verify_sign(::std::string* ver...
function set_has_uncompress_size (line 678) | inline void FileSendProtos::set_has_uncompress_size() {
function clear_has_uncompress_size (line 681) | inline void FileSendProtos::clear_has_uncompress_size() {
function clear_uncompress_size (line 684) | inline void FileSendProtos::clear_uncompress_size() {
function set_uncompress_size (line 691) | inline void FileSendProtos::set_uncompress_size(::google::protobuf::uint...
function set_has_file_name (line 704) | inline void FileSendComplete::set_has_file_name() {
function clear_has_file_name (line 707) | inline void FileSendComplete::clear_has_file_name() {
function clear_file_name (line 710) | inline void FileSendComplete::clear_file_name() {
function set_file_name (line 719) | inline void FileSendComplete::set_file_name(const ::std::string& value) {
function set_file_name (line 726) | inline void FileSendComplete::set_file_name(const char* value) {
function set_file_name (line 733) | inline void FileSendComplete::set_file_name(const char* value, size_t si...
function std (line 740) | inline ::std::string* FileSendComplete::mutable_file_name() {
function std (line 747) | inline ::std::string* FileSendComplete::release_file_name() {
function set_allocated_file_name (line 757) | inline void FileSendComplete::set_allocated_file_name(::std::string* fil...
function set_has_result (line 774) | inline void FileSendComplete::set_has_result() {
function clear_has_result (line 777) | inline void FileSendComplete::clear_has_result() {
function clear_result (line 780) | inline void FileSendComplete::clear_result() {
function set_result (line 787) | inline void FileSendComplete::set_result(::runtime::FileSendComplete_RES...
function set_has_error_num (line 797) | inline void FileSendComplete::set_has_error_num() {
function clear_has_error_num (line 800) | inline void FileSendComplete::clear_has_error_num() {
function clear_error_num (line 803) | inline void FileSendComplete::clear_error_num() {
function set_error_num (line 810) | inline void FileSendComplete::set_error_num(::google::protobuf::int32 va...
FILE: 源代码/mir9/frameworks/runtime-src/Classes/runtime/Runtime.cpp
function startScript (line 39) | void startScript(std::string strDebugArg)
function recvBuf (line 58) | void recvBuf(int fd, char *pbuf, unsigned long bufsize)
function sendBuf (line 73) | void sendBuf(int fd, const char *pbuf, unsigned long bufsize)
function lua_cocos2dx_runtime_addSearchPath (line 108) | int lua_cocos2dx_runtime_addSearchPath(lua_State* tolua_S)
function lua_cocos2dx_runtime_setSearchPaths (line 178) | int lua_cocos2dx_runtime_setSearchPaths(lua_State* tolua_S)
function register_runtime_override_function (line 248) | void register_runtime_override_function(lua_State* tolua_S)
function initRuntime (line 259) | void initRuntime()
function startRuntime (line 289) | void startRuntime()
function endRuntime (line 299) | void endRuntime()
FILE: 源代码/mir9/frameworks/runtime-src/Classes/runtime/lua_debugger.c
function luaopen_lua_m_debugger (line 8644) | int luaopen_lua_m_debugger(lua_State *L) {
function luaopen_lua_debugger (line 8655) | void luaopen_lua_debugger(lua_State* L)
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/gen/com/zym/mir9/R.java
class R (line 10) | public final class R {
class attr (line 11) | public static final class attr {
class drawable (line 13) | public static final class drawable {
class id (line 18) | public static final class id {
class layout (line 27) | public static final class layout {
class string (line 31) | public static final class string {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/jni/hellolua/Runtime_android.cpp
function string (line 9) | string getIPAddress()
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/jni/hellolua/main.cpp
function cocos_android_app_init (line 15) | void cocos_android_app_init (JNIEnv* env, jobject thiz) {
function Java_org_cocos2dx_lua_AppActivity_nativeIsLandScape (line 27) | bool Java_org_cocos2dx_lua_AppActivity_nativeIsLandScape(JNIEnv *env, jo...
function Java_org_cocos2dx_lua_AppActivity_nativeIsDebug (line 32) | bool Java_org_cocos2dx_lua_AppActivity_nativeIsDebug(JNIEnv *env, jobjec...
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/protocols/android/PluginJavaData.h
function namespace (line 7) | namespace anysdk { namespace framework {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/protocols/android/PluginJniHelper.h
function namespace (line 7) | namespace anysdk {namespace framework{
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/protocols/android/PluginUtils.h
function namespace (line 12) | namespace anysdk { namespace framework {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/AgentManager.h
function namespace (line 18) | namespace anysdk { namespace framework {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/PluginFactory.h
function namespace (line 6) | namespace anysdk { namespace framework {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/PluginManager.h
function namespace (line 11) | namespace anysdk { namespace framework {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/PluginParam.h
type std (line 10) | typedef std::map<std::string, std::string> StringMap;
function namespace (line 12) | namespace anysdk { namespace framework {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/PluginProtocol.h
function namespace (line 9) | namespace anysdk { namespace framework {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/ProtocolAds.h
function namespace (line 10) | namespace anysdk { namespace framework {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/ProtocolAnalytics.h
function namespace (line 10) | namespace anysdk { namespace framework {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/ProtocolIAP.h
function namespace (line 10) | namespace anysdk { namespace framework {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/ProtocolPush.h
function namespace (line 12) | namespace anysdk { namespace framework {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/ProtocolShare.h
function namespace (line 10) | namespace anysdk { namespace framework {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/ProtocolSocial.h
function namespace (line 10) | namespace anysdk { namespace framework {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/ProtocolUser.h
function namespace (line 10) | namespace anysdk { namespace framework {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/src/org/cocos2dx/lib/QuickHTTPInterface.java
class QuickHTTPInterface (line 26) | public class QuickHTTPInterface {
method createURLConnect (line 30) | static HttpURLConnection createURLConnect(String strURL) {
method setRequestMethod (line 46) | static void setRequestMethod(HttpURLConnection http, String strMedthod) {
method addRequestHeader (line 57) | static void addRequestHeader(HttpURLConnection http, String strkey, St...
method setTimeout (line 64) | static void setTimeout(HttpURLConnection http, int msTime) {
method connect (line 69) | static int connect(HttpURLConnection http) {
method postContent (line 82) | static void postContent(HttpURLConnection http, String name, String va...
method postContentByteArray (line 101) | static void postContentByteArray(HttpURLConnection http, byte[] byteAr...
method postFormContent (line 113) | static void postFormContent(HttpURLConnection http, String key, String...
method postFormFile (line 125) | static void postFormFile(HttpURLConnection http, String name, String f...
method postFormEnd (line 146) | static void postFormEnd(HttpURLConnection http, boolean bBoundary) {
method getBoundaryFileHeader (line 164) | static String getBoundaryFileHeader(String key, String filePath) {
method getBoundaryContentHeader (line 185) | static String getBoundaryContentHeader(String key, String val) {
method getBoundaryEnd (line 201) | static String getBoundaryEnd() {
method getResponedCode (line 211) | static int getResponedCode(HttpURLConnection http) {
method getResponedErr (line 222) | static String getResponedErr(HttpURLConnection http) {
method getResponedHeader (line 234) | static String getResponedHeader(HttpURLConnection http) {
method getResponedHeaderByIdx (line 258) | static String getResponedHeaderByIdx(HttpURLConnection http, int idx) {
method getResponedHeaderByKey (line 283) | static String getResponedHeaderByKey(HttpURLConnection http, String ke...
method getResponedHeaderByKeyInt (line 310) | static int getResponedHeaderByKeyInt(HttpURLConnection http, String ke...
method getContentLeng (line 320) | static int getContentLeng(HttpURLConnection http) {
method getResponedString (line 324) | static byte[] getResponedString(HttpURLConnection http) {
method close (line 349) | static void close(HttpURLConnection http) {
method listToString (line 357) | public static String listToString(List<String> list, String strInterVa...
method combinCookies (line 376) | public static String combinCookies(List<String> list, String strDomain) {
method str2Seconds (line 434) | private static String str2Seconds(String strTime) {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android/src/org/cocos2dx/lua/AppActivity.java
class AppActivity (line 56) | public class AppActivity extends Cocos2dxActivity{
method onCreate (line 59) | @Override
method isNetworkConnected (line 100) | private boolean isNetworkConnected() {
method getHostIpAddress (line 120) | public String getHostIpAddress() {
method getLocalIpAddress (line 127) | public static String getLocalIpAddress() {
method onActivityResult (line 131) | @Override
method onResume (line 136) | @Override
method onPause (line 141) | @Override
method onNewIntent (line 146) | @Override
method nativeIsLandScape (line 152) | private static native boolean nativeIsLandScape();
method nativeIsDebug (line 153) | private static native boolean nativeIsDebug();
FILE: 源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/gen/com/zym/mir9/BuildConfig.java
class BuildConfig (line 4) | public final class BuildConfig {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/gen/com/zym/mir9/R.java
class R (line 10) | public final class R {
class attr (line 11) | public static final class attr {
class drawable (line 13) | public static final class drawable {
class string (line 16) | public static final class string {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/jni/hellolua/Runtime_android.cpp
function string (line 9) | string getIPAddress()
FILE: 源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/jni/hellolua/main.cpp
function cocos_android_app_init (line 13) | void cocos_android_app_init (JNIEnv* env, jobject thiz) {
function Java_org_cocos2dx_lua_AppActivity_nativeIsLandScape (line 20) | bool Java_org_cocos2dx_lua_AppActivity_nativeIsLandScape(JNIEnv *env, jo...
function Java_org_cocos2dx_lua_AppActivity_nativeIsDebug (line 25) | bool Java_org_cocos2dx_lua_AppActivity_nativeIsDebug(JNIEnv *env, jobjec...
FILE: 源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/src/org/cocos2dx/lib/QuickHTTPInterface.java
class QuickHTTPInterface (line 26) | public class QuickHTTPInterface {
method createURLConnect (line 30) | static HttpURLConnection createURLConnect(String strURL) {
method setRequestMethod (line 46) | static void setRequestMethod(HttpURLConnection http, String strMedthod) {
method addRequestHeader (line 57) | static void addRequestHeader(HttpURLConnection http, String strkey, St...
method setTimeout (line 64) | static void setTimeout(HttpURLConnection http, int msTime) {
method connect (line 69) | static int connect(HttpURLConnection http) {
method postContent (line 82) | static void postContent(HttpURLConnection http, String name, String va...
method postContentByteArray (line 101) | static void postContentByteArray(HttpURLConnection http, byte[] byteAr...
method postFormContent (line 113) | static void postFormContent(HttpURLConnection http, String key, String...
method postFormFile (line 125) | static void postFormFile(HttpURLConnection http, String name, String f...
method postFormEnd (line 146) | static void postFormEnd(HttpURLConnection http, boolean bBoundary) {
method getBoundaryFileHeader (line 164) | static String getBoundaryFileHeader(String key, String filePath) {
method getBoundaryContentHeader (line 185) | static String getBoundaryContentHeader(String key, String val) {
method getBoundaryEnd (line 201) | static String getBoundaryEnd() {
method getResponedCode (line 211) | static int getResponedCode(HttpURLConnection http) {
method getResponedErr (line 222) | static String getResponedErr(HttpURLConnection http) {
method getResponedHeader (line 234) | static String getResponedHeader(HttpURLConnection http) {
method getResponedHeaderByIdx (line 258) | static String getResponedHeaderByIdx(HttpURLConnection http, int idx) {
method getResponedHeaderByKey (line 283) | static String getResponedHeaderByKey(HttpURLConnection http, String ke...
method getResponedHeaderByKeyInt (line 310) | static int getResponedHeaderByKeyInt(HttpURLConnection http, String ke...
method getContentLeng (line 320) | static int getContentLeng(HttpURLConnection http) {
method getResponedString (line 324) | static byte[] getResponedString(HttpURLConnection http) {
method close (line 349) | static void close(HttpURLConnection http) {
method listToString (line 357) | public static String listToString(List<String> list, String strInterVa...
method combinCookies (line 376) | public static String combinCookies(List<String> list, String strDomain) {
method str2Seconds (line 434) | private static String str2Seconds(String strTime) {
FILE: 源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/src/org/cocos2dx/lua/AppActivity.java
class AppActivity (line 55) | public class AppActivity extends Cocos2dxActivity{
method onCreate (line 58) | @Override
method isNetworkConnected (line 96) | private boolean isNetworkConnected() {
method getHostIpAddress (line 116) | public String getHostIpAddress() {
method getLocalIpAddress (line 123) | public static String getLocalIpAddress() {
method nativeIsLandScape (line 127) | private static native boolean nativeIsLandScape();
method nativeIsDebug (line 128) | private static native boolean nativeIsDebug();
FILE: 源代码/mir9/frameworks/runtime-src/proj.ios_mac/ios/RootViewController.h
function interface (line 29) | interface RootViewController : UIViewController {
FILE: 源代码/mir9/frameworks/runtime-src/proj.ios_mac/mac/ConsoleWindowController.h
function interface (line 4) | interface ConsoleWindowController : NSWindowController
FILE: 源代码/mir9/frameworks/runtime-src/proj.win32/Runtime_win32.cpp
function string (line 11) | string getIPAddress()
FILE: 源代码/mir9/frameworks/runtime-src/proj.win32/SimulatorWindow.cpp
function createViewMenu (line 46) | void createViewMenu()
function updateMenu (line 69) | void updateMenu()
function updateView (line 143) | void updateView()
function onViewChangeOrientation (line 163) | void onViewChangeOrientation(int viewMenuID)
function onViewZoomOut (line 177) | void onViewZoomOut(int viewMenuID)
function onViewChangeFrameSize (line 201) | void onViewChangeFrameSize(int viewMenuID)
function onHelpAbout (line 213) | void onHelpAbout()
function shutDownApp (line 218) | void shutDownApp()
function reStart (line 224) | void reStart()
function LRESULT (line 240) | LRESULT CALLBACK SNewWndProc(HWND hWnd, UINT message, WPARAM wParam, LPA...
function INT_PTR (line 300) | INT_PTR CALLBACK AboutDialogCallback(HWND hDlg, UINT message, WPARAM wPa...
function createSimulator (line 319) | void createSimulator(const char* viewName, float width, float height, bo...
FILE: 源代码/mir9/frameworks/runtime-src/proj.win32/main.cpp
function _tWinMain (line 27) | int APIENTRY _tWinMain(HINSTANCE hInstance,
function getCurAppPath (line 130) | std::string getCurAppPath(void)
FILE: 源代码/mir9/frameworks/runtime-src/proj.wp8-xaml/App/App.xaml.cs
class App (line 13) | public partial class App : Application
type SessionType (line 22) | enum SessionType
method App (line 45) | public App()
method Application_Launching (line 80) | private void Application_Launching(object sender, LaunchingEventArgs e)
method Application_Activated (line 89) | private void Application_Activated(object sender, ActivatedEventArgs e)
method Application_Deactivated (line 108) | private void Application_Deactivated(object sender, DeactivatedEventAr...
method Application_Closing (line 116) | private void Application_Closing(object sender, ClosingEventArgs e)
method RootFrame_NavigationFailed (line 123) | private void RootFrame_NavigationFailed(object sender, NavigationFaile...
method Application_UnhandledException (line 133) | private void Application_UnhandledException(object sender, Application...
method InitializePhoneApplication (line 148) | private void InitializePhoneApplication()
method RootFrame_Navigating (line 173) | void RootFrame_Navigating(object sender, NavigatingCancelEventArgs e)
method CompleteInitializePhoneApplication (line 239) | private void CompleteInitializePhoneApplication(object sender, Navigat...
method CheckForResetNavigation (line 249) | private void CheckForResetNavigation(object sender, NavigationEventArg...
method ClearBackStackAfterReset (line 257) | private void ClearBackStackAfterReset(object sender, NavigationEventAr...
method AddOrUpdateValue (line 276) | public bool AddOrUpdateValue(string Key, Object value)
method RemoveValue (line 301) | public void RemoveValue(string Key)
method SaveCurrentDeactivationSettings (line 312) | public void SaveCurrentDeactivationSettings()
method RemoveCurrentDeactivationSettings (line 328) | public void RemoveCurrentDeactivationSettings()
method CheckDeactivationTimeStamp (line 337) | bool CheckDeactivationTimeStamp()
method RestoreSessionType (line 352) | void RestoreSessionType()
FILE: 源代码/mir9/frameworks/runtime-src/proj.wp8-xaml/App/EditBox.xaml.cs
class EditBox (line 39) | public partial class EditBox : UserControl
method initTextinput (line 48) | public void initTextinput(int maxLen, int inputMode)
method pwdBox_GotFocus (line 77) | void pwdBox_GotFocus(object sender, RoutedEventArgs e)
method EditBox (line 82) | public EditBox(MainPage page, String strPlaceholder, String strText, ...
method EditBox_Loaded (line 93) | void EditBox_Loaded(object sender, RoutedEventArgs e)
method textinput_LostFocus (line 98) | void textinput_LostFocus(object sender, RoutedEventArgs e)
method textinput_GotFocus (line 112) | void textinput_GotFocus(object sender, RoutedEventArgs e)
method OnKeyDownHandler (line 121) | private void OnKeyDownHandler(object sender, System.Windows.Input.KeyE...
method Done_Click (line 134) | private void Done_Click(object sender, RoutedEventArgs e)
method Cancel_Click (line 140) | private void Cancel_Click(object sender, RoutedEventArgs e)
method textinput_TextChanged (line 145) | private void textinput_TextChanged(object sender, TextChangedEventArgs e)
method SetInputScope (line 152) | private void SetInputScope(TextBox curBox, int inputMode)
FILE: 源代码/mir9/frameworks/runtime-src/proj.wp8-xaml/App/LocalizedStrings.cs
class LocalizedStrings (line 8) | public class LocalizedStrings
FILE: 源代码/mir9/frameworks/runtime-src/proj.wp8-xaml/App/MainPage.xaml.cs
class MainPage (line 31) | public partial class MainPage : PhoneApplicationPage
method MainPage (line 43) | public MainPage()
method OnOrientationChanged (line 53) | override protected void OnOrientationChanged(OrientationChangedEventAr...
method ConvertToNativeOrientation (line 63) | private static DisplayOrientations ConvertToNativeOrientation(PageOrie...
method DrawingSurfaceBackground_Loaded (line 82) | private void DrawingSurfaceBackground_Loaded(object sender, RoutedEven...
method OnBackKeyPress (line 110) | protected override void OnBackKeyPress(CancelEventArgs e)
method OnKeyDown (line 118) | public void OnKeyDown(object sender, KeyEventArgs e)
method OnKeyUp (line 141) | public void OnKeyUp(object sender, KeyEventArgs e)
method OnTextChanged (line 145) | public void OnTextChanged(object sender, TextChangedEventArgs e)
method OnCocos2dMessageBoxEvent (line 155) | public void OnCocos2dMessageBoxEvent(String title, String text)
method OnCocos2dEvent (line 164) | public void OnCocos2dEvent(Cocos2dEvent theEvent, String text)
method OpenEditBox (line 202) | public void OpenEditBox(String strPlaceHolder, string strText, int max...
method OnSelectText (line 212) | public void OnSelectText(object sender, String str)
method OpenURL (line 220) | public void OpenURL(String url)
method StartTimer (line 227) | private void StartTimer()
method TimerTick (line 235) | private void TimerTick(object sender, EventArgs e)
FILE: 源代码/mir9/frameworks/runtime-src/proj.wp8-xaml/App/Resources/AppResources.Designer.cs
class AppResources (line 22) | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resource...
method AppResources (line 31) | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Mic...
FILE: 源代码/mir9/frameworks/runtime-src/proj.wp8-xaml/AppComponent/src/Cocos2dRenderer.h
function Cocos2dRenderer (line 32) | Cocos2dRenderer sealed : public DirectXBase
FILE: 源代码/mir9/frameworks/runtime-src/proj.wp8-xaml/AppComponent/src/Direct3DContentProvider.cpp
function m_controller (line 32) | m_controller(controller)
function HRESULT (line 44) | HRESULT Direct3DContentProvider::Connect(_In_ IDrawingSurfaceRuntimeHost...
function HRESULT (line 57) | HRESULT Direct3DContentProvider::PrepareResources(_In_ const LARGE_INTEG...
function HRESULT (line 62) | HRESULT Direct3DContentProvider::Draw(_In_ ID3D11Device1* device, _In_ I...
FILE: 源代码/mir9/frameworks/runtime-src/proj.wp8-xaml/AppComponent/src/Direct3DInterop.cpp
type cocos2d (line 39) | namespace cocos2d
function HRESULT (line 56) | HRESULT Direct3DInterop::Connect(_In_ IDrawingSurfaceRuntimeHostNative...
function HRESULT (line 148) | HRESULT Direct3DInterop::PrepareResources(_In_ const LARGE_INTEGER* pr...
function HRESULT (line 155) | HRESULT Direct3DInterop::Draw(_In_ ID3D11Device1* device, _In_ ID3D11D...
FILE: 源代码/mir9/frameworks/runtime-src/proj.wp8-xaml/AppComponent/src/Direct3DInterop.h
function namespace (line 37) | namespace cocos2d
FILE: 源代码/mir9/frameworks/runtime-src/proj.wp8-xaml/AppComponent/src/DirectXBase.h
function DirectXBase (line 38) | DirectXBase abstract
FILE: 源代码/mir9/frameworks/runtime-src/proj.wp8-xaml/AppComponent/src/DirectXHelper.h
function namespace (line 37) | namespace DX
FILE: 源代码/mir9/frameworks/runtime-src/proj.wp8-xaml/AppComponent/src/EditBoxEvent.cpp
type cocos2d (line 29) | namespace cocos2d
FILE: 源代码/mir9/frameworks/runtime-src/proj.wp8-xaml/AppComponent/src/EditBoxEvent.h
function namespace (line 32) | namespace cocos2d
Condensed preview — 427 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (5,127K chars).
[
{
"path": "README.md",
"chars": 1953,
"preview": "mir9-lua\n================\nmir9——《热血沙城》,是9秒论坛开源的一个使用Cocos2d-x-2.2.1引擎开发的45度ARPG手游Demo,源代码为c++。mir9-lua是mir9的Lua移植版,使用Qui"
},
{
"path": "发布说明.txt",
"chars": 837,
"preview": "mir9-lua\n\n mir9——《热血沙城》,是9秒论坛开源的一个使用Cocos2d-x-2.2.1引擎开发的45度ARPG手游Demo,源代码为c++。mir9-lua是mir9的Lua移植版,使用Quick-Cocos2d-x"
},
{
"path": "源代码/2.2.5/mir9/.buildpath",
"chars": 280,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<buildpath>\n\t<buildpathentry kind=\"src\" path=\"\"/>\n\t<buildpathentry kind=\"con\" pat"
},
{
"path": "源代码/2.2.5/mir9/.cocos-project.json",
"chars": 50,
"preview": "{\n \"has_native\": false,\n \"project_type\": \"lua\"\n}"
},
{
"path": "源代码/2.2.5/mir9/.project",
"chars": 287,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<projectDescription>\n\t<name>mir9</name>\n\t<comment></comment>\n\t<projects>\n\t</proje"
},
{
"path": "源代码/2.2.5/mir9/.settings/org.eclipse.core.resources.prefs",
"chars": 55,
"preview": "eclipse.preferences.version=1\nencoding/<project>=UTF-8\n"
},
{
"path": "源代码/2.2.5/mir9/.settings/version.json",
"chars": 118,
"preview": "{\n \"ideVersion\": \"1.0.1\",\n \"templateVersion\": \"1.3\",\n \"runtimeVersion\": \"1.3\",\n \"engineVersion\": \"cocos2d-x 3.2\"\n}"
},
{
"path": "源代码/2.2.5/mir9/config.json",
"chars": 1081,
"preview": "{\n \"init_cfg\": {\n \"isLandscape\": true,\n \"name\": \"mir9\",\n \"width\": 960,\n \"height\": 640,\n \"entry\": \"script"
},
{
"path": "源代码/2.2.5/mir9/proj.android/.classpath",
"chars": 466,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<classpath>\n\t<classpathentry kind=\"src\" path=\"src\"/>\n\t<classpathentry kind=\"src\" "
},
{
"path": "源代码/2.2.5/mir9/proj.android/.project",
"chars": 807,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<projectDescription>\n\t<name>Mir9</name>\n\t<comment></comment>\n\t<projects>\n\t</proje"
},
{
"path": "源代码/2.2.5/mir9/proj.android/.settings/org.eclipse.jdt.core.prefs",
"chars": 173,
"preview": "eclipse.preferences.version=1\norg.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6\norg.eclipse.jdt.core.compiler.com"
},
{
"path": "源代码/2.2.5/mir9/proj.android/AndroidManifest.xml",
"chars": 1198,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n package="
},
{
"path": "源代码/2.2.5/mir9/proj.android/build_native.bat",
"chars": 1241,
"preview": "@echo off\n\nset DIR=%~dp0\nset APP_ROOT=%DIR%..\\\nset APP_ANDROID_ROOT=%DIR%\nset COCOS2DX_ROOT=%QUICK_COCOS2DX_ROOT%\\lib\\co"
},
{
"path": "源代码/2.2.5/mir9/proj.android/build_native.sh",
"chars": 1356,
"preview": "#!/usr/bin/env bash\n\nDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\nAPP_ROOT=\"$DIR/..\"\nAPP_ANDROID_ROOT=\"$DIR\"\n"
},
{
"path": "源代码/2.2.5/mir9/proj.android/clean.bat",
"chars": 98,
"preview": "@echo off\n\nset DIR=%~dp0\nrmdir /s/q %DIR%obj\nrmdir /s/q %DIR%libs\\armeabi\nrmdir /s/q %DIR%assets\n\n"
},
{
"path": "源代码/2.2.5/mir9/proj.android/clean.sh",
"chars": 146,
"preview": "#!/usr/bin/env bash\nDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\nrm -fr $DIR/obj/*\nrm -fr $DIR/libs/armeabi/*"
},
{
"path": "源代码/2.2.5/mir9/proj.android/gen/com/zym/mir9/BuildConfig.java",
"chars": 154,
"preview": "/** Automatically generated file. DO NOT MODIFY */\npackage com.zym.mir9;\n\npublic final class BuildConfig {\n public fi"
},
{
"path": "源代码/2.2.5/mir9/proj.android/gen/com/zym/mir9/R.java",
"chars": 467,
"preview": "/* AUTO-GENERATED FILE. DO NOT MODIFY.\n *\n * This class was automatically generated by the\n * aapt tool from the resour"
},
{
"path": "源代码/2.2.5/mir9/proj.android/jni/Android.mk",
"chars": 485,
"preview": "LOCAL_PATH := $(call my-dir)\n\ninclude $(CLEAR_VARS)\n\nLOCAL_MODULE := game_shared\n\nLOCAL_MODULE_FILENAME := libgame\n\nLOCA"
},
{
"path": "源代码/2.2.5/mir9/proj.android/jni/Application.mk",
"chars": 166,
"preview": "APP_STL := gnustl_static\nAPP_CPPFLAGS := -D__GXX_EXPERIMENTAL_CXX0X__ -std=gnu++11 -frtti -Wno-error=format-security -fs"
},
{
"path": "源代码/2.2.5/mir9/proj.android/jni/hellocpp/main.cpp",
"chars": 1120,
"preview": "\n#include \"cocos2d.h\"\n#include \"AppDelegate.h\"\n#include \"platform/android/jni/JniHelper.h\"\n#include <jni.h>\n#include <an"
},
{
"path": "源代码/2.2.5/mir9/proj.android/jni/list.sh",
"chars": 316,
"preview": "#!/bin/bash\n\nappend_str=' \\'\n\nlist_alldir()\n{\n for file in $1/*\n do\n if [ -f $file ]; then\n echo"
},
{
"path": "源代码/2.2.5/mir9/proj.android/project.properties",
"chars": 702,
"preview": "# This file is automatically generated by Android Tools.\n# Do not modify this file -- YOUR CHANGES WILL BE ERASED!\n#\n# T"
},
{
"path": "源代码/2.2.5/mir9/proj.android/res/values/strings.xml",
"chars": 106,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n <string name=\"app_name\">热血沙城</string>\n</resources>\n"
},
{
"path": "源代码/2.2.5/mir9/proj.android/src/com/zym/mir9/Mir9.java",
"chars": 1541,
"preview": "/****************************************************************************\nCopyright (c) 2010-2012 cocos2d-x.org\n\nhtt"
},
{
"path": "源代码/2.2.5/mir9/proj.ios/AppController.h",
"chars": 1667,
"preview": "/****************************************************************************\n Copyright (c) 2010 cocos2d-x.org\n\n http:/"
},
{
"path": "源代码/2.2.5/mir9/proj.ios/AppController.mm",
"chars": 5323,
"preview": "/****************************************************************************\n Copyright (c) 2010 cocos2d-x.org\n\n http:/"
},
{
"path": "源代码/2.2.5/mir9/proj.ios/Resources/Info.plist",
"chars": 1366,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "源代码/2.2.5/mir9/proj.ios/RootViewController.h",
"chars": 1521,
"preview": "/****************************************************************************\n Copyright (c) 2010-2011 cocos2d-x.org\n Co"
},
{
"path": "源代码/2.2.5/mir9/proj.ios/RootViewController.mm",
"chars": 2768,
"preview": "/****************************************************************************\n Copyright (c) 2010-2011 cocos2d-x.org\n Co"
},
{
"path": "源代码/2.2.5/mir9/proj.ios/main.m",
"chars": 228,
"preview": "\n#import <UIKit/UIKit.h>\n\nint main(int argc, char *argv[]) {\n NSAutoreleasePool *pool = [NSAutoreleasePool new];\n "
},
{
"path": "源代码/2.2.5/mir9/proj.ios/mir9.xcodeproj/project.pbxproj",
"chars": 31438,
"preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
},
{
"path": "源代码/2.2.5/mir9/proj.mac/AppController.h",
"chars": 1865,
"preview": "/****************************************************************************\n Copyright (c) 2010 cocos2d-x.org\n\n http:/"
},
{
"path": "源代码/2.2.5/mir9/proj.mac/AppController.mm",
"chars": 12109,
"preview": "/****************************************************************************\n Copyright (c) 2010 cocos2d-x.org\n\n http:/"
},
{
"path": "源代码/2.2.5/mir9/proj.mac/Info.plist",
"chars": 1207,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "源代码/2.2.5/mir9/proj.mac/MainMenu.xib",
"chars": 24169,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3"
},
{
"path": "源代码/2.2.5/mir9/proj.mac/main.m",
"chars": 120,
"preview": "\n#import <Cocoa/Cocoa.h>\n\nint main(int argc, char *argv[])\n{\n return NSApplicationMain(argc, (const char **)argv);\n}\n"
},
{
"path": "源代码/2.2.5/mir9/proj.mac/mir9.xcodeproj/project.pbxproj",
"chars": 23343,
"preview": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section *"
},
{
"path": "源代码/2.2.5/mir9/proj.win32/app.cpp",
"chars": 11871,
"preview": "\n#pragma comment(lib, \"comctl32.lib\")\n#pragma comment(linker, \"\\\"/manifestdependency:type='Win32' name='Microsoft.Window"
},
{
"path": "源代码/2.2.5/mir9/proj.win32/app.h",
"chars": 1244,
"preview": "\n#pragma once\n\n#include \"resource.h\"\n\n// C RunTime Header Files\n#include \"CCStdC.h\"\n\n#include <string>\n\n#include \"cocos2"
},
{
"path": "源代码/2.2.5/mir9/proj.win32/mir9.sln",
"chars": 1499,
"preview": "\nMicrosoft Visual Studio Solution File, Format Version 12.00\n# Visual Studio 2012\nProject(\"{8BC9CEB8-8B4A-11D0-8D11-00A"
},
{
"path": "源代码/2.2.5/mir9/proj.win32/mir9.vcxproj",
"chars": 14561,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Project DefaultTargets=\"Build\" ToolsVersion=\"4.0\" xmlns=\"http://schemas.microso"
},
{
"path": "源代码/2.2.5/mir9/proj.win32/mir9.vcxproj.filters",
"chars": 1389,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Project ToolsVersion=\"4.0\" xmlns=\"http://schemas.microsoft.com/developer/msbuil"
},
{
"path": "源代码/2.2.5/mir9/proj.win32/stdafx.cpp",
"chars": 21,
"preview": "\n#include \"stdafx.h\"\n"
},
{
"path": "源代码/2.2.5/mir9/proj.win32/stdafx.h",
"chars": 257,
"preview": "\n#pragma once\n\n#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers\n\n// Windows Hea"
},
{
"path": "源代码/2.2.5/mir9/proj.win32/targetver.h",
"chars": 37,
"preview": "#pragma once\n\n#include <SDKDDKVer.h>\n"
},
{
"path": "源代码/2.2.5/mir9/run-mac.sh",
"chars": 448,
"preview": "#!/bin/bash\nDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\n\nBIN=\"$DIR/proj.mac/bin/mir9.app/Contents/MacOS/mir9"
},
{
"path": "源代码/2.2.5/mir9/run-win.bat",
"chars": 171,
"preview": "@echo off\nE:\\Demo\\cocos2d-x\\quick-cocos2d-x-2.2.5\\player\\win\\player.exe -workdir E:\\Demo\\cocos2d-x\\quick-cocos2d-x-2.2.5"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/GameSocket.lua",
"chars": 1476,
"preview": "local PlayerController = require(\"app.figure.PlayerController\")\n\nlocal GameSocket = class(\"GameSocket\")\n\nfunction GameSo"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/MyApp.lua",
"chars": 312,
"preview": "\nrequire(\"config\")\nrequire(\"framework.init\")\n\nlocal MyApp = class(\"MyApp\", cc.mvc.AppBase)\n\nfunction MyApp:ctor()\n My"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/figure/Enemy.lua",
"chars": 6462,
"preview": "local scheduler = require(\"framework.scheduler\")\nlocal MapPoint = require(\"app.map.MapPoint\")\nlocal Monomer = require(\"a"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/figure/Figure.lua",
"chars": 10634,
"preview": "local TextureController = require(\"app.figure.TextureController\") \n\nlocal TAG_ANIMATE = 0xfffff0\n\n-- 人物方向\nFigureDirectio"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/figure/Monomer.lua",
"chars": 33130,
"preview": "local scheduler = require(\"framework.scheduler\")\nlocal Figure = require(\"app.figure.Figure\")\nlocal MapPoint = require(\"a"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/figure/Player.lua",
"chars": 7810,
"preview": "local scheduler = require(\"framework.scheduler\")\nlocal MapPoint = require(\"app.map.MapPoint\")\nlocal PlayerController = r"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/figure/PlayerController.lua",
"chars": 612,
"preview": "\n-- 纹理控制器类\nlocal PlayerController = class(\"PlayerController\")\n\nfunction PlayerController:ctor()\n self.m_playerNumber "
},
{
"path": "源代码/2.2.5/mir9/scripts/app/figure/TextureController.lua",
"chars": 6139,
"preview": "local scheduler = require(\"framework.scheduler\")\n\nTexturePathType = {\n Figure = 1,\n Monster = 2,\n Hair = 3,\n "
},
{
"path": "源代码/2.2.5/mir9/scripts/app/game_ui/AttackEnemyInfo.lua",
"chars": 2301,
"preview": "local scheduler = require(\"framework.scheduler\")\n\nlocal AttackEnemyInfo = class(\"AttackEnemyInfo\", function()\n return"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/game_ui/CCTouchMouse.lua",
"chars": 1300,
"preview": "-- 点击鼠标精灵类\nlocal CCTouchMouse = class(\"CCTouchMouse\", function()\n return display.newSprite()\nend)\n\nfunction CCTouchMo"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/game_ui/FlutteringFairy.lua",
"chars": 2343,
"preview": "FairyType = {\n AddExp = 0,\n AddBlood = 1,\n SubBlood = 2,\n SubMagic = 3 \n}\n\n-- 飞舞的精灵类\nlocal FlutteringFair"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/game_ui/GameInfoUIController.lua",
"chars": 9340,
"preview": "local PlayerController = require(\"app.figure.PlayerController\")\nlocal MapThumbnailMenu = require(\"app.game_ui.MapThumbna"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/game_ui/GameOptions.lua",
"chars": 996,
"preview": "local GameOptions = class(\"GameOptions\", function()\n return display.newNode()\nend)\n\nfunction GameOptions:ctor()\n l"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/game_ui/GameTabBarMenu.lua",
"chars": 3022,
"preview": "local PropColumnMenu = require(\"app.game_ui.PropColumn\")\nlocal SkillTableView = require(\"app.game_ui.SkillTableView\")\nlo"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/game_ui/LAlertView.lua",
"chars": 2915,
"preview": "local LAlertView = class(\"LAlertView\", function()\n return CCScale9Sprite:create(\"ui/alert_backGround.png\")\nend)\n\nfunc"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/game_ui/LOperationMenu.lua",
"chars": 13785,
"preview": "local MapPoint = require(\"app.map.MapPoint\")\nlocal ProgressAutomatic = require(\"app.game_ui.ProgressAutomatic\")\nlocal Ga"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/game_ui/MapThumbnailLayer.lua",
"chars": 8950,
"preview": "local MapPoint = require(\"app.map.MapPoint\")\n\nlocal centerPoint = cc.p(72, 93)\nlocal lenght = 60\nlocal scale = 1000\n\nloc"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/game_ui/ProgressAutomatic.lua",
"chars": 1876,
"preview": "local scheduler = require(\"framework.scheduler\")\n\nlocal ProgressAutomatic = class(\"ProgressAutomatic\", function(sprite)\n"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/game_ui/PropColumn.lua",
"chars": 8515,
"preview": "local MapPoint = require(\"app.map.MapPoint\")\nlocal BgMap = require(\"app.map.BgMap\")\nlocal PropIconShow = require(\"app.pr"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/game_ui/SkillTableView.lua",
"chars": 9292,
"preview": "local SkillTableView = class(\"SkillTableView\", function()\n return display.newNode()\nend)\n\nfunction SkillTableView:cto"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/map/AStarSearch.lua",
"chars": 15003,
"preview": "\nSEARCH_STATE_NOT_INITIALISED = 0\nSEARCH_STATE_SEARCHING = 1\nSEARCH_STATE_SUCCEEDED = 2\nSEARCH_STATE_FAILED = 3\nSEARCH_S"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/map/BgMap.lua",
"chars": 12870,
"preview": "local cjson = require(\"cjson\")\nlocal scheduler = require(\"framework.scheduler\")\nlocal BgMapFloorTile = require(\"app.map."
},
{
"path": "源代码/2.2.5/mir9/scripts/app/map/BgMapFloorTile.lua",
"chars": 1767,
"preview": "\n-- 背景地图地砖类\nlocal BgMapFloorTile = class(\"BgMapFloorTile\", function()\n return display.newNode()\nend)\n\nlocal OFF_SIZE "
},
{
"path": "源代码/2.2.5/mir9/scripts/app/map/MapPoint.lua",
"chars": 2935,
"preview": "\n-- \nlocal MapPoint = class(\"MapPoint\")\n\nlocal GRID_SIZE = cc.size(60, 32)\n\nfunction MapPoint:ctor(x, z)\n if (x and z"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/map/NpcFigure.lua",
"chars": 5228,
"preview": "local LAlertView = require(\"app.game_ui.LAlertView\")\n\nlocal NpcFigure = class(\"NpcFigure\", function()\n return display"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/map/NpcInfo.lua",
"chars": 323,
"preview": "-- NPC信息类\nlocal NpcInfo = class(\"NpcInfo\")\n\nfunction NpcInfo:ctor(json_value)\n self.m_nID = json_value[\"ID\"]\n self"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/map/NpcInfoSystem.lua",
"chars": 665,
"preview": "local cjson = require(\"cjson\")\nlocal NpcInfo = require(\"app.map.NpcInfo\")\n\n-- NPC信息系统类\nlocal NpcInfoSystem = class(\"NpcI"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/map/PathAStar.lua",
"chars": 8078,
"preview": "local MapPoint = require(\"app.map.MapPoint\")\nlocal AStarSearch = require(\"app.map.AStarSearch\") \n\nlocal MapSearchNode = "
},
{
"path": "源代码/2.2.5/mir9/scripts/app/map/PortalSprite.lua",
"chars": 1244,
"preview": "-- 传送门精灵类\nlocal PortalSprite = class(\"PortalSprite\", function()\n return display.newSprite()\nend)\n\nfunction PortalSpri"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/prop_system/PropIconShow.lua",
"chars": 392,
"preview": "-- 属性图标显示类\nlocal PropIconShow = class(\"PropIconShow\", function()\n return display.newSprite()\nend)\n\nfunction PropIconS"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/prop_system/PropInfo.lua",
"chars": 1499,
"preview": "-- 属性信息类\nlocal PropInfo = class(\"PropInfo\")\n\nfunction PropInfo:ctor(json_value) \n self.m_nNum = json_value[\"ID\"]\n "
},
{
"path": "源代码/2.2.5/mir9/scripts/app/prop_system/PropSystem.lua",
"chars": 664,
"preview": "local cjson = require(\"cjson\")\nlocal PropInfo = require(\"app.prop_system.PropInfo\")\n\n-- 属性系统类\nlocal PropSystem = class(\""
},
{
"path": "源代码/2.2.5/mir9/scripts/app/scenes/GameLoading.lua",
"chars": 2714,
"preview": "local scheduler = require(\"framework.scheduler\")\n\nlocal GameLoading = class(\"GameLoading\", function()\n return display"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/scenes/LoginScene.lua",
"chars": 5025,
"preview": "local LoginScene = class(\"LoginScene\", function()\n return display.newScene(\"LoginScene\")\nend)\n\nfunction LoginScene:ct"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/scenes/MainScene.lua",
"chars": 18864,
"preview": "local scheduler = require(\"framework.scheduler\")\nlocal AttackSkillSystem = require(\"app.skill_system.AttackSkillSystem\")"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/scenes/RoleSelScene.lua",
"chars": 7812,
"preview": "local GameSocket = require(\"app.GameSocket\")\nlocal GameLoading = require(\"app.scenes.GameLoading\")\nlocal Figure = requir"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/skill_system/AttackSkillInfo.lua",
"chars": 1272,
"preview": "-- 攻击技能信息类\nlocal AttackSkillInfo = class(\"AttackSkillInfo\")\n\nfunction AttackSkillInfo:ctor(json_value) \n self.m_nN"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/skill_system/AttackSkillSystem.lua",
"chars": 836,
"preview": "local cjson = require(\"cjson\")\nlocal AttackSkillInfo = require(\"app.skill_system.AttackSkillInfo\")\n\n-- 攻击技能系统类\nlocal Att"
},
{
"path": "源代码/2.2.5/mir9/scripts/app/skill_system/SkillEffectShow.lua",
"chars": 13236,
"preview": "local scheduler = require(\"framework.scheduler\")\nlocal BgMap = require(\"app.map.BgMap\")\nlocal GameSocket = require(\"app."
},
{
"path": "源代码/2.2.5/mir9/scripts/config.lua",
"chars": 519,
"preview": "\n-- 0 - disable debug info, 1 - less debug info, 2 - verbose debug info\nDEBUG = 1\n\n-- display FPS stats on screen\nDEBUG_"
},
{
"path": "源代码/2.2.5/mir9/scripts/main.lua",
"chars": 348,
"preview": "function __G__TRACKBACK__(errorMessage)\n print(\"----------------------------------------\")\n print(\"LUA ERROR: \" .."
},
{
"path": "源代码/2.2.5/mir9/sources/AppDelegate.cpp",
"chars": 3923,
"preview": "\n#include \"cocos2d.h\"\n#include \"AppDelegate.h\"\n#include \"SimpleAudioEngine.h\"\n#include \"support/CCNotificationCenter.h\"\n"
},
{
"path": "源代码/2.2.5/mir9/sources/AppDelegate.h",
"chars": 1278,
"preview": "\n#ifndef _APP_DELEGATE_H_\n#define _APP_DELEGATE_H_\n\n#include \"CCApplication.h\"\n#include \"ProjectConfig/SimulatorConfig"
},
{
"path": "源代码/mir9/.project",
"chars": 333,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<projectDescription>\n\t<name>mir9</name>\n\t<comment></comment>\n\t<projects>\n\t</proje"
},
{
"path": "源代码/mir9/config.json",
"chars": 1328,
"preview": "{\n \"init_cfg\":{\n \"isLandscape\": true,\n \"isWindowTop\": false,\n \"name\": \"mir9\",\n \"width\": 960,\n"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/AppDelegate.cpp",
"chars": 5573,
"preview": "#include \"AppDelegate.h\"\n#include \"CCLuaEngine.h\"\n#include \"SimpleAudioEngine.h\"\n#include \"cocos2d.h\"\n#if (CC_TARGET_PLA"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/AppDelegate.h",
"chars": 1066,
"preview": "#ifndef __APP_DELEGATE_H__\n#define __APP_DELEGATE_H__\n\n#include \"cocos2d.h\"\n\n/**\n@brief The cocos2d Application.\n\nThe"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/CodeIDESupport.h",
"chars": 234,
"preview": "#ifndef __CODE_IDE_SUPPORT_H__\n#define __CODE_IDE_SUPPORT_H__\n\n// define 1 to open Cocos Code IDE support, 0 to disable\n"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/ConfigParser.cpp",
"chars": 5710,
"preview": "\n#include \"json/document.h\"\n#include \"json/filestream.h\"\n#include \"json/stringbuffer.h\"\n#include \"json/writer.h\"\n#includ"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/ConfigParser.h",
"chars": 1370,
"preview": "#ifndef __CONFIG_PARSER_H__\n#define __CONFIG_PARSER_H__\n\n#include <string>\n#include <vector>\n#include \"cocos2d.h\"\n#inclu"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/VisibleRect.cpp",
"chars": 2926,
"preview": "/****************************************************************************\n Copyright (c) 2013-2014 Chukong Technolog"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/VisibleRect.h",
"chars": 580,
"preview": "#ifndef __VISIBLERECT_H__\n#define __VISIBLERECT_H__\n\n#include \"cocos2d.h\"\n\nclass VisibleRect\n{\npublic:\n static cocos2"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/anysdk_manual_bindings.cpp",
"chars": 73302,
"preview": "/*\n** Lua binding: anysdk\n** Generated automatically by tolua++-1.0.92 on Wed Jul 2 14:12:17 2014.\n*/\n\n/***************"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/anysdk_manual_bindings.h",
"chars": 260,
"preview": "#ifndef __LUA_ANYSDK_MANUAL_BINDINGS_H_\n#define __LUA_ANYSDK_MANUAL_BINDINGS_H_\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/anysdkbindings.cpp",
"chars": 65625,
"preview": "/*\n** Lua binding: anysdk\n** Generated automatically by tolua++-1.0.92 on Wed Jul 2 17:07:32 2014.\n*/\n\n/***************"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/anysdkbindings.h",
"chars": 239,
"preview": "#ifndef __LUA_ANYSDK_BINDINGS_H_\n#define __LUA_ANYSDK_BINDINGS_H_\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n#include \"tolu"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/lua_module_register.h",
"chars": 1318,
"preview": "#ifndef __LUA_TEMPLATE_RUNTIME_FRAMEWORKS_RUNTIME_SRC_CLASSES_LUA_MODULE_REGISTER_H__\n#define __LUA_TEMPLATE_RUNTIME_FRA"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/ConnectWaitLayer.cpp",
"chars": 6991,
"preview": "/****************************************************************************\nCopyright (c) 2013 cocos2d-x.org\n\nhttp://w"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/ConnectWaitLayer.h",
"chars": 1640,
"preview": "/****************************************************************************\nCopyright (c) 2013 cocos2d-x.org\n\nhttp://w"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/ConsoleCommand.cpp",
"chars": 13426,
"preview": "/****************************************************************************\nCopyright (c) 2013 cocos2d-x.org\n\nhttp://w"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/ConsoleCommand.h",
"chars": 1641,
"preview": "/****************************************************************************\nCopyright (c) 2013 cocos2d-x.org\n\nhttp://w"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/FileServer.cpp",
"chars": 17266,
"preview": "/****************************************************************************\nCopyright (c) 2013 cocos2d-x.org\n\nhttp://w"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/FileServer.h",
"chars": 3832,
"preview": "/****************************************************************************\nCopyright (c) 2013 cocos2d-x.org\n\nhttp://w"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/Landscape_png.cpp",
"chars": 695065,
"preview": "#include \"ResData.h\"\nconst unsigned char __landscapePngData[115832] = {\n0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, "
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/PlayDisable_png.cpp",
"chars": 145118,
"preview": "#include \"ResData.h\"\nconst unsigned char __playDisablePngData[24174] = {\n0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A,"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/PlayEnable_png.cpp",
"chars": 121597,
"preview": "#include \"ResData.h\"\nconst unsigned char __playEnablePngData[20254] = {\n0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, "
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/Portrait_png.cpp",
"chars": 733356,
"preview": "#include \"ResData.h\"\nconst unsigned char __portraitPngData[122214] = {\n0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, 0"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/Protos.pb.cc",
"chars": 26557,
"preview": "// Generated by the protocol buffer compiler. DO NOT EDIT!\n// source: Protos.proto\n\n#define INTERNAL_SUPPRESS_PROTOBUF_"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/Protos.pb.h",
"chars": 28601,
"preview": "// Generated by the protocol buffer compiler. DO NOT EDIT!\n// source: Protos.proto\n\n#ifndef PROTOBUF_Protos_2eproto__IN"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/ResData.h",
"chars": 282,
"preview": "#ifndef _RESDATA__H_\n#define _RESDATA__H_\n\nextern const unsigned char __shinePngData[11776];\nextern const unsigned cha"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/Runtime.cpp",
"chars": 9034,
"preview": "/****************************************************************************\nCopyright (c) 2013 cocos2d-x.org\n\nhttp://w"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/Runtime.h",
"chars": 1724,
"preview": "/****************************************************************************\nCopyright (c) 2013 cocos2d-x.org\n\nhttp://w"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/Shine_png.cpp",
"chars": 70724,
"preview": "#include \"ResData.h\"\nconst unsigned char __shinePngData[11776] = {\n0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, 0x00,"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/lua_debugger.c",
"chars": 733845,
"preview": "\n/* lua_debugger.c */\n\n#if __cplusplus\nextern \"C\" {\n#endif\n\n#include \"lua.h\"\n#include \"lauxlib.h\"\n#include \"lua_debugger"
},
{
"path": "源代码/mir9/frameworks/runtime-src/Classes/runtime/lua_debugger.h",
"chars": 377,
"preview": "\n/* lua_debugger.h.h */\n\n#ifndef __LUA_MODULES_049C000C96FE547176CCBB7690BA01B6_H_\n#define __LUA_MODULES_049C000C96FE547"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/AndroidManifest.xml",
"chars": 2220,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n packag"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/ant.properties",
"chars": 698,
"preview": "# This file is used to override default values used by the Ant build system.\n#\n# This file must be checked into Version "
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/build-cfg.json",
"chars": 499,
"preview": "{\n \"ndk_module_path\" :[\n \"../../cocos2d-x\",\n \"../../cocos2d-x/cocos/\",\n \"../../cocos2d-x/externa"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/build.xml",
"chars": 3496,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project name=\"mir9\" default=\"debug\">\n\n <!-- The local.properties file is crea"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/build_apk.bat",
"chars": 168,
"preview": "@echo off\nset DIR=%~dp0\n%QUICK_V3_ROOT%\\quick\\bin\\win32\\php.exe \"%QUICK_V3_ROOT%/quick/bin/lib/build_apk.php\" -pdir %DIR"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/build_apk.sh",
"chars": 218,
"preview": "#!/bin/bash\nDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\nexport QUICK_V3_ROOT=`cat ~/.QUICK_V3_ROOT`\nphp \"$QU"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/build_native.bat",
"chars": 75,
"preview": "@echo off\n\nset DIR=%~dp0\nset NDK_DEBUG=1\ncall %DIR%build_native_release.bat"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/build_native.sh",
"chars": 124,
"preview": "#!/usr/bin/env bash\n\nDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\nexport NDK_DEBUG=1\n$DIR/build_native_releas"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/build_native_release.bat",
"chars": 1464,
"preview": "@echo off\n\nset DIR=%~dp0\nset APP_ROOT=%DIR%..\\..\\..\\\nset APP_ANDROID_ROOT=%DIR%\nset COCOS2DX_ROOT=%QUICK_V3_ROOT%\n\necho "
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/build_native_release.sh",
"chars": 1749,
"preview": "#!/usr/bin/env bash\n\n# set .bash_profile or .profile\nif [ -f ~/.bash_profile ]; then\nPROFILE_NAME=~/.bash_profile\nelse\nP"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/clean.bat",
"chars": 98,
"preview": "@echo off\n\nset DIR=%~dp0\nrmdir /s/q %DIR%obj\nrmdir /s/q %DIR%libs\\armeabi\nrmdir /s/q %DIR%assets\n\n"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/clean.sh",
"chars": 146,
"preview": "#!/usr/bin/env bash\nDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\nrm -fr $DIR/obj/*\nrm -fr $DIR/libs/armeabi/*"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/gen/com/zym/mir9/R.java",
"chars": 2428,
"preview": "/* AUTO-GENERATED FILE. DO NOT MODIFY.\n *\n * This class was automatically generated by the\n * aapt tool from the resour"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/jni/Android.mk",
"chars": 1787,
"preview": "LOCAL_PATH := $(call my-dir)\n\ninclude $(CLEAR_VARS)\n\nLOCAL_MODULE := cocos2dlua_shared\n\nLOCAL_MODULE_FILENAME := libcoco"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/jni/Application.mk",
"chars": 1434,
"preview": "APP_STL := gnustl_static\nNDK_TOOLCHAIN_VERSION=clang\n\nAPP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/jni/hellolua/Runtime_android.cpp",
"chars": 588,
"preview": "#include <jni.h>\n#include <android/log.h>\n#include \"jni/JniHelper.h\"\n#include <string>\n#include <vector>\nusing namespace"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/jni/hellolua/main.cpp",
"chars": 935,
"preview": "#include \"AppDelegate.h\"\n#include \"cocos2d.h\"\n#include \"platform/android/jni/JniHelper.h\"\n#include <jni.h>\n#include <and"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/proguard-project.txt",
"chars": 781,
"preview": "# To enable ProGuard in your project, edit project.properties\n# to define the proguard.config property as described in t"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/project.properties",
"chars": 434,
"preview": "# This file is automatically generated by Android Tools.\n# Do not modify this file -- YOUR CHANGES WILL BE ERASED!\n#\n# T"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/android/Android.mk",
"chars": 367,
"preview": "LOCAL_PATH := $(call my-dir)\n\ninclude $(CLEAR_VARS)\nLOCAL_MODULE := PluginProtocolStatic\nLOCAL_MODULE_FILENAME := libPlu"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/android/PluginJavaData.h",
"chars": 315,
"preview": "#ifndef __PLUGIN_JAVA_DATA_H__\n#define __PLUGIN_JAVA_DATA_H__\n\n#include <string>\n#include <jni.h>\n\nnamespace anysdk { na"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/android/PluginJniHelper.h",
"chars": 1270,
"preview": "#ifndef __PLUGIN_JNI_HELPER_H__\n#define __PLUGIN_JNI_HELPER_H__\n\n#include <jni.h>\n#include <string>\n\nnamespace anysdk {n"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/android/PluginJniMacros.h",
"chars": 13625,
"preview": "#ifndef __PLUGIN_JNI_MACROS_H__\n#define __PLUGIN_JNI_MACROS_H__\n\n#define return_if_fails(cond) if (!(cond)) return;\n#def"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/android/PluginUtils.h",
"chars": 5505,
"preview": "#ifndef __PLUGIN_UTILS_H__\n#define __PLUGIN_UTILS_H__\n\n#include \"PluginJniHelper.h\"\n#include \"PluginJavaData.h\"\n#include"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/AgentManager.h",
"chars": 3659,
"preview": "/** @file AgentManager.h\n */\n\n\n#ifndef __CCX_AGENTMANAGER_H__\n#define __CCX_AGENTMANAGER_H__\n\n#include \"PluginManager.h\""
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/PluginFactory.h",
"chars": 1236,
"preview": "/** @file PluginFactory.h\n */\n#ifndef __CCX_PLUGIN_FACTORY_H__\n#define __CCX_PLUGIN_FACTORY_H__\n\nnamespace anysdk { name"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/PluginManager.h",
"chars": 1092,
"preview": "/** @file PluginFactory.h\n */\n#ifndef __CCX_PLUGINMANAGER_H__\n#define __CCX_PLUGINMANAGER_H__\n\n#include \"PluginProtocol."
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/PluginParam.h",
"chars": 2555,
"preview": "/** @file PluginParam.h\n */\n#ifndef __CCX_PLUGIN_PARAM_H__\n#define __CCX_PLUGIN_PARAM_H__\n\n#include <map>\n#include <stri"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/PluginProtocol.h",
"chars": 3345,
"preview": "/** @file PluginProtocol.h\n */\n#ifndef __CCX_IPLUGIN_H__\n#define __CCX_IPLUGIN_H__\n\n#include \"PluginParam.h\"\n#include <v"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/ProtocolAds.h",
"chars": 4056,
"preview": "/** @file ProtocolAds.h\n */\n#ifndef __CCX_PROTOCOL_ADS_H__\n#define __CCX_PROTOCOL_ADS_H__\n\n#include \"PluginProtocol.h\"\n#"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/ProtocolAnalytics.h",
"chars": 2664,
"preview": "/** @file ProtocolAnalytics.h\n */\n#ifndef __CCX_PROTOCOL_ANALYTICS_H__\n#define __CCX_PROTOCOL_ANALYTICS_H__\n\n#include \"P"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/ProtocolIAP.h",
"chars": 3494,
"preview": "/** @file ProtocolIAP.h\n */\n#ifndef __CCX_PROTOCOL_IAP_H__\n#define __CCX_PROTOCOL_IAP_H__\n\n#include \"PluginProtocol.h\"\n#"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/ProtocolPush.h",
"chars": 2041,
"preview": "/** @file PluginFactory.h\n */\n#ifndef __CCX_PROTOCOL_PUSH_H__\n#define __CCX_PROTOCOL_PUSH_H__\n\n#include \"PluginProtocol."
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/ProtocolShare.h",
"chars": 2085,
"preview": "/** @file ProtocolShare.h\n */\n#ifndef __CCX_PROTOCOL_SHARE_H__\n#define __CCX_PROTOCOL_SHARE_H__\n\n#include \"PluginProto"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/ProtocolSocial.h",
"chars": 2898,
"preview": "/** @file ProtocolSocial.h\n */\n#ifndef __CCX_PROTOCOL_SOCIAL_H__\n#define __CCX_PROTOCOL_SOCIAL_H__\n\n#include \"PluginPr"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/include/ProtocolUser.h",
"chars": 4351,
"preview": "/** @file ProtocolUser.h\n */\n#ifndef __CCX_PROTOCOL_USER_H__\n#define __CCX_PROTOCOL_USER_H__\n\n#include \"PluginProtocol.h"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/res/layout/plugin_ads.xml",
"chars": 788,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n an"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/res/layout/plugin_login.xml",
"chars": 1837,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n a"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/protocols/res/values/plugin_string.xml",
"chars": 1120,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n <string name=\"plugin_login_title\">账号登陆</string>\n <string name="
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/res/layout/plugin_ads.xml",
"chars": 788,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n an"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/res/layout/plugin_login.xml",
"chars": 1837,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n a"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/res/values/plugin_string.xml",
"chars": 1120,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n <string name=\"plugin_login_title\">账号登陆</string>\n <string name="
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/res/values/strings.xml",
"chars": 106,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n <string name=\"app_name\">mir9</string>\n</resources>\n"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/src/org/cocos2dx/lib/QuickHTTPInterface.java",
"chars": 13542,
"preview": "package org.cocos2dx.lib;\n\nimport java.io.DataInputStream;\nimport java.io.DataOutputStream;\nimport java.io.File;\nimport "
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android/src/org/cocos2dx/lua/AppActivity.java",
"chars": 5345,
"preview": "/****************************************************************************\nCopyright (c) 2008-2010 Ricardo Quesada\nCo"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/.classpath",
"chars": 466,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<classpath>\n\t<classpathentry kind=\"con\" path=\"com.android.ide.eclipse.adt.ANDROID"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/.project",
"chars": 814,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<projectDescription>\n\t<name>AppActivity</name>\n\t<comment></comment>\n\t<projects>\n\t"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/.settings/org.eclipse.jdt.core.prefs",
"chars": 173,
"preview": "eclipse.preferences.version=1\norg.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6\norg.eclipse.jdt.core.compiler.com"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/AndroidManifest.xml",
"chars": 2036,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n packag"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/ant.properties",
"chars": 698,
"preview": "# This file is used to override default values used by the Ant build system.\n#\n# This file must be checked into Version "
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/build-cfg.json",
"chars": 487,
"preview": "{\n \"ndk_module_path\" :[\n \"../../cocos2d-x\",\n \"../../cocos2d-x/cocos/\",\n \"../../cocos2d-x/externa"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/build.xml",
"chars": 3496,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project name=\"mir9\" default=\"debug\">\n\n <!-- The local.properties file is crea"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/build_apk.bat",
"chars": 125,
"preview": "@echo off\nset DIR=%~dp0\n%QUICK_V3_ROOT%\\quick\\bin\\win32\\php.exe \"%QUICK_V3_ROOT%/quick/bin/lib/build_apk.php\" -pdir %DIR"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/build_apk.sh",
"chars": 175,
"preview": "#!/bin/bash\nDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\nexport QUICK_V3_ROOT=`cat ~/.QUICK_V3_ROOT`\nphp \"$QU"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/build_native.bat",
"chars": 75,
"preview": "@echo off\n\nset DIR=%~dp0\nset NDK_DEBUG=1\ncall %DIR%build_native_release.bat"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/build_native.sh",
"chars": 124,
"preview": "#!/usr/bin/env bash\n\nDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\nexport NDK_DEBUG=1\n$DIR/build_native_releas"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/build_native_release.bat",
"chars": 1464,
"preview": "@echo off\n\nset DIR=%~dp0\nset APP_ROOT=%DIR%..\\..\\..\\\nset APP_ANDROID_ROOT=%DIR%\nset COCOS2DX_ROOT=%QUICK_V3_ROOT%\n\necho "
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/build_native_release.sh",
"chars": 1749,
"preview": "#!/usr/bin/env bash\n\n# set .bash_profile or .profile\nif [ -f ~/.bash_profile ]; then\nPROFILE_NAME=~/.bash_profile\nelse\nP"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/clean.bat",
"chars": 98,
"preview": "@echo off\n\nset DIR=%~dp0\nrmdir /s/q %DIR%obj\nrmdir /s/q %DIR%libs\\armeabi\nrmdir /s/q %DIR%assets\n\n"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/clean.sh",
"chars": 146,
"preview": "#!/usr/bin/env bash\nDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\nrm -fr $DIR/obj/*\nrm -fr $DIR/libs/armeabi/*"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/gen/com/zym/mir9/BuildConfig.java",
"chars": 154,
"preview": "/** Automatically generated file. DO NOT MODIFY */\npackage com.zym.mir9;\n\npublic final class BuildConfig {\n public fi"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/gen/com/zym/mir9/R.java",
"chars": 467,
"preview": "/* AUTO-GENERATED FILE. DO NOT MODIFY.\n *\n * This class was automatically generated by the\n * aapt tool from the resour"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/jni/Android.mk",
"chars": 1468,
"preview": "LOCAL_PATH := $(call my-dir)\n\ninclude $(CLEAR_VARS)\n\nLOCAL_MODULE := cocos2dlua_shared\n\nLOCAL_MODULE_FILENAME := libcoco"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/jni/Application.mk",
"chars": 1400,
"preview": "APP_STL := gnustl_static\nNDK_TOOLCHAIN_VERSION=clang\n\nAPP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/jni/hellolua/Runtime_android.cpp",
"chars": 588,
"preview": "#include <jni.h>\n#include <android/log.h>\n#include \"jni/JniHelper.h\"\n#include <string>\n#include <vector>\nusing namespace"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/jni/hellolua/main.cpp",
"chars": 773,
"preview": "#include \"AppDelegate.h\"\n#include \"cocos2d.h\"\n#include \"platform/android/jni/JniHelper.h\"\n#include <jni.h>\n#include <and"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/proguard-project.txt",
"chars": 781,
"preview": "# To enable ProGuard in your project, edit project.properties\n# to define the proguard.config property as described in t"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/project.properties",
"chars": 468,
"preview": "# This file is automatically generated by Android Tools.\n# Do not modify this file -- YOUR CHANGES WILL BE ERASED!\n#\n# T"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/res/values/strings.xml",
"chars": 106,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n <string name=\"app_name\">热血沙城</string>\n</resources>\n"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/src/org/cocos2dx/lib/QuickHTTPInterface.java",
"chars": 13542,
"preview": "package org.cocos2dx.lib;\n\nimport java.io.DataInputStream;\nimport java.io.DataOutputStream;\nimport java.io.File;\nimport "
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.android_no_anysdk/src/org/cocos2dx/lua/AppActivity.java",
"chars": 4631,
"preview": "/****************************************************************************\nCopyright (c) 2008-2010 Ricardo Quesada\nCo"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.ios_mac/Runtime_ios-mac.mm",
"chars": 1091,
"preview": "\n#include <ifaddrs.h>\n#include <arpa/inet.h>\n#include <net/if.h>\n\n#include <string>\n#include <vector>\nusing namespace st"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.ios_mac/ios/AppController.h",
"chars": 1544,
"preview": "/****************************************************************************\n Copyright (c) 2010-2013 cocos2d-x.org\n Co"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.ios_mac/ios/AppController.mm",
"chars": 5782,
"preview": "/****************************************************************************\n Copyright (c) 2010-2013 cocos2d-x.org\n Co"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.ios_mac/ios/Info.plist",
"chars": 4643,
"preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/P"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.ios_mac/ios/Prefix.pch",
"chars": 171,
"preview": "//\n// Prefix header for all source files of the 'mir9' target in the 'mir9' project\n//\n\n#ifdef __OBJC__\n\t#import <Founda"
},
{
"path": "源代码/mir9/frameworks/runtime-src/proj.ios_mac/ios/RootViewController.h",
"chars": 1425,
"preview": "/****************************************************************************\n Copyright (c) 2010-2011 cocos2d-x.org\n Co"
}
]
// ... and 227 more files (download for full content)
About this extraction
This page contains the full source code of the zym2014/mir9-lua GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 427 files (4.7 MB), approximately 1.2M tokens, and a symbol index with 468 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.