Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

mapwin.h

Go to the documentation of this file.
00001 /*************************************************************************
00002  *
00003  *  FILE: mapwin.h
00004  *  AUTHOR: Wilson T
00005  *  DATE: 30 April 1993
00006  *  PURPOSE:
00007  *
00008  **************************************************************************/
00009 
00010 #ifndef _MAPWIN_H
00011 #define _MAPWIN_H
00012 
00013 #include "window.h"
00014 #include "nodes.h"
00015 #include "moves.h"
00016 
00017 const int TransWidth=3;
00018 const int MapWinXDim = 639;
00019 const int MapWinYDim = 400;
00020 const int TransColor[3]={14, 2, 4};
00021 
00022 class MapWindow : public Window
00023 {
00024   int NNodes;
00025   Nodes **NodeList;
00026 
00027 public:
00028   MapWindow     (void);
00029   ~MapWindow    (void); // delete node list
00030 
00031   void Init     (Display*, int, int);
00032   void Draw     (void);
00033   void EnableNodes    (MoveList &, int);
00034   void DisableNodes (MoveList &);
00035   void HilightNode  (int, int);
00036   void UnHilightNode  (int);
00037 
00038 private:
00039   void AllocNodes (void);
00040   void DrawLines    (void);
00041   void ConnectNode  (int node1, int node2);
00042   void Scale    (int& , int& );
00043   void NewConnectNode (int, int, byte);
00044 };
00045 
00046 #endif

Generated on Sun Jul 6 23:07:15 2003 for Scotland Yard by doxygen1.2.15