Mercurial > otakunoraifu
comparison scn2k/scn2k_text.h @ 58:0aaa5bb3dde5
Moved all opcodes from scn2k_text.cc to scn2k_textimpl.cc
author | Thibaut GIRKA <thib@sitedethib.com> |
---|---|
date | Fri, 18 Dec 2009 14:25:56 +0100 |
parents | 6d9146f56ccf |
children | 36d92d21300f |
comparison
equal
deleted
inserted
replaced
57:6d9146f56ccf | 58:0aaa5bb3dde5 |
---|---|
58 ** | 58 ** |
59 ** TimerAtom | 59 ** TimerAtom |
60 */ | 60 */ |
61 | 61 |
62 struct TimerAtom { | 62 struct TimerAtom { |
63 unsigned int start_time; | |
64 }; | |
65 | |
66 struct FrameTimerAtom : TimerAtom { | |
63 int from; | 67 int from; |
64 int to; | 68 int to; |
65 unsigned int start_time; | |
66 unsigned int total_time; | 69 unsigned int total_time; |
67 }; | 70 }; |
68 | 71 |
69 | 72 |
70 /**************************************************************:: | 73 /**************************************************************:: |
193 private: | 196 private: |
194 std::string ruby_text; | 197 std::string ruby_text; |
195 bool ruby_text_flag; | 198 bool ruby_text_flag; |
196 unsigned int wait_time; | 199 unsigned int wait_time; |
197 unsigned int old_time; | 200 unsigned int old_time; |
198 unsigned int base_time; | |
199 int text_window_number; | 201 int text_window_number; |
200 bool text_parsing; | 202 bool text_parsing; |
201 TextStream text_stream; | 203 TextStream text_stream; |
202 SkipMode skip_mode; | 204 SkipMode skip_mode; |
203 int save_selectcount; | 205 int save_selectcount; |
204 | 206 |
205 std::map<int, TimerAtom> timer_var; | 207 std::map<int, TimerAtom> timer_var; |
208 //TODO: Handle EX Timer set | |
209 std::map<int, TimerAtom> timer_var_ex; | |
210 //TODO: Handle Frame Timers | |
211 std::map<int, FrameTimerAtom> frame_var; | |
212 std::map<int, FrameTimerAtom> frame_var_ex; | |
213 | |
206 std::vector<WidTextButton*> selects; | 214 std::vector<WidTextButton*> selects; |
207 std::vector<int> sel_backlog_pos; | 215 std::vector<int> sel_backlog_pos; |
208 string replace_name[26]; | 216 string replace_name[26]; |
209 string replace_name2[26]; | 217 string replace_name2[26]; |
210 PicContainer* sel_widget; | 218 PicContainer* sel_widget; |
225 | 233 |
226 Event::Container& event; | 234 Event::Container& event; |
227 PicContainer& parent; | 235 PicContainer& parent; |
228 | 236 |
229 //Opcode handling | 237 //Opcode handling |
238 // Text | |
230 void impl_txtClear(Cmd& cmd); | 239 void impl_txtClear(Cmd& cmd); |
231 void impl_logKoe(Cmd& cmd); | 240 void impl_logKoe(Cmd& cmd); |
232 void impl_pause(Cmd& cmd); | 241 void impl_pause(Cmd& cmd); |
233 void impl_br(Cmd& cmd); | 242 void impl_br(Cmd& cmd); |
234 void impl_FaceOpen(Cmd& cmd); | 243 void impl_FaceOpen(Cmd& cmd); |
236 void impl_doRuby(Cmd& cmd); | 245 void impl_doRuby(Cmd& cmd); |
237 void impl_TextWindow(Cmd& cmd); | 246 void impl_TextWindow(Cmd& cmd); |
238 void impl_msgClear(Cmd& cmd); | 247 void impl_msgClear(Cmd& cmd); |
239 void impl_FastText(Cmd& cmd); | 248 void impl_FastText(Cmd& cmd); |
240 void impl_createSelect(Cmd& cmd); | 249 void impl_createSelect(Cmd& cmd); |
241 void impl_ShowBackground(Cmd& cmd); | |
242 void impl_SetSkipMode(Cmd& cmd); | 250 void impl_SetSkipMode(Cmd& cmd); |
243 void impl_Wait(Cmd& cmd); | 251 void impl_Wait(Cmd& cmd); |
252 void impl_PauseCursor(Cmd& cmd); | |
253 void impl_SetWindowAttr(Cmd& cmd); | |
254 void impl_GetWindowAttr(Cmd& cmd); | |
255 void impl_GetName(Cmd& cmd); | |
256 void impl_SetName(Cmd& cmd); | |
257 void impl_GetLocalName(Cmd& cmd); | |
258 void impl_SetLocalName(Cmd& cmd); | |
259 // Misc (related with text) | |
260 void impl_ShowBackground(Cmd& cmd); | |
261 void impl_GetDefConfig(Cmd& cmd); | |
262 void impl_GetConfig(Cmd& cmd); | |
263 void impl_SetConfig(Cmd& cmd); | |
264 // Misc | |
265 void impl_index_series(Cmd& cmd); | |
266 void impl_load(Cmd& cmd); | |
244 void impl_GetClick(Cmd& cmd); | 267 void impl_GetClick(Cmd& cmd); |
268 // Time/Frame | |
269 void impl_InitFrame(Cmd& cmd); | |
245 void impl_ReadFrame(Cmd& cmd); | 270 void impl_ReadFrame(Cmd& cmd); |
271 void impl_InitFrames(Cmd& cmd); | |
272 void impl_ReadFrames(Cmd& cmd); | |
273 void impl_ResetTimer(Cmd& cmd); | |
274 void impl_Timer(Cmd& cmd); | |
275 // Maths | |
276 void impl_rnd(Cmd& cmd); | |
277 void impl_pcnt(Cmd& cmd); | |
278 void impl_abs(Cmd& cmd); | |
279 void impl_power(Cmd& cmd); | |
280 void impl_min(Cmd& cmd); | |
281 void impl_max(Cmd& cmd); | |
282 void impl_constrain(Cmd& cmd); | |
246 }; | 283 }; |
247 | 284 |
248 #endif | 285 #endif |