登录
首页 » C/C++ » 源码和笔记

源码和笔记

于 2018-12-24 发布 文件大小:2459KB
0 65
下载积分: 1 下载次数: 0

代码说明:

  我们在整个游戏中,看到的所有内容,我们都理解为游戏对象。 那么每一个游戏对象,都是由一个单独的类创建而来。 为了便于我们程序的可扩展性,减少冗余代码,我们写一个父类,让这些游戏对象的子类 来继承我的父类,我在父类中,将子类中所共有的成员全部都封装起来。 应该记录游戏对象的横纵坐标 需要记录游戏对象的高度和宽度(All the content we see in the whole game is understood as the object of the game. Then every game object is created by a separate class. In order to facilitate the scalability of our program and reduce redundant code, we write a parent class to let the children of these game objects. To inherit my parent class, I encapsulate all the members that are common in the subclass. The abscissa and ordinate coordinates of the game object should be recorded You need to record the height and width of the game object)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696524资源总数
  • 103838会员总数
  • 43今日下载