VC贪食蛇设计文档.docVIP

  • 1
  • 0
  • 约4.61千字
  • 约 7页
  • 2021-09-03 发布于广东
  • 举报
贪食蛇设计文档 一、类 在程序中定义一个蛇的类,结构如下: class CMfc_snackeView : public CView { protected: // create from serialization only CMfc_snackeView(); DECLARE_DYNCREATE(CMfc_snackeView) // Attributes public: CMfc_snackeDoc* GetDocument();//在视图类中调用成员函数GetDocument()取得文档类指针 // Operations private: int m_speed;//当前操作用时 int Timer; int m_Count; int m_UseTime; void Create_food(); int m_PreDir; int m_start; CPoint m_food; CArray CPoint,CPoint m_body; int m_NowDir; } 另外主要用到的几个类 子类 关系 父类 CMainFrame 继承 CFrameWnd CMfc_snackeApp 继承 CWinApp CMfc_snackeDoc 继承 CDocument CMfc_snackeView 继承 CVie

文档评论(0)

1亿VIP精品文档

相关文档