-
Notifications
You must be signed in to change notification settings - Fork 18
Diablo World Client – Client Code Chinese Annotation (part)
9miao Mobile Game edited this page Aug 25, 2014
·
1 revision
Program operating steps:
- loginregister\logo.h program splash screen logo, there is an action class, it will automatically switch scene in two seconds.
- loginregister\LayerLogin.h login interface
- CData.h some operation classes in system for playing audio files
- extentionClass\network\SocketManager.h client Socket management class, a singleton. There is server address and port in startSocket method.
- extentionClass\network\SocketClient.h SocketClient it has two threads for sending and receiving messages.
- Loading.h wait for UIAlert
- headFile\zhujieMian\homepage.h homepage, send message [4500] to server when init, and then start timer to wait reply from server. Initializing form ‘initTitle,btnsLoading,zhuangtaiLoad’ after receiving the reply.
- headFile\zhujieMian\levelMap.h clkBuilding click a instance for responding to event
- headFile\zhujieMian\popwindow.h it pops up interface, call displaying form after clicking instance. buildingpop::fight: send combat request.
- FireWork.h battle scenes presentation class.