![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: c7bPatchGroupHeader.h,v $ $Revision: 1.8 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00009 // 00010 // File c7bPatchGroupHeader 00011 // 00012 00013 00014 #ifndef __DtC7bPatchGroupHeader 00015 #define __DtC7bPatchGroupHeader 00016 00017 #include "ctdb/ctdbDefines.h" 00018 #include <stdio.h> 00019 #include "ctdb/c7NetTypes.h" 00020 00021 // Class: DtC7bPatchGroupHeader 00022 // 00023 // The class is public because should not be used but anyone else than 00024 // DtC7b. 00025 // 00026 00027 class DT_DLL_ctdb DtC7bPatchGroupHeaderLocal 00028 { 00029 public: 00030 DtC7NetU32 myOffset; 00031 DtC7NetU32 myPatchData; 00032 }; 00033 00034 class DT_DLL_ctdb DtC7bPatchGroupHeader 00035 { 00036 public: 00037 00038 DtC7bPatchGroupHeader(); 00039 ~DtC7bPatchGroupHeader(); 00040 00041 bool read(FILE *f); 00042 00043 bool containsTins(); 00044 bool patchOccupied(int patch); 00045 bool patchTerrainElementsNeeds16(int patch); 00046 bool patchHasNoTerrainElements(int patch); 00047 bool patchIsWater(int patch); 00048 DtC7NetU32 patchData(); 00049 00050 DtC7bPatchGroupHeaderLocal myStruct; 00051 bool mySourceIsLittleEndian; 00052 }; 00053 00054 #endif