00001 /* ---------------------------------------------------------- */ 00002 /* bulletbase.h */ 00003 /* ---------------------------------------------------------- */ 00004 00005 /*------------------------------------------------------------- */ 00012 /*----------------------------------------------------- 00013 Copyright (C) 2005 rero2@fumi <rero2@yuumu.org> 00014 All Rights Reserved. 00015 ------------------------------------------------------*/ 00016 00017 #ifndef BULLETBASE_H 00018 #define BULLETBASE_H 00019 00020 /*-------------------------------*/ 00021 /* include */ 00022 /*-------------------------------*/ 00023 00024 /* --- 軌道計算に三角関数が必要なので */ 00025 // #include <luna.h> 00026 00027 #include "lunavader.h" 00028 #include "shootingobject.h" 00029 00030 /*-------------------------------*/ 00031 /* define */ 00032 /*-------------------------------*/ 00033 00034 /*-------------------------------*/ 00035 /* struct */ 00036 /*-------------------------------*/ 00037 00038 /*-------------------------------*/ 00039 /* class */ 00040 /*-------------------------------*/ 00041 00050 class BulletBase : public ShootingObject 00051 { 00052 /* ----------------------------------- */ 00053 /* --- コンストラクタ・デストラクタ */ 00054 public: 00055 BulletBase(); 00056 virtual ~BulletBase(); 00057 00058 /* ----------------------------------- */ 00059 /* --- パブリックメンバ */ 00060 public: 00062 ShootingObject *m_EnemyObject; 00064 float m_Direction; 00066 float m_DirectionAdd; 00068 float m_Speed; 00070 float m_SpeedR; 00072 float m_Accelerator; 00074 float m_AcceleratorR; 00076 float m_AddRoll; 00078 float m_Limit; 00080 float m_LimitR; 00082 int m_Timer; 00084 int m_LifeTime; 00086 void* m_ListPrev; 00087 void* m_ListNext; 00088 00089 /* ----------------------------------- */ 00090 /* --- プライベートメンバ */ 00091 private: 00092 00093 /* ----------------------------------- */ 00094 /* --- パブリックメソッド */ 00095 public: 00096 bool Tick(); 00097 00098 /* ----------------------------------- */ 00099 /* --- プライベートメソッド */ 00100 private: 00101 00102 }; 00103 00104 00105 #endif 00106