senarioCtrl.h

00001 #ifndef SENARIO_CTRL_H
00002 #define SENARIO_CTRL_H
00003 
00004 /*
00005   シナリオ処理
00006   Satofumi KAMIMURA
00007   $Id$
00008 */
00009 
00010 #include "unitCtrl.h"
00011 #include "userInput.h"
00012 #include <map>
00013 
00014 enum {
00015   SENARIO_FILE_WIDTH_MAX = 256,
00016 };
00017 
00018 
00019 typedef struct {
00020   int x, y;
00021   int w, h;
00022 } rect_t;
00023 
00024 
00028 class SenarioCtrl {
00029   void loadUnitFile(const char *fileName);
00030   map<int,UnitCtrl *> units;
00031 
00032 public:
00033   bool isLoaded;
00034   rect_t field;
00035 
00036   SenarioCtrl(void);
00037   void loadFile(const char *fileName);
00038   void tickDown(void);
00039   void setUserInput(UserInput ui);
00040 };
00041 
00042 #endif /* !SENARIO_CTRL_H */
00043 

Generated on Mon Apr 13 22:52:01 2009 by  doxygen 1.5.7.1