00001 /* ---------------------------------------------------------- */ 00002 /* SpriteItem.h */ 00003 /* ---------------------------------------------------------- */ 00004 00005 /*------------------------------------------------------------- */ 00012 /*----------------------------------------------------- 00013 Copyright (C) 2005 rero2@fumi <rero2@yuumu.org> 00014 All Rights Reserved. 00015 ------------------------------------------------------*/ 00016 00017 #ifndef SPRITEITEM_H 00018 #define SPRITEITEM_H 00019 00020 /*-------------------------------*/ 00021 /* include */ 00022 /*-------------------------------*/ 00023 00024 #include "luna.h" 00025 #include "lunavader.h" 00026 00027 /*-------------------------------*/ 00028 /* define */ 00029 /*-------------------------------*/ 00030 00031 /*-------------------------------*/ 00032 /* struct */ 00033 /*-------------------------------*/ 00034 00035 /*-------------------------------*/ 00036 /* class */ 00037 /*-------------------------------*/ 00038 00047 class SpriteItem 00048 { 00049 /* ----------------------------------- */ 00050 /* --- コンストラクタ・デストラクタ */ 00051 public: 00052 SpriteItem(); 00053 virtual ~SpriteItem(); 00054 00055 /* ----------------------------------- */ 00056 /* --- パブリックメンバ */ 00057 public: 00059 float m_PosX; 00061 float m_PosY; 00063 int m_SizeW; 00065 int m_SizeH; 00067 int m_Priority; 00069 float m_Blend; 00071 float m_Zoom; 00073 int m_TexU; 00075 int m_TexV; 00077 int m_TexW; 00079 int m_TexH; 00081 float m_RollZ; 00083 float m_RollX; 00085 float m_RollY; 00087 bool m_PosCenter; 00089 bool m_Working; 00091 bool m_Visible; 00092 00093 /* ----------------------------------- */ 00094 /* --- プライベートメンバ */ 00095 protected: 00097 LSPRITE m_LunaSprite; 00098 00099 /* ----------------------------------- */ 00100 /* --- パブリックメソッド */ 00101 public: 00102 void SetLunaSprite(LSPRITE sp_handle); 00103 virtual bool Display(); 00104 00105 /* ----------------------------------- */ 00106 /* --- プライベートメソッド */ 00107 private: 00108 00109 }; 00110 00111 00112 #endif 00113