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

Password:

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

OPOWER.H

Go to the documentation of this file.
00001 //Filename    : OPOWER.H
00002 //Description : Header file of Object Power
00003 
00004 #ifndef __OPOWER_H
00005 #define __OPOWER_H
00006 
00007 //--------- Define class Power ----------//
00010 class Power {
00011     //----------- Define constant -----------//
00012     enum {                                          // Maximum 5 different key string
00013         MAX_KEY_STR = 5
00014     };
00015 
00016 public:
00017     char      win_opened;
00018     char      enable_flag;
00019 
00020     // in sys.h: int                    key_str_pos[MAX_KEY_STR];  // for detecting cheating codes
00021 
00022 public:
00023     Power();
00024     ~Power();
00025 
00026     void      init();
00027     void      deinit();
00028 
00029     void      enable()    { enable_flag=1; }
00030     void      disable() { enable_flag=0; }
00031 
00032     void      mouse_handler();
00033     void      reset_selection();
00034 };
00035 
00036 extern Power power;
00037 
00038 //---------------------------------------//
00039 #endif

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