00001
00002
00003
00004 #ifndef __OLoc_H
00005 #define __OLoc_H
00006
00007
00008
00009
00010
00011
00012
00013
00014 class Firm;
00015 class Rect;
00016
00020
00021 private:
00022 Firm *object;
00023 bool is_selected;
00024 static Firm *selected_object;
00025
00026
00027 public:
00028 Location();
00029 ~Location();
00030 void init();
00031 void deinit();
00032
00033
00034 void paint_object(short tileType, int x, int y, Rect* const clip, VgaBuf *vgaBuf);
00035
00036 void paint_terrain(short tileType, int x, int y, Rect* const clip, VgaBuf *vgaBuf);
00037
00038 void set_object(Firm *f);
00039 bool is_object();
00040
00041 bool select_object(short tileType, short locx, short locy, int mx, int my);
00042
00043
00044 private:
00045
00046 };
00047 #endif //ifndef