00001 // Cell.h: interface for the CCell class. 00002 // 00004 00005 #if !defined(AFX_CELL_H__B03B7763_4F0E_11D3_8AFC_00105AC65E34__INCLUDED_) 00006 #define AFX_CELL_H__B03B7763_4F0E_11D3_8AFC_00105AC65E34__INCLUDED_ 00007 00008 #include "Components.h" // Added by ClassView 00009 #if _MSC_VER >= 1000 00010 #pragma once 00011 #endif // _MSC_VER >= 1000 00012 00013 class CDNA; 00014 class CDisplay; 00015 class CComponents; 00016 class CGeometry; 00017 00018 class CCell 00019 { 00020 public: 00021 CDNA* GetDNA(); 00022 void AdvanceTime(double DT); 00023 void Generation(); 00024 CDisplay* GetDisplay(); 00025 CComponents* GetComponents(); 00026 CGeometry* GetGeometry(); 00027 void Division(); 00028 void Run(); 00029 CCell& operator=(const CCell& rhs); 00030 CCell(const CCell& rCell); 00031 CCell(); 00032 virtual ~CCell(); 00033 double TotalTime; 00034 00035 private: 00036 double GenTime; 00037 CDNA* m_pDNA; 00038 CDisplay* m_pDisplay; 00039 CGeometry* m_pGeometry; 00040 CComponents* m_pComponents; 00041 int NGEN; 00042 bool DivisionCheck(); 00043 }; 00044 00045 #endif // !defined(AFX_CELL_H__B03B7763_4F0E_11D3_8AFC_00105AC65E34__INCLUDED_)