The PaletteBankClass


 PaletteBankClass() { nPalettes = 0; PalettePool = NULL; };
 ~PaletteBankClass() {};

 // Management functions
 static void Setup( int nEntries );
 static void Cleanup( void );
 static void ReadPool( int file );
 static void FlushHandles( void );

 // Set the light level on the specified palette
 static void LightPalette( int id, Tcolor *light );
 static void LightBuildingPalette( int id, Tcolor *light );
 static void LightReflectionPalette( int id, Tcolor *light );

 // Check if palette ID is within the legal range of loaded palettes
 static BOOL IsValidIndex( int id );

  public:
 static Palette  *PalettePool;
 static int   nPalettes;