
上QQ阅读APP看书,第一时间看更新
2.2 模块介绍
本项目主要包括入口点模块、引脚声明模块、设备类模块、操作基类模块、设备工作控制模块、游戏信息声明模块、游戏记录模块、游戏实体基类模块、反重力小鸭游戏模块、初始界面模块和游戏记录声明模块。下面分别给出各模块的功能介绍及相关代码,程序模块功能关系如图2-4所示。

图2-4 程序模块功能关系图
以上模块分别存放在24个文件中,相关代码按照如下顺序给出:MiniGame.ino、PINS.h、Dominator.h、Dominator.cpp、Device.h、Device.cpp、deDevice.h、deDevice_pics.h、deDevice.cpp、deDevice_pics.cpp、deDeviceDominator.cpp、GamesInfo.h、GamesInfo.cpp、Game_Reserved.h、Game_Reserved.cpp、Game_Reserved_pics.h、Game_Reserved_pics.cpp、GameEntity.h、GameEntity.cpp、Game_GravityDuck.h、Game_GravityDuck_Interface.cpp、Game_GravityDuck_pics.h、Game_GravityDuck_pics.cpp和RecordArgs.h。
2.2.1 入口点模块

2.2.2 引脚声明模块

2.2.3 设备类模块

2.2.4 操作基类模块

2.2.5 设备工作控制模块












2.2.6 游戏信息声明模块

2.2.7 游戏记录模块





2.2.8 游戏实体基类模块

2.2.9 反重力小鸭游戏模块















































2.2.10 初始界面模块
















































2.2.11 游戏记录声明模块
