00001 /* ---------------------------------------------------------- */ 00002 /* myshotmanage.h */ 00003 /* ---------------------------------------------------------- */ 00004 00005 /*------------------------------------------------------------- */ 00012 /*----------------------------------------------------- 00013 Copyright (C) 2005 rero2@fumi <rero2@yuumu.org> 00014 All Rights Reserved. 00015 ------------------------------------------------------*/ 00016 00017 #ifndef MYSHOTMANAGE_H 00018 #define MYSHOTMANAGE_H 00019 00020 /*-------------------------------*/ 00021 /* include */ 00022 /*-------------------------------*/ 00023 00024 #include "lunavader.h" 00025 #include "bulletbase.h" 00026 #include "myshipmanage.h" 00027 00028 /*-------------------------------*/ 00029 /* define */ 00030 /*-------------------------------*/ 00031 00032 /*-------------------------------*/ 00033 /* struct */ 00034 /*-------------------------------*/ 00035 00036 /*-------------------------------*/ 00037 /* class */ 00038 /*-------------------------------*/ 00039 00048 class MyShotManage : public BulletBase 00049 { 00050 /* ----------------------------------- */ 00051 /* --- コンストラクタ・デストラクタ */ 00052 public: 00053 MyShotManage(); 00054 virtual ~MyShotManage(); 00055 00056 /* ----------------------------------- */ 00057 /* --- パブリックメンバ */ 00058 public: 00059 00060 /* ----------------------------------- */ 00061 /* --- プライベートメンバ */ 00062 private: 00064 bool m_Execute; 00066 int m_State; 00068 int m_Timer; 00069 00070 /* ----------------------------------- */ 00071 /* --- パブリックメソッド */ 00072 public: 00073 bool Tick(); 00074 bool Shoot(MyShipManage* ship); 00075 bool CanShoot(); 00076 void SetState(int stat); 00077 int GetState(); 00078 void SetWait(int time); 00079 00080 /* ----------------------------------- */ 00081 /* --- プライベートメソッド */ 00082 private: 00083 00084 }; 00085 00086 00087 #endif 00088