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

sectorManager.h

Go to the documentation of this file.
00001 #ifndef SECTORMANAGER_H
00002 #define SECTORMANAGER_H
00003 
00004 #include <plib/ul.h>
00005 
00006 #define SM_GLOBAL_TO_INDEX(x, y) (x*
00007 
00010 class sectorManager {
00011   public:
00012     sectorManager();
00013     ~sectorManager();
00014     void update();
00015     void set_center(int x, int y);
00016     void prepare_move(int x, int y);
00017 
00018     inline float get_wind_speed(int x, int y) {
00019       return local_winds[SM_GLOBAL_TO_INDEX(x, y)*2];
00020     }
00021     inline float get_wind_heading(int x, int y) {
00022       return local_winds[SM_GLOBAL_TO_INDEX(x, y)*2+1];
00023     }
00024 
00025   private:
00026     ulLinkedList ac_ships;
00027     float* local_winds[50];
00028     // 0  1  2  3  4
00029     // 5  6  7  8  9
00030     // 10 11 12 13 14
00031     // 15 16 17 18 19
00032     // 20 21 22 23 24
00033     int curr_x, curr_y;
00034 };
00035 #endif
00036 
00037 
00038 
00039 #include "sectorManager.h"
00040 
00041 #include "common_vars_game.h"

Generated on Sat Jul 12 04:29:21 2003 for glPirates by doxygen 1.3.2