Main Page   Class Hierarchy   Compound List   File List   Compound Members  

tool.h

00001 #ifndef __TOOL_H
00002 
00003 #define __TOOL_H
00004 
00005 
00006 
00007 
00008 
00009 enum ToolType {SHOVEL,BUCKET,T_HOUSE,NO_TYPE_TOOL, NUM_TOOL_TYPES};
00010 
00011 
00012 
00013 class Tool {
00014 
00015  public:
00016 
00017 
00018 
00019   Tool(ToolType t=NO_TYPE_TOOL, int x=0, int y=0);
00020 
00021   ~Tool();
00022 
00023 
00024 
00025   ToolType getType();
00026 
00027   int getPosX();
00028 
00029   int getPosY();
00030 
00031   bool isVisible();
00032 
00033   void setType(ToolType t);
00034 
00035   void setPosX(int x);
00036 
00037   void setPosY(int y);
00038 
00039   void setVisible(bool v);
00040 
00041 
00042 
00043  private:
00044 
00045   ToolType type;
00046 
00047   int posx;
00048 
00049   int posy;
00050 
00051   bool visible;
00052 
00053 };
00054 
00055 
00056 
00057 #endif
00058 

Generated on Thu Jun 6 17:22:20 2002 for Perihelion by doxygen1.2.15