D:/Zythum/DinoKod/Bsp/BspEntity.h

00001 //---------------------------------------------------------------------------------------------
00002 //      This file is a part of "DinoKod".
00003 //      Copyright © 2003 Dino Productions. All Rights Reserved.
00004 //      
00005 //      File                    : BspEntity.h
00006 //      Author                  : Sebastien LEIX        sebastien.leix@wanadoo.fr
00007 //      Date                    : 07/09/2002
00008 //      Modification    :
00009 //
00010 //---------------------------------------------------------------------------------------------
00011 #ifndef __BSPENTITY_H__
00012 #define __BSPENTITY_H__
00013 
00014 #include "Bsp/BspDll.h"
00015 #include "Common/Types.h"
00016 #include "Common/Table.h"
00017 
00018 //---------------------------------------------------------------------------------------------------------------------
00019 class BSP_API KBspEntityKey
00020 {
00021 public:
00022         char*                                           m_pKey;
00023         char*                                           m_pValue;
00024 
00025         KBspEntityKey() { m_pKey = NULL, m_pValue = NULL;       }
00026 };
00027 
00028 //---------------------------------------------------------------------------------------------------------------------
00029 class BSP_API KBspEntity
00030 {
00031 protected:
00032         u32                                                     m_Index;
00033         char*                                           m_pClassName;
00034         KTable<KBspEntityKey*>          m_KeyList;
00035 
00036 public:
00037                                                                 KBspEntity();
00038                                                                 ~KBspEntity();
00039         
00040         void                                            SetIndex( u32 Index )                           { m_Index = Index;                                              }
00041         u32                                                     GetIndex()                                                      { return m_Index;                                               }
00042         void                                            SetClassName( char* pClassName );
00043         char*                                           GetClassName()                                          { return m_pClassName;                                  }
00044         char*                                           GetKeyValue( char* pKey );
00045         void                                            AddKey( char* pKey, char* pValue );
00046         void                                            Dump();
00047 };
00048 
00049 #endif  __BSPENTITY_H__

Generated on Sun Mar 25 20:02:10 2007 for Zythum Project by  doxygen 1.5.1-p1