#ifndef _PIXMAPS_H
#define _PIXMAPS_H

void CompilePixmaps();
class PixmapInfo;

class CPixmap {
public:
  CPixmap();
  CPixmap(char **data);
  ~CPixmap();
  PixmapInfo *Handle(int ownerId = -1);
  void GetInfo(int &x, int &y);
  CPixmap &operator =(char **data);
private:
  void Compile(int ownerId);

  char **xpm;
  PixmapInfo **handles;
};

extern CPixmap city_pic;
extern CPixmap bulb_pic;
extern CPixmap elvis_pic;
extern CPixmap food_pic;
extern CPixmap goonda_pic;
extern CPixmap lux_pic;
extern CPixmap money_pic;
extern CPixmap shield_pic;
extern CPixmap trade_pic;
extern CPixmap corruption_pic;
extern CPixmap worker_pic;
extern CPixmap scientist_pic;
extern CPixmap taxman_pic;
extern CPixmap happy_pic;
extern CPixmap unhappy_pic;
extern CPixmap smokestack_pic;
extern CPixmap disorder_pic;

extern CPixmap ocean_pic;
extern CPixmap mountains_pic;
extern CPixmap hills_pic;
extern CPixmap desert_pic;
extern CPixmap swamp_pic;
extern CPixmap grass_pic;
extern CPixmap forest_pic;
extern CPixmap jungle_pic;
extern CPixmap plains_pic;

extern CPixmap gold_pic;
extern CPixmap coal_pic;
extern CPixmap oasis_pic;
extern CPixmap oil_pic;
extern CPixmap horses_pic;
extern CPixmap gems_pic;
extern CPixmap mining_pic;
extern CPixmap irrig_pic;
extern CPixmap pollution_pic;
extern CPixmap basket_pic;
extern CPixmap fish_pic;
extern CPixmap rivgood_pic;

extern CPixmap armor_pic;
extern CPixmap artillery_pic;
extern CPixmap battleship_pic;
extern CPixmap bomber_pic;
extern CPixmap cannon_pic;
extern CPixmap caravan_pic;
extern CPixmap carrier_pic;
extern CPixmap catapult_pic;
extern CPixmap cavalry_pic;
extern CPixmap chariot_pic;
extern CPixmap cruiser_pic;
extern CPixmap diplomat_pic;
extern CPixmap fighter_pic;
extern CPixmap frigate_pic;
extern CPixmap ironclad_pic;
extern CPixmap knights_pic;
extern CPixmap legion_pic;
extern CPixmap mechinf_pic;
extern CPixmap militia_pic;
extern CPixmap musketeers_pic;
extern CPixmap nuclear_pic;
extern CPixmap phalanx_pic;
extern CPixmap riflemen_pic;
extern CPixmap sail_pic;
extern CPixmap settler_pic;
extern CPixmap submarine_pic;
extern CPixmap transport_pic;
extern CPixmap trireme_pic;

extern CPixmap *roads_pic[3][3];
extern CPixmap *rails_pic[3][3];

extern CPixmap river0_pic;
extern CPixmap river1_pic;
extern CPixmap river2_pic;
extern CPixmap river3_pic;
extern CPixmap river01_pic;
extern CPixmap river02_pic;
extern CPixmap river03_pic;
extern CPixmap river12_pic;
extern CPixmap river13_pic;
extern CPixmap river23_pic;
extern CPixmap river012_pic;
extern CPixmap river013_pic;
extern CPixmap river023_pic;
extern CPixmap river123_pic;
extern CPixmap river0123_pic;

#endif
