Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

OLOC.H Source File
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

OLOC.H

Go to the documentation of this file.
00001 //Filename    : OLoc.h
00002 //Description : Location Class Declaration
00003 
00004 #ifndef __OLoc_H
00005 #define __OLoc_H
00006 
00007 // ES library header file
00008 // CU header file
00009 
00010 //----------- Define constants -------------//
00011 //----------- Define enum types -------------//
00012 //----------- Define struct -------------//
00013 
00014 class Firm;
00015 class Rect;
00016 //----------- Define class Location -----//
00020 class Location {
00021 private:
00022     Firm  *object;                                //temp: point to firm, sprite, terrian...
00023     bool  is_selected;                            //temp: for debug mapview
00024     static Firm *selected_object;
00025     //------------------------------------------//
00026 
00027 public:
00028     Location();
00029     ~Location();
00030     void  init();
00031     void  deinit();
00032 
00033     //temp for axoview's paint
00034     void  paint_object(short tileType, int x, int y, Rect* const clip, VgaBuf *vgaBuf);
00035     //temp for axoview's paint
00036     void  paint_terrain(short tileType, int x, int y, Rect* const clip, VgaBuf *vgaBuf);
00037 
00038     void  set_object(Firm *f);                    // for world.add_obj
00039     bool  is_object();                            //Temp for world.select_object
00040     // for world.select_object
00041     bool  select_object(short tileType, short locx, short locy, int mx, int my);
00042     //------------------------------------------//
00043 
00044 private:
00045 
00046 };
00047 #endif                                            //ifndef

Generated on Fri Aug 23 01:38:03 2002 for VirtualU by doxygen1.2.17