1 #ifndef _oechunk_h_
2 #define _oechunk_h_ 1
3 
4 #include "chunk.hpp"
5 #include "obchunk.hpp"
6 
7 struct	ChunkMapBlock
8 {
9 	char TemplateName[20];
10 	char TemplateNotes[100];
11 	int MapType;
12 	int MapShape;
13 	int MapFlags;
14 	int MapFlags2;
15 	int MapFlags3;
16 	int MapCType;
17 	int MapCGameType;
18 	int MapCStrategyS;
19 	int MapCStrategyL;
20 	int MapInteriorType;
21 	int MapLightType;
22 	int MapMass;
23 	VECTORCH MapNewtonV;
24 	VECTORCH MapOrigin;
25 	int MapViewType;
26 
27 	int MapVDBData;
28 	int SimShapeList;
29 
30 
31 
32 };
33 
34 class Map_Block_Chunk : public Chunk
35 {
36 public:
size_chunk()37 	virtual size_t size_chunk()
38 	{
39 		return (chunk_size=216);
40 	}
41 	virtual BOOL output_chunk (HANDLE &);
42 
43 	virtual void fill_data_block (char * data_start);
44 
45 	ChunkMapBlock map_data;
46 	friend class Object_Project_Data_Chunk;
47 
Map_Block_Chunk(Object_Project_Data_Chunk * parent)48 	Map_Block_Chunk (Object_Project_Data_Chunk * parent)
49 		:Chunk(parent,"MAPBLOCK")
50 	{}
51 
52 	//constructor from buffer
53 	Map_Block_Chunk (Chunk_With_Children * parent,const char* data,size_t);
54 };
55 
56 struct ChunkStrategy
57 {
58 	char StrategyName[20];
59 	char StrategyNotes[100];
60 	int Strategy;
61 };
62 
63 class Strategy_Chunk : public Chunk
64 {
65 public :
size_chunk()66 	virtual size_t size_chunk()
67 	{
68 		return (chunk_size=136);
69 	}
70 	virtual BOOL output_chunk (HANDLE &);
71 
72 	virtual void fill_data_block (char * data_start);
73 
74 	ChunkStrategy strategy_data;
75 	friend class Object_Project_Data_Chunk;
76 
Strategy_Chunk(Object_Project_Data_Chunk * parent)77 	Strategy_Chunk(Object_Project_Data_Chunk *parent)
78 		:Chunk(parent,"STRATEGY")
79 	{}
80 
81 	//constructor from buffer
82 	Strategy_Chunk (Chunk_With_Children * parent,const char* data,size_t);
83 };
84 
85 #endif
86