OROCHI
 
Loading...
Searching...
No Matches
GxToolTrophy.h
Go to the documentation of this file.
1//===========================================================================
10//===========================================================================
11#pragma once
12
13#if GX_DEVELOP
14
15GX_NETWORK_NAMESPACE_BEGIN()
16
17//===========================================================================
19//===========================================================================
20class GxToolTrophy : public GxToolBase
21{
22 //-------------------------------------------------------------
24 //-------------------------------------------------------------
26private:
27 class MessageForm;
28public:
29 // RTTI定義
30 GX_RTTI_CLASS_NAME_ICON( GxToolTrophy, GxToolBase, "トロフィー管理", GxRtti::ICON_TYPE::NETWORK )
31 // ClassBaseReference継承クラス用禁止宣言
33
34private:
36 enum class TOOL_TROPHY_ID
37 {
38 PLATINUM = 0,
39 _1,
40 _2,
41 _3,
42 MAX
43 };
44#if GX_DEVELOP
46 GX_ENUM_TABLE(TOOL_TROPHY_ID)
47#endif //GX_DEVELOP
48
50 enum class TOOL_TROPHY_STEP
51 {
52 WAIT = 0,
53 GET_INFO,
54 GET_INFO_WAIT,
55 GET_INFO_END,
56 GET_DETAIL_INFO,
57 GET_DETAIL_INFO_WAIT,
58 GET_DETAIL_INFO_END,
59 UNLOCK_TROPHY,
60 UNLOCK_TROPHY_WAIT,
61 UNLOCK_TROPHY_END,
62 ALL_UNLOCK_TROPHY,
63 ALL_UNLOCK_TROPHY_WAIT,
64 ALL_UNLOCK_TROPHY_END
65 };
66
68 //-------------------------------------------------------------
70 //-------------------------------------------------------------
72
74 GxToolTrophy( void );
75
77 b32 initialize( void ) override;
78
80 //-------------------------------------------------------------
82 //-------------------------------------------------------------
84protected:
86 virtual void eventTrophyUnlockButton( void );
88 virtual void eventTrophyAllUnlockButton( void );
90 virtual void eventGetTrophyInfoButton( void );
92 virtual void eventGetTrophyDetailInfoButton( void );
93
94public:
96 void update( void ) override;
97
98private:
100 void startGetTrophyInfo( void );
102 void waitGetTrophyInfo(void) {}
103
105 void startGetTrophyDetailInfo( void );
107 void waitGetTrophyDetailInfo(void) {}
108
110 void startUnlockTrophy( void );
112 void waitUnlockTrophy(void) {}
113
115 void startAllUnlockTrophy( void );
117 void waitAllUnlockTrophy(void) {}
118
120 void setTrophyInfo( void );
122 void setDefaultTrophyName( void );
123
125 //-----------------------------------------------------------
127 //-----------------------------------------------------------
129private:
130 u32 _trophyID;
131 u32 _trophyCount;
132 u32 _unlockTrophyCount;
133 TOOL_TROPHY_STEP _trophyToolStep;
134 u32 _getTrophyInfoCount;
135 b32 _progressFlag;
136 GxGuiPropertyComboBoxEnum* _pGuiProperty;
137 MessageForm* _pMessageForm;
138
140};
141
142//===========================================================================
144//===========================================================================
145class GxToolTrophy::MessageForm : public GxGuiFormMessage
146{
147 //-------------------------------------------------------------
149 //-------------------------------------------------------------
151public:
152 // RTTI定義
153 GX_RTTI_CLASS( GxToolTrophy::MessageForm, GxGuiFormMessage )
154 // ClassBaseReference継承クラス用禁止宣言
156
157
158 //-------------------------------------------------------------
160 //-------------------------------------------------------------
162
164 MessageForm( void );
165
167 MessageForm( GxToolTrophy* pTool );
168
170 b32 initialize( void ) override;
171
173 //-------------------------------------------------------------
175 //-------------------------------------------------------------
177private:
178 GxToolTrophy* _pTool;
179public:
180 GX_CHAR _message[GxMath::VALUE_256];
181
183};
184
185GX_NETWORK_NAMESPACE_END()
186
187#endif // GX_DEVELOP
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
@ MAX
定義数
@ _2
ビュー2
@ _1
ビュー1
@ _3
ビュー3
static constexpr u32 VALUE_256
256
Definition GxMath.h:127
32bitブーリアン
Definition GxDefine.h:173