// WorldDoc.h : interface of the WorldDoc class // // (C) COPYRIGHT John Henckel, mailto:henckel@iname.com Aug 1998 // // Permission to use, copy, modify, distribute and sell this software // and its documentation for any purpose is hereby granted without fee, // provided that the above copyright notice appear in all copies. // // Visit my website! http://www.GeoCities.com/Paris/6502 #if !defined(AFX_WORLDDOC_H__2939132D_15A0_11D2_AC0F_0006296B87F8__INCLUDED_) #define AFX_WORLDDOC_H__2939132D_15A0_11D2_AC0F_0006296B87F8__INCLUDED_ #include #include "Shapes.h" //--------------------------------------------------------------------------- // Document class WorldDoc : public CDocument { protected: // create from serialization only WorldDoc(); DECLARE_DYNCREATE(WorldDoc) public: void Draw(); int FrameCount(); void Step(); void Store(CArchive& ar); void Load(CArchive& ar); void SetCameraViews(); HANDLE thread; // animator thread DWORD tid; BOOL isAwake; int waitTime; int count; // time step counter CTypedPtrList shapelist; CTypedPtrList cameralist; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(WorldDoc) public: virtual BOOL OnNewDocument(); virtual void Serialize(CArchive& ar); //}}AFX_VIRTUAL // Implementation public: virtual ~WorldDoc(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(WorldDoc) // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //--------------------------------------------------------------------------- //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_WORLDDOC_H__2939132D_15A0_11D2_AC0F_0006296B87F8__INCLUDED_)