From 5d3725f9d972cde917ab9b076cb0b89b33557c7a Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Sun, 4 May 2008 20:47:08 -0700 Subject: Removed a lot of tool code. --- src/win95/chunkpal.hpp | 165 ------------------------------------------------- 1 file changed, 165 deletions(-) (limited to 'src/win95/chunkpal.hpp') diff --git a/src/win95/chunkpal.hpp b/src/win95/chunkpal.hpp index c293072..5de7801 100644 --- a/src/win95/chunkpal.hpp +++ b/src/win95/chunkpal.hpp @@ -3,9 +3,6 @@ #include "chunk.hpp" #include "bmpnames.hpp" -#if cencon -#include "palette.h" -#endif class Environment_Data_Chunk; @@ -30,10 +27,6 @@ class Environment_Palette_Chunk : public Chunk public: -#if cencon - // constructor from data - defined in genpal - Environment_Palette_Chunk (Chunk_With_Children * const parent, PPM_Header const * const palette); -#endif // constructor from buffer Environment_Palette_Chunk (Chunk_With_Children * const parent, const char * sdata, size_t const /*ssize*/) : Chunk (parent, "ENVPALET") @@ -75,32 +68,6 @@ class Preset_Palette { public: -#if cencon - // constructor from data - defined in genpal - Preset_Palette (PPM_Header const * const palette); - - // update by generating from bmps chunk - void update(Global_BMP_Name_Chunk * gbnc, Preset_Palette_Chunk * ppc, class Environment * e, Environment_Data_Chunk * envd, BOOL bDoSoftwareTex); - -#if 0 - Preset_Palette (const char * iname) - : size(0) - , flags(0) - , reserved1(0) - , reserved2(0) - , startpos(0) - , pixel_data(0) - , name(0) - { - if (iname) - { - name = new char[strlen(iname)+1]; - strcpy(name,iname); - } - } -#endif -#endif - Preset_Palette () : size(0) , flags(0) @@ -166,18 +133,6 @@ class Preset_Palette_Chunk : public Chunk { public: -#if cencon - // empty constructor - Preset_Palette_Chunk (Chunk_With_Children * const parent) - : Chunk (parent,"PRSETPAL") - , flags(0) - , version_num(0) - , reserved1(0) - , reserved2(0) - , reserved3(0) - {} - -#endif // constructor from buffer Preset_Palette_Chunk (Chunk_With_Children * const parent, char const * sdata, size_t const ssize); ~Preset_Palette_Chunk () {}; @@ -211,10 +166,6 @@ class Environment_TLT_Chunk : public Chunk public: -#if cencon - // constructor using palette - defined in genpal - Environment_TLT_Chunk (Chunk_With_Children * parent, PPM_Header * palette, PPM_Header * tlt_palette, Lighting_Style const * ls); -#endif // constructor from buffer Environment_TLT_Chunk (Chunk_With_Children * parent, const char * sdata, size_t ssize); @@ -334,20 +285,6 @@ class TLT_Config_Chunk : public Chunk public: -#if cencon - // constructor for default - TLT_Config_Chunk (Chunk_With_Children * parent, char const * rifname = 0) - : Chunk (parent, "TLTCONFG") - , num_shades_white(16) - , srcrifname(rifname ? new char [strlen(rifname)+1] : 0) - , blocks(TLTConfigBlock(0,0,1,1)) - , table_size(256) - , palette_size(0) - { - for (int i=0; i<3; ++i) reserved[i]=0; - if (rifname) strcpy(srcrifname,rifname); - } -#endif // constructor from buffer TLT_Config_Chunk (Chunk_With_Children * parent, const char * sdata, size_t ssize); @@ -389,11 +326,6 @@ private: }; -#if cencon -extern TLT_Config_Chunk Default_TLT_Config_Chunk; -#endif - - // Multi-Palettes for one environment @@ -558,17 +490,6 @@ class Environment_Game_Mode_Chunk : public Chunk_With_Children public: -#if cencon - // constructor from data - Environment_Game_Mode_Chunk (Environment_Data_Chunk * const parent, const char * _mode_id); - - // defined in gmodlink - void remove(class CWnd * const pWnd); // update this copy by finding its original - void update(class CWnd * const pWnd, BOOL bDoSoftwareTex); // update this copy by finding its original - void been_updated(class CWnd * const pWnd, BOOL bDoSoftwareTex); // find and update copies from this original - void definite_update(Environment_Game_Mode_Chunk const * const src, class CWnd * const pWnd, Environment_Data_Chunk * envd, BOOL bDoSoftwareTex); - -#endif // constructor from buffer Environment_Game_Mode_Chunk (Chunk_With_Children * const parent, const char * sdata, size_t const ssize); @@ -681,48 +602,6 @@ private: int version_num; - - #if cencon - // constructor from parent - Environment_Game_Mode_Header_Chunk (Environment_Game_Mode_Chunk * const parent, const char * const _mode_id) - : Chunk (parent, "GMODHEAD"), version_num(0), - flags (0), rif_files() - { - for (int i=0; iheader = this; - } - - inline Environment_Game_Mode_Header_Chunk const & operator = (Environment_Game_Mode_Header_Chunk & s) - { - flags = s.flags; - while (rif_files.size()) - { - delete[] rif_files.first_entry(); - rif_files.delete_first_entry(); - } - if (mode_identifier) delete[] mode_identifier; - - mode_identifier = new char[strlen(s.mode_identifier)+1]; - strcpy(mode_identifier,s.mode_identifier); - - for (LIF src(&s.rif_files); !src.done(); src.next()) - { - add_rif_entry(src()); - } - - version_num = s.version_num; - - return *this; - - } - #endif - // deconstructor ~Environment_Game_Mode_Header_Chunk(); @@ -826,10 +705,6 @@ public: { return _stricmp(filename,c.filename); } - - #if cencon - void DeleteAssociatedFiles(RIF_Child_Chunk const *, Environment_Data_Chunk *) const; - #endif }; enum RCC_Flags { @@ -845,13 +720,6 @@ class RIF_Child_Chunk : public Chunk { public: -#if cencon - RIF_Child_Chunk(Environment_Game_Mode_Chunk * const parent, const char * fname, class CWnd * const pWnd, BOOL bDoSoftwareTex); - - void update(class CWnd * const, BOOL bDoSoftwareTex); - void update(class Environment * e, BOOL bDoSoftwareTex); // for where the environment is already loaded - void DeleteAssociatedFiles(Environment_Data_Chunk *) const; -#endif // constructor from buffer RIF_Child_Chunk (Chunk_With_Children * const parent, const char * sdata, size_t const ssize); ~RIF_Child_Chunk(); @@ -903,35 +771,6 @@ class Preset_Palette_Store_Chunk : public Chunk { public: -#if cencon - // constructor from Preset_Palette_Chunk - Preset_Palette_Store_Chunk (Chunk_With_Children * const parent, Preset_Palette_Chunk const * const schunk, const char * const srname) - : Chunk (parent,"SETPALST") - , flags(schunk->flags) - , version_num(schunk->version_num) - , reserved1(schunk->reserved1) - , reserved2(schunk->reserved2) - , reserved3(schunk->reserved3) - , rifname(new char[strlen(srname)+1]) - , pplist(schunk->pplist) - { - strcpy(rifname,srname); - } - - // empty constructor - Preset_Palette_Store_Chunk (Chunk_With_Children * const parent, const char * const srname) - : Chunk (parent,"SETPALST") - , flags(0) - , version_num(0) - , reserved1(0) - , reserved2(0) - , reserved3(0) - , rifname(new char[strlen(srname)+1]) - { - strcpy(rifname,srname); - } - -#endif // constructor from buffer Preset_Palette_Store_Chunk (Chunk_With_Children * const parent, char const * sdata, size_t const ssize); ~Preset_Palette_Store_Chunk () @@ -983,10 +822,6 @@ class Coloured_Polygons_Lookup_Chunk : public Chunk { public: -#if cencon - // constructor from data - defined in cencon - Coloured_Polygons_Lookup_Chunk (Chunk_With_Children * parent, PPM_Header * const palette); -#endif // constructor from buffer Coloured_Polygons_Lookup_Chunk (Chunk_With_Children * parent, const char * sdata, size_t ssize); -- cgit v1.3