00001 /* ---------------------------------------------------------- */ 00002 /* backgroundmanage.h */ 00003 /* ---------------------------------------------------------- */ 00004 00005 /*------------------------------------------------------------- */ 00012 /*----------------------------------------------------- 00013 Copyright (C) 2005 rero2@fumi <rero2@yuumu.org> 00014 All Rights Reserved. 00015 ------------------------------------------------------*/ 00016 00017 #ifndef BACKGROUNDMANAGE_H 00018 #define BACKGROUNDMANAGE_H 00019 00020 /*-------------------------------*/ 00021 /* include */ 00022 /*-------------------------------*/ 00023 00024 #include "lunavader.h" 00025 #include "SpriteItem.h" 00026 00027 /*-------------------------------*/ 00028 /* define */ 00029 /*-------------------------------*/ 00030 00031 #define BACKGROUND_LAYER 2 00032 00033 /*-------------------------------*/ 00034 /* struct */ 00035 /*-------------------------------*/ 00036 00037 /*-------------------------------*/ 00038 /* class */ 00039 /*-------------------------------*/ 00040 00049 class BackGroundManage 00050 { 00051 /* ----------------------------------- */ 00052 /* --- コンストラクタ・デストラクタ */ 00053 public: 00054 BackGroundManage(); 00055 virtual ~BackGroundManage(); 00056 00057 /* ----------------------------------- */ 00058 /* --- パブリックメンバ */ 00059 public: 00060 00061 /* ----------------------------------- */ 00062 /* --- プライベートメンバ */ 00063 private: 00065 float m_BackBlend; 00067 LSPRITE m_LunaSprite; 00069 SpriteItem *bg[BACKGROUND_LAYER]; 00070 00071 /* ----------------------------------- */ 00072 /* --- パブリックメソッド */ 00073 public: 00074 void Init(); 00075 bool Tick(); 00076 bool Display(); 00077 void SetLunaSprite(LSPRITE sp_handle); 00078 void SetBlend(float blend); 00079 00080 /* ----------------------------------- */ 00081 /* --- プライベートメソッド */ 00082 private: 00083 00084 }; 00085 00086 00087 #endif 00088