00001 /* ---------------------------------------------------------- */ 00002 /* enemyobject.h */ 00003 /* ---------------------------------------------------------- */ 00004 00005 /*------------------------------------------------------------- */ 00012 /*----------------------------------------------------- 00013 Copyright (C) 2005 rero2@fumi <rero2@yuumu.org> 00014 All Rights Reserved. 00015 ------------------------------------------------------*/ 00016 00017 #ifndef ENEMYOBJECT_H 00018 #define ENEMYOBJECT_H 00019 00020 /*-------------------------------*/ 00021 /* include */ 00022 /*-------------------------------*/ 00023 00024 #include "lunavader.h" 00025 #include "shootingobject.h" 00026 00027 /*-------------------------------*/ 00028 /* define */ 00029 /*-------------------------------*/ 00030 00031 /*-------------------------------*/ 00032 /* struct */ 00033 /*-------------------------------*/ 00034 00035 /*-------------------------------*/ 00036 /* class */ 00037 /*-------------------------------*/ 00038 00045 class EnemyObject : public ShootingObject 00046 { 00047 /* ----------------------------------- */ 00048 /* --- コンストラクタ・デストラクタ */ 00049 public: 00050 EnemyObject(); 00051 virtual ~EnemyObject(); 00052 00053 /* ----------------------------------- */ 00054 /* --- パブリックメンバ */ 00055 public: 00057 bool m_IsHit; 00058 00059 /* ----------------------------------- */ 00060 /* --- プライベートメンバ */ 00061 private: 00063 int m_HitWait; 00065 int m_WalkPattern; 00067 int m_Charactor; 00069 int m_Score; 00070 00071 /* ----------------------------------- */ 00072 /* --- パブリックメソッド */ 00073 public: 00074 void Init(); 00075 bool Tick(); 00076 void Hit(); 00077 void SetWalkPattern(int pattern); 00078 void SetCharactor(int chara); 00079 void SetScore(int score); 00080 int GetScore(); 00081 00082 /* ----------------------------------- */ 00083 /* --- プライベートメソッド */ 00084 private: 00085 00086 }; 00087 00088 00089 #endif 00090