文件名称:TC 2.0 挖地雷
介绍说明--下载内容均来自于网络,请自行研究使用
TC 2.0 挖地雷
关于TC2.0版的挖地雷
1、整个游戏基于事件驱动的工作方式,这一点和windows应用程序是相通的。在程序的主
干中,不停的捕捉鼠标事件,再通过一个函数:
Bool analysis(CPoint point, ClickInfor infor)
来分析鼠标事件作用在哪个对象上(游戏中的元素,比如按钮、菜单、地雷单元格都是
作为一个对象来看待),然后把鼠标事件分配到相应的对象上。不同的对象,对鼠标事件
有自己的事件处理函数,比如菜单的事件处理函数有两个:单击菜单项和鼠标焦点落在
菜单项上。菜单对象能够依据analysis传给它的击键信息,来判断到底调用哪个事件处
理函数。(在windows编程中,其实也是给对象或控件写事件处理函数)。
当然了,我这个程序中事件处理机制是非常基础和简单的,因为用的是TC2.0的编译器,
所以很多东西要自己写,会麻烦一些。
………………详细情况见包内文档!-TC 2.0-dug mines WITH TC 2.0 version of the mines dug an entire game based on event-driven means that the work of this point and windows applications are interlinked. The backbone of the proceedings, repeatedly capturing mouse events, and through a function : Bool analysis (jumping point, ClickInfor infor) to analyze the role of the mouse incident which targeted (game elements, such as buttons, menus, mines cells are targeted as a treat) and then the mouse events corresponding to the distribution of the object. Different targets, the right mouse events has its own function of the incident, such as the incident menu function is two-fold : a menu item and click the mouse focus fell on the menu items. Object menu based on the analysis of the keyboard it pass information to determine which eve
关于TC2.0版的挖地雷
1、整个游戏基于事件驱动的工作方式,这一点和windows应用程序是相通的。在程序的主
干中,不停的捕捉鼠标事件,再通过一个函数:
Bool analysis(CPoint point, ClickInfor infor)
来分析鼠标事件作用在哪个对象上(游戏中的元素,比如按钮、菜单、地雷单元格都是
作为一个对象来看待),然后把鼠标事件分配到相应的对象上。不同的对象,对鼠标事件
有自己的事件处理函数,比如菜单的事件处理函数有两个:单击菜单项和鼠标焦点落在
菜单项上。菜单对象能够依据analysis传给它的击键信息,来判断到底调用哪个事件处
理函数。(在windows编程中,其实也是给对象或控件写事件处理函数)。
当然了,我这个程序中事件处理机制是非常基础和简单的,因为用的是TC2.0的编译器,
所以很多东西要自己写,会麻烦一些。
………………详细情况见包内文档!-TC 2.0-dug mines WITH TC 2.0 version of the mines dug an entire game based on event-driven means that the work of this point and windows applications are interlinked. The backbone of the proceedings, repeatedly capturing mouse events, and through a function : Bool analysis (jumping point, ClickInfor infor) to analyze the role of the mouse incident which targeted (game elements, such as buttons, menus, mines cells are targeted as a treat) and then the mouse events corresponding to the distribution of the object. Different targets, the right mouse events has its own function of the incident, such as the incident menu function is two-fold : a menu item and click the mouse focus fell on the menu items. Object menu based on the analysis of the keyboard it pass information to determine which eve
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 23825769tc 2.0 挖地雷.rar 列表 TC 2.0 挖地雷\MAIN.EXE TC 2.0 挖地雷\picture\main.bmp TC 2.0 挖地雷\picture\Thumbs.db TC 2.0 挖地雷\picture TC 2.0 挖地雷\源代码\CGraph.h TC 2.0 挖地雷\源代码\CMouse.h TC 2.0 挖地雷\源代码\CTimer.h TC 2.0 挖地雷\源代码\function.h TC 2.0 挖地雷\源代码\landmine.h TC 2.0 挖地雷\源代码\main.c TC 2.0 挖地雷\源代码\type.h TC 2.0 挖地雷\源代码\关于挖地雷.doc TC 2.0 挖地雷\源代码 TC 2.0 挖地雷