MOOS 0.2375
|
00001 // Ex3/Simulator.h: interface for the class. 00002 00003 #ifndef SIMULATORH 00004 #define SIMULATORH 00005 00006 #include <MOOSLIB/MOOSApp.h> 00007 00008 class CSimulator : public CMOOSApp 00009 { 00010 public: 00011 //standard construction and destruction 00012 CSimulator(); 00013 virtual ~CSimulator(); 00014 00015 protected: 00016 //where we handle new mail 00017 bool OnNewMail(MOOSMSG_LIST &NewMail); 00018 //where we do the work 00019 bool Iterate(); 00020 //called when we connect to the server 00021 bool OnConnectToServer(); 00022 //called when we are starting up.. 00023 bool OnStartUp(); 00024 00025 }; 00026 00027 #endif