source/Lib/CellAttribute.h
Go to the documentation of this file.
00001 
00005 #ifndef __CELL_ATTRIBUTE_H__
00006 #define __CELL_ATTRIBUTE_H__
00007 
00008 #include "Observer.h"
00009 
00016 class CellAttribute : public Information
00017 {
00018 public:
00024     enum CELL_STATE { DEAD=0, ALIVE, CELL_STATE_MAX };
00025 
00031         CellAttribute()
00032         {
00033                 this->m_eState = CellAttribute::DEAD;
00034         }
00035 
00041     CellAttribute(CELL_STATE i_eState)
00042     {
00043         this->m_eState = i_eState;
00044     }
00045 
00052     CELL_STATE getState() const { return m_eState; }
00053 
00060     void setState(CELL_STATE i_eState){ m_eState = i_eState; }
00061 
00062 private:
00067     CELL_STATE  m_eState;
00068 };
00069 
00070 #endif  // __CELL_ATTRIBUTE_H__
 All Classes Files Functions Variables Enumerations Enumerator Defines