修訂 | 36 (tree) |
---|---|
時間 | 2009-02-27 13:11:19 |
作者 | karasimiso |
<テキスト>タグの実装
@@ -63,8 +63,8 @@ | ||
63 | 63 | Event_Sound.$(OBJEXT) Face.$(OBJEXT) FlyingObject.$(OBJEXT) \ |
64 | 64 | Font.$(OBJEXT) KeyAction.$(OBJEXT) Label.$(OBJEXT) \ |
65 | 65 | Library.$(OBJEXT) Monitor.$(OBJEXT) Scenario.$(OBJEXT) \ |
66 | - Scene.$(OBJEXT) Sound.$(OBJEXT) Window.$(OBJEXT) \ | |
67 | - XMLParser.$(OBJEXT) ActionListener.$(OBJEXT) \ | |
66 | + Scene.$(OBJEXT) Sound.$(OBJEXT) Text.$(OBJEXT) \ | |
67 | + Window.$(OBJEXT) XMLParser.$(OBJEXT) ActionListener.$(OBJEXT) \ | |
68 | 68 | ActionManager.$(OBJEXT) CollisionGroup.$(OBJEXT) \ |
69 | 69 | CollisionListener.$(OBJEXT) CollisionManager.$(OBJEXT) \ |
70 | 70 | EventManager.$(OBJEXT) FPSManager.$(OBJEXT) \ |
@@ -94,6 +94,11 @@ | ||
94 | 94 | RootElement.$(OBJEXT) SAXHandler.$(OBJEXT) \ |
95 | 95 | SceneElement.$(OBJEXT) SceneEventElement.$(OBJEXT) \ |
96 | 96 | SceneTransitionElement.$(OBJEXT) SoundElement.$(OBJEXT) \ |
97 | + TextColorElement.$(OBJEXT) TextElement.$(OBJEXT) \ | |
98 | + TextEventElement.$(OBJEXT) TextFontElement.$(OBJEXT) \ | |
99 | + TextLocationXElement.$(OBJEXT) TextLocationYElement.$(OBJEXT) \ | |
100 | + TextSizeElement.$(OBJEXT) TextStringElement.$(OBJEXT) \ | |
101 | + TextStyleElement.$(OBJEXT) TextWaitElement.$(OBJEXT) \ | |
97 | 102 | WindowElement.$(OBJEXT) |
98 | 103 | libstgengine_a_OBJECTS = $(am_libstgengine_a_OBJECTS) |
99 | 104 | am__installdirs = "$(DESTDIR)$(bindir)" |
@@ -215,10 +220,10 @@ | ||
215 | 220 | |
216 | 221 | # |
217 | 222 | # This file is generated by srclist.pl |
218 | -# Mon Jan 26 10:58:49 2009 | |
223 | +# Fri Feb 27 12:57:29 2009 | |
219 | 224 | # |
220 | 225 | LANG = ja_JP.UTF-8 |
221 | -AM_CXXFLAGS = -O3 -fexec-charset=UTF-8 -finput-charset=UTF-8 | |
226 | +AM_CXXFLAGS = -O3 -fexec-charset=UTF-8 -finput-charset=UTF-8 -Wall | |
222 | 227 | noinst_LIBRARIES = libstgengine.a |
223 | 228 | libstgengine_a_SOURCES = ActionDestruction.cpp ActionDirection.cpp \ |
224 | 229 | ActionEndScene.cpp ActionFO.cpp ActionGenerate.cpp \ |
@@ -230,8 +235,8 @@ | ||
230 | 235 | common.cpp daikon.cpp Event_AddFO.cpp Event_Music.cpp \ |
231 | 236 | Event_MusicStop.cpp Event_Scene.cpp Event_Sound.cpp Face.cpp \ |
232 | 237 | FlyingObject.cpp Font.cpp KeyAction.cpp Label.cpp Library.cpp \ |
233 | - Monitor.cpp Scenario.cpp Scene.cpp Sound.cpp Window.cpp \ | |
234 | - XMLParser.cpp ActionCommand.h ActionDestruction.h \ | |
238 | + Monitor.cpp Scenario.cpp Scene.cpp Sound.cpp Text.cpp \ | |
239 | + Window.cpp XMLParser.cpp ActionCommand.h ActionDestruction.h \ | |
235 | 240 | ActionDirection.h ActionEndScene.h ActionFO.h ActionGenerate.h \ |
236 | 241 | ActionGosubScene.h ActionGotoScene.h ActionHoming.h \ |
237 | 242 | ActionKeyDisabled.h ActionKeyEnabled.h ActionMove.h \ |
@@ -242,7 +247,7 @@ | ||
242 | 247 | Event_MusicStop.h Event_Scene.h Event_Sound.h Face.h \ |
243 | 248 | FlyingObject.h Font.h GC.h header.h KeyAction.h KeyEntry.h \ |
244 | 249 | Label.h Library.h List.h Monitor.h Scenario.h Scene.h \ |
245 | - SceneEvent.h Sound.h Window.h XMLParser.h \ | |
250 | + SceneEvent.h Sound.h Text.h Window.h XMLParser.h \ | |
246 | 251 | Scene/ActionListener.h Scene/ActionManager.h \ |
247 | 252 | Scene/CollisionGroup.h Scene/CollisionListener.h \ |
248 | 253 | Scene/CollisionManager.h Scene/EventManager.h \ |
@@ -282,7 +287,13 @@ | ||
282 | 287 | XMLParser/SAXHandler.h XMLParser/SceneElement.h \ |
283 | 288 | XMLParser/SceneEventElement.h \ |
284 | 289 | XMLParser/SceneTransitionElement.h XMLParser/SoundElement.h \ |
285 | - XMLParser/WindowElement.h XMLParser/ActionCommandElement.cpp \ | |
290 | + XMLParser/TextColorElement.h XMLParser/TextElement.h \ | |
291 | + XMLParser/TextEventElement.h XMLParser/TextFontElement.h \ | |
292 | + XMLParser/TextLocationXElement.h \ | |
293 | + XMLParser/TextLocationYElement.h XMLParser/TextSizeElement.h \ | |
294 | + XMLParser/TextStringElement.h XMLParser/TextStyleElement.h \ | |
295 | + XMLParser/TextWaitElement.h XMLParser/WindowElement.h \ | |
296 | + XMLParser/ActionCommandElement.cpp \ | |
286 | 297 | XMLParser/ActionDestructionElement.cpp \ |
287 | 298 | XMLParser/ActionDirectionElement.cpp \ |
288 | 299 | XMLParser/ActionEndSceneElement.cpp \ |
@@ -311,7 +322,14 @@ | ||
311 | 322 | XMLParser/SAXHandler.cpp XMLParser/SceneElement.cpp \ |
312 | 323 | XMLParser/SceneEventElement.cpp \ |
313 | 324 | XMLParser/SceneTransitionElement.cpp \ |
314 | - XMLParser/SoundElement.cpp XMLParser/WindowElement.cpp | |
325 | + XMLParser/SoundElement.cpp XMLParser/TextColorElement.cpp \ | |
326 | + XMLParser/TextElement.cpp XMLParser/TextEventElement.cpp \ | |
327 | + XMLParser/TextFontElement.cpp \ | |
328 | + XMLParser/TextLocationXElement.cpp \ | |
329 | + XMLParser/TextLocationYElement.cpp \ | |
330 | + XMLParser/TextSizeElement.cpp XMLParser/TextStringElement.cpp \ | |
331 | + XMLParser/TextStyleElement.cpp XMLParser/TextWaitElement.cpp \ | |
332 | + XMLParser/WindowElement.cpp | |
315 | 333 | daikon_SOURCES = daikon.cpp daikon.h XMLParser.cpp XMLParser.h |
316 | 334 | daikon_LDFLAGS = |
317 | 335 | daikon_CXXFLAGS = $(SDL_CFLAGS) -O3 |
@@ -491,6 +509,17 @@ | ||
491 | 509 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ScoreManager.Po@am__quote@ |
492 | 510 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Sound.Po@am__quote@ |
493 | 511 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SoundElement.Po@am__quote@ |
512 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Text.Po@am__quote@ | |
513 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TextColorElement.Po@am__quote@ | |
514 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TextElement.Po@am__quote@ | |
515 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TextEventElement.Po@am__quote@ | |
516 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TextFontElement.Po@am__quote@ | |
517 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TextLocationXElement.Po@am__quote@ | |
518 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TextLocationYElement.Po@am__quote@ | |
519 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TextSizeElement.Po@am__quote@ | |
520 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TextStringElement.Po@am__quote@ | |
521 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TextStyleElement.Po@am__quote@ | |
522 | +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/TextWaitElement.Po@am__quote@ | |
494 | 523 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Window.Po@am__quote@ |
495 | 524 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WindowElement.Po@am__quote@ |
496 | 525 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WindowManager.Po@am__quote@ |
@@ -1200,6 +1229,146 @@ | ||
1200 | 1229 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
1201 | 1230 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o SoundElement.obj `if test -f 'XMLParser/SoundElement.cpp'; then $(CYGPATH_W) 'XMLParser/SoundElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/SoundElement.cpp'; fi` |
1202 | 1231 | |
1232 | +TextColorElement.o: XMLParser/TextColorElement.cpp | |
1233 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextColorElement.o -MD -MP -MF $(DEPDIR)/TextColorElement.Tpo -c -o TextColorElement.o `test -f 'XMLParser/TextColorElement.cpp' || echo '$(srcdir)/'`XMLParser/TextColorElement.cpp | |
1234 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextColorElement.Tpo $(DEPDIR)/TextColorElement.Po | |
1235 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextColorElement.cpp' object='TextColorElement.o' libtool=no @AMDEPBACKSLASH@ | |
1236 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1237 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextColorElement.o `test -f 'XMLParser/TextColorElement.cpp' || echo '$(srcdir)/'`XMLParser/TextColorElement.cpp | |
1238 | + | |
1239 | +TextColorElement.obj: XMLParser/TextColorElement.cpp | |
1240 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextColorElement.obj -MD -MP -MF $(DEPDIR)/TextColorElement.Tpo -c -o TextColorElement.obj `if test -f 'XMLParser/TextColorElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextColorElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextColorElement.cpp'; fi` | |
1241 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextColorElement.Tpo $(DEPDIR)/TextColorElement.Po | |
1242 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextColorElement.cpp' object='TextColorElement.obj' libtool=no @AMDEPBACKSLASH@ | |
1243 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1244 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextColorElement.obj `if test -f 'XMLParser/TextColorElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextColorElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextColorElement.cpp'; fi` | |
1245 | + | |
1246 | +TextElement.o: XMLParser/TextElement.cpp | |
1247 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextElement.o -MD -MP -MF $(DEPDIR)/TextElement.Tpo -c -o TextElement.o `test -f 'XMLParser/TextElement.cpp' || echo '$(srcdir)/'`XMLParser/TextElement.cpp | |
1248 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextElement.Tpo $(DEPDIR)/TextElement.Po | |
1249 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextElement.cpp' object='TextElement.o' libtool=no @AMDEPBACKSLASH@ | |
1250 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1251 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextElement.o `test -f 'XMLParser/TextElement.cpp' || echo '$(srcdir)/'`XMLParser/TextElement.cpp | |
1252 | + | |
1253 | +TextElement.obj: XMLParser/TextElement.cpp | |
1254 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextElement.obj -MD -MP -MF $(DEPDIR)/TextElement.Tpo -c -o TextElement.obj `if test -f 'XMLParser/TextElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextElement.cpp'; fi` | |
1255 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextElement.Tpo $(DEPDIR)/TextElement.Po | |
1256 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextElement.cpp' object='TextElement.obj' libtool=no @AMDEPBACKSLASH@ | |
1257 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1258 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextElement.obj `if test -f 'XMLParser/TextElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextElement.cpp'; fi` | |
1259 | + | |
1260 | +TextEventElement.o: XMLParser/TextEventElement.cpp | |
1261 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextEventElement.o -MD -MP -MF $(DEPDIR)/TextEventElement.Tpo -c -o TextEventElement.o `test -f 'XMLParser/TextEventElement.cpp' || echo '$(srcdir)/'`XMLParser/TextEventElement.cpp | |
1262 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextEventElement.Tpo $(DEPDIR)/TextEventElement.Po | |
1263 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextEventElement.cpp' object='TextEventElement.o' libtool=no @AMDEPBACKSLASH@ | |
1264 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1265 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextEventElement.o `test -f 'XMLParser/TextEventElement.cpp' || echo '$(srcdir)/'`XMLParser/TextEventElement.cpp | |
1266 | + | |
1267 | +TextEventElement.obj: XMLParser/TextEventElement.cpp | |
1268 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextEventElement.obj -MD -MP -MF $(DEPDIR)/TextEventElement.Tpo -c -o TextEventElement.obj `if test -f 'XMLParser/TextEventElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextEventElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextEventElement.cpp'; fi` | |
1269 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextEventElement.Tpo $(DEPDIR)/TextEventElement.Po | |
1270 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextEventElement.cpp' object='TextEventElement.obj' libtool=no @AMDEPBACKSLASH@ | |
1271 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1272 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextEventElement.obj `if test -f 'XMLParser/TextEventElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextEventElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextEventElement.cpp'; fi` | |
1273 | + | |
1274 | +TextFontElement.o: XMLParser/TextFontElement.cpp | |
1275 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextFontElement.o -MD -MP -MF $(DEPDIR)/TextFontElement.Tpo -c -o TextFontElement.o `test -f 'XMLParser/TextFontElement.cpp' || echo '$(srcdir)/'`XMLParser/TextFontElement.cpp | |
1276 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextFontElement.Tpo $(DEPDIR)/TextFontElement.Po | |
1277 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextFontElement.cpp' object='TextFontElement.o' libtool=no @AMDEPBACKSLASH@ | |
1278 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1279 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextFontElement.o `test -f 'XMLParser/TextFontElement.cpp' || echo '$(srcdir)/'`XMLParser/TextFontElement.cpp | |
1280 | + | |
1281 | +TextFontElement.obj: XMLParser/TextFontElement.cpp | |
1282 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextFontElement.obj -MD -MP -MF $(DEPDIR)/TextFontElement.Tpo -c -o TextFontElement.obj `if test -f 'XMLParser/TextFontElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextFontElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextFontElement.cpp'; fi` | |
1283 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextFontElement.Tpo $(DEPDIR)/TextFontElement.Po | |
1284 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextFontElement.cpp' object='TextFontElement.obj' libtool=no @AMDEPBACKSLASH@ | |
1285 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1286 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextFontElement.obj `if test -f 'XMLParser/TextFontElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextFontElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextFontElement.cpp'; fi` | |
1287 | + | |
1288 | +TextLocationXElement.o: XMLParser/TextLocationXElement.cpp | |
1289 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextLocationXElement.o -MD -MP -MF $(DEPDIR)/TextLocationXElement.Tpo -c -o TextLocationXElement.o `test -f 'XMLParser/TextLocationXElement.cpp' || echo '$(srcdir)/'`XMLParser/TextLocationXElement.cpp | |
1290 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextLocationXElement.Tpo $(DEPDIR)/TextLocationXElement.Po | |
1291 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextLocationXElement.cpp' object='TextLocationXElement.o' libtool=no @AMDEPBACKSLASH@ | |
1292 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1293 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextLocationXElement.o `test -f 'XMLParser/TextLocationXElement.cpp' || echo '$(srcdir)/'`XMLParser/TextLocationXElement.cpp | |
1294 | + | |
1295 | +TextLocationXElement.obj: XMLParser/TextLocationXElement.cpp | |
1296 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextLocationXElement.obj -MD -MP -MF $(DEPDIR)/TextLocationXElement.Tpo -c -o TextLocationXElement.obj `if test -f 'XMLParser/TextLocationXElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextLocationXElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextLocationXElement.cpp'; fi` | |
1297 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextLocationXElement.Tpo $(DEPDIR)/TextLocationXElement.Po | |
1298 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextLocationXElement.cpp' object='TextLocationXElement.obj' libtool=no @AMDEPBACKSLASH@ | |
1299 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1300 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextLocationXElement.obj `if test -f 'XMLParser/TextLocationXElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextLocationXElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextLocationXElement.cpp'; fi` | |
1301 | + | |
1302 | +TextLocationYElement.o: XMLParser/TextLocationYElement.cpp | |
1303 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextLocationYElement.o -MD -MP -MF $(DEPDIR)/TextLocationYElement.Tpo -c -o TextLocationYElement.o `test -f 'XMLParser/TextLocationYElement.cpp' || echo '$(srcdir)/'`XMLParser/TextLocationYElement.cpp | |
1304 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextLocationYElement.Tpo $(DEPDIR)/TextLocationYElement.Po | |
1305 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextLocationYElement.cpp' object='TextLocationYElement.o' libtool=no @AMDEPBACKSLASH@ | |
1306 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1307 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextLocationYElement.o `test -f 'XMLParser/TextLocationYElement.cpp' || echo '$(srcdir)/'`XMLParser/TextLocationYElement.cpp | |
1308 | + | |
1309 | +TextLocationYElement.obj: XMLParser/TextLocationYElement.cpp | |
1310 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextLocationYElement.obj -MD -MP -MF $(DEPDIR)/TextLocationYElement.Tpo -c -o TextLocationYElement.obj `if test -f 'XMLParser/TextLocationYElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextLocationYElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextLocationYElement.cpp'; fi` | |
1311 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextLocationYElement.Tpo $(DEPDIR)/TextLocationYElement.Po | |
1312 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextLocationYElement.cpp' object='TextLocationYElement.obj' libtool=no @AMDEPBACKSLASH@ | |
1313 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1314 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextLocationYElement.obj `if test -f 'XMLParser/TextLocationYElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextLocationYElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextLocationYElement.cpp'; fi` | |
1315 | + | |
1316 | +TextSizeElement.o: XMLParser/TextSizeElement.cpp | |
1317 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextSizeElement.o -MD -MP -MF $(DEPDIR)/TextSizeElement.Tpo -c -o TextSizeElement.o `test -f 'XMLParser/TextSizeElement.cpp' || echo '$(srcdir)/'`XMLParser/TextSizeElement.cpp | |
1318 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextSizeElement.Tpo $(DEPDIR)/TextSizeElement.Po | |
1319 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextSizeElement.cpp' object='TextSizeElement.o' libtool=no @AMDEPBACKSLASH@ | |
1320 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1321 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextSizeElement.o `test -f 'XMLParser/TextSizeElement.cpp' || echo '$(srcdir)/'`XMLParser/TextSizeElement.cpp | |
1322 | + | |
1323 | +TextSizeElement.obj: XMLParser/TextSizeElement.cpp | |
1324 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextSizeElement.obj -MD -MP -MF $(DEPDIR)/TextSizeElement.Tpo -c -o TextSizeElement.obj `if test -f 'XMLParser/TextSizeElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextSizeElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextSizeElement.cpp'; fi` | |
1325 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextSizeElement.Tpo $(DEPDIR)/TextSizeElement.Po | |
1326 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextSizeElement.cpp' object='TextSizeElement.obj' libtool=no @AMDEPBACKSLASH@ | |
1327 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1328 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextSizeElement.obj `if test -f 'XMLParser/TextSizeElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextSizeElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextSizeElement.cpp'; fi` | |
1329 | + | |
1330 | +TextStringElement.o: XMLParser/TextStringElement.cpp | |
1331 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextStringElement.o -MD -MP -MF $(DEPDIR)/TextStringElement.Tpo -c -o TextStringElement.o `test -f 'XMLParser/TextStringElement.cpp' || echo '$(srcdir)/'`XMLParser/TextStringElement.cpp | |
1332 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextStringElement.Tpo $(DEPDIR)/TextStringElement.Po | |
1333 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextStringElement.cpp' object='TextStringElement.o' libtool=no @AMDEPBACKSLASH@ | |
1334 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1335 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextStringElement.o `test -f 'XMLParser/TextStringElement.cpp' || echo '$(srcdir)/'`XMLParser/TextStringElement.cpp | |
1336 | + | |
1337 | +TextStringElement.obj: XMLParser/TextStringElement.cpp | |
1338 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextStringElement.obj -MD -MP -MF $(DEPDIR)/TextStringElement.Tpo -c -o TextStringElement.obj `if test -f 'XMLParser/TextStringElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextStringElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextStringElement.cpp'; fi` | |
1339 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextStringElement.Tpo $(DEPDIR)/TextStringElement.Po | |
1340 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextStringElement.cpp' object='TextStringElement.obj' libtool=no @AMDEPBACKSLASH@ | |
1341 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1342 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextStringElement.obj `if test -f 'XMLParser/TextStringElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextStringElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextStringElement.cpp'; fi` | |
1343 | + | |
1344 | +TextStyleElement.o: XMLParser/TextStyleElement.cpp | |
1345 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextStyleElement.o -MD -MP -MF $(DEPDIR)/TextStyleElement.Tpo -c -o TextStyleElement.o `test -f 'XMLParser/TextStyleElement.cpp' || echo '$(srcdir)/'`XMLParser/TextStyleElement.cpp | |
1346 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextStyleElement.Tpo $(DEPDIR)/TextStyleElement.Po | |
1347 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextStyleElement.cpp' object='TextStyleElement.o' libtool=no @AMDEPBACKSLASH@ | |
1348 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1349 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextStyleElement.o `test -f 'XMLParser/TextStyleElement.cpp' || echo '$(srcdir)/'`XMLParser/TextStyleElement.cpp | |
1350 | + | |
1351 | +TextStyleElement.obj: XMLParser/TextStyleElement.cpp | |
1352 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextStyleElement.obj -MD -MP -MF $(DEPDIR)/TextStyleElement.Tpo -c -o TextStyleElement.obj `if test -f 'XMLParser/TextStyleElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextStyleElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextStyleElement.cpp'; fi` | |
1353 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextStyleElement.Tpo $(DEPDIR)/TextStyleElement.Po | |
1354 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextStyleElement.cpp' object='TextStyleElement.obj' libtool=no @AMDEPBACKSLASH@ | |
1355 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1356 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextStyleElement.obj `if test -f 'XMLParser/TextStyleElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextStyleElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextStyleElement.cpp'; fi` | |
1357 | + | |
1358 | +TextWaitElement.o: XMLParser/TextWaitElement.cpp | |
1359 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextWaitElement.o -MD -MP -MF $(DEPDIR)/TextWaitElement.Tpo -c -o TextWaitElement.o `test -f 'XMLParser/TextWaitElement.cpp' || echo '$(srcdir)/'`XMLParser/TextWaitElement.cpp | |
1360 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextWaitElement.Tpo $(DEPDIR)/TextWaitElement.Po | |
1361 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextWaitElement.cpp' object='TextWaitElement.o' libtool=no @AMDEPBACKSLASH@ | |
1362 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1363 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextWaitElement.o `test -f 'XMLParser/TextWaitElement.cpp' || echo '$(srcdir)/'`XMLParser/TextWaitElement.cpp | |
1364 | + | |
1365 | +TextWaitElement.obj: XMLParser/TextWaitElement.cpp | |
1366 | +@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT TextWaitElement.obj -MD -MP -MF $(DEPDIR)/TextWaitElement.Tpo -c -o TextWaitElement.obj `if test -f 'XMLParser/TextWaitElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextWaitElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextWaitElement.cpp'; fi` | |
1367 | +@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/TextWaitElement.Tpo $(DEPDIR)/TextWaitElement.Po | |
1368 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='XMLParser/TextWaitElement.cpp' object='TextWaitElement.obj' libtool=no @AMDEPBACKSLASH@ | |
1369 | +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
1370 | +@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o TextWaitElement.obj `if test -f 'XMLParser/TextWaitElement.cpp'; then $(CYGPATH_W) 'XMLParser/TextWaitElement.cpp'; else $(CYGPATH_W) '$(srcdir)/XMLParser/TextWaitElement.cpp'; fi` | |
1371 | + | |
1203 | 1372 | WindowElement.o: XMLParser/WindowElement.cpp |
1204 | 1373 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT WindowElement.o -MD -MP -MF $(DEPDIR)/WindowElement.Tpo -c -o WindowElement.o `test -f 'XMLParser/WindowElement.cpp' || echo '$(srcdir)/'`XMLParser/WindowElement.cpp |
1205 | 1374 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/WindowElement.Tpo $(DEPDIR)/WindowElement.Po |
@@ -65,7 +65,8 @@ | ||
65 | 65 | } |
66 | 66 | |
67 | 67 | |
68 | - SDL_Surface* surface = SDL_SetVideoMode(1, 1, 32, SDL_HWSURFACE); | |
68 | + // ウィンドウの仮設定を行う | |
69 | + SDL_SetVideoMode(1, 1, 32, SDL_HWSURFACE); | |
69 | 70 | |
70 | 71 | // マウスカーソルを表示に設定 |
71 | 72 | SDL_ShowCursor(SDL_DISABLE); |
@@ -302,7 +303,7 @@ | ||
302 | 303 | |
303 | 304 | |
304 | 305 | |
305 | -SDL_Surface* createString(const char* text, const char* fontPath, int size, const SDL_Color& color, int style) | |
306 | +SDL_Surface* Library::createString(const char* text, const char* fontPath, int size, const SDL_Color& color, int style) | |
306 | 307 | { |
307 | 308 | TTF_Font* font = TTF_OpenFont(fontPath, size); |
308 | 309 | if ( !font ) { |
@@ -0,0 +1,207 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +#include <SDL/SDL.h> | |
26 | +#include <math.h> | |
27 | +#include <typeinfo> | |
28 | + | |
29 | +#include "Face.h" | |
30 | +#include "GC.h" | |
31 | +#include "Text.h" | |
32 | +#include "Library.h" | |
33 | +#include "Scene/SceneMediator.h" | |
34 | + | |
35 | +TextEvent::Event* TextEvent::Font::clone() { | |
36 | + TextEvent::Font* e = new TextEvent::Font(); | |
37 | + e->fontPath = fontPath; | |
38 | + return e; | |
39 | +} | |
40 | + | |
41 | +TextEvent::Event* TextEvent::LocationX::clone() { | |
42 | + TextEvent::LocationX* e = new TextEvent::LocationX(); | |
43 | + e->x = x; | |
44 | + return e; | |
45 | +} | |
46 | +TextEvent::Event* TextEvent::LocationY::clone() { | |
47 | + TextEvent::LocationY* e = new TextEvent::LocationY(); | |
48 | + e->y = y; | |
49 | + return e; | |
50 | +} | |
51 | + | |
52 | +TextEvent::Event* TextEvent::Color::clone() { | |
53 | + TextEvent::Color* e = new TextEvent::Color(); | |
54 | + e->color = color; | |
55 | + return e; | |
56 | +} | |
57 | + | |
58 | +TextEvent::Event* TextEvent::Style::clone() { | |
59 | + TextEvent::Style* e = new TextEvent::Style(); | |
60 | + e->style = style; | |
61 | + return e; | |
62 | +} | |
63 | + | |
64 | +TextEvent::Event* TextEvent::Size::clone() { | |
65 | + TextEvent::Size* e = new TextEvent::Size(); | |
66 | + e->size = size; | |
67 | + return e; | |
68 | +} | |
69 | + | |
70 | +TextEvent::Event* TextEvent::Wait::clone() { | |
71 | + TextEvent::Wait* e = new TextEvent::Wait(); | |
72 | + e->count = count; | |
73 | + return e; | |
74 | +} | |
75 | + | |
76 | +TextEvent::Event* TextEvent::String::clone() { | |
77 | + TextEvent::String* e = new TextEvent::String(); | |
78 | + e->str = str; | |
79 | + return e; | |
80 | +} | |
81 | + | |
82 | +Text::Text() | |
83 | +{ | |
84 | +} | |
85 | + | |
86 | +Text::~Text() | |
87 | +{ | |
88 | +} | |
89 | + | |
90 | +Text* Text::create(list<TextEvent::Event*>* events) | |
91 | +{ | |
92 | + Text* text = GC<Text>::getInstance(); | |
93 | + text->x = 0; | |
94 | + text->y = 0; | |
95 | + text->timerCount = 0; | |
96 | + text->size = 12; | |
97 | + SDL_Color default_color = { 0,0,0,0 }; | |
98 | + text->color = default_color; | |
99 | + text->style = NULL; | |
100 | + text->fontPath = ""; | |
101 | + if ( events == NULL ) { | |
102 | + text->events = new list<TextEvent::Event*>; | |
103 | + } | |
104 | + else { | |
105 | + text->events = events; | |
106 | + } | |
107 | + text->faces.clear(); | |
108 | + return text; | |
109 | +} | |
110 | + | |
111 | +bool Text::action(SceneMediator* mediator) | |
112 | +{ | |
113 | + if ( timerCount-- > 0 ) { return true; } | |
114 | + if( timerCount-- <= 0 && events_itr == events->end() ) { | |
115 | + list<Face*>::iterator i = faces.begin(); | |
116 | + while ( i !=faces.end() ) { | |
117 | + mediator->removeFace(*i); | |
118 | + i++; | |
119 | + } | |
120 | + destroy(); | |
121 | + return false; | |
122 | + } | |
123 | + | |
124 | + if ( typeid(**events_itr)==typeid(TextEvent::LocationX) ) { | |
125 | + x = ((TextEvent::LocationX*)(*events_itr))->x; | |
126 | + } | |
127 | + else if ( typeid(**events_itr)==typeid(TextEvent::LocationY) ) { | |
128 | + y = ((TextEvent::LocationY*)(*events_itr))->y; | |
129 | + } | |
130 | + else if ( typeid(**events_itr)==typeid(TextEvent::Font) ) { | |
131 | + fontPath = ((TextEvent::Font*)(*events_itr))->fontPath; | |
132 | + } | |
133 | + else if ( typeid(**events_itr)==typeid(TextEvent::Size) ) { | |
134 | + size = ((TextEvent::Size*)(*events_itr))->size; | |
135 | + } | |
136 | + else if ( typeid(**events_itr)==typeid(TextEvent::Color) ) { | |
137 | + color = ((TextEvent::Color*)(*events_itr))->color; | |
138 | + } | |
139 | + else if ( typeid(**events_itr)==typeid(TextEvent::Style) ) { | |
140 | + style = ((TextEvent::Style*)(*events_itr))->style; | |
141 | + } | |
142 | + else if ( typeid(**events_itr)==typeid(TextEvent::Wait) ) { | |
143 | + timerCount = ((TextEvent::Wait*)(*events_itr))->count; | |
144 | + } | |
145 | + else if ( typeid(**events_itr)==typeid(TextEvent::String) ) { | |
146 | + Face* face = Face::create(); | |
147 | + face->initFrame(); | |
148 | + face->setSurface(Library::createString(((TextEvent::String*)(*events_itr))->str.c_str(), fontPath.c_str(), size, color, style)); | |
149 | + face->setDistRect(x,y); | |
150 | + mediator->addFace(face); | |
151 | + faces.push_back(face); | |
152 | + } | |
153 | + else { | |
154 | + cerr << "無効なテキストイベント(" << typeid(**events_itr).name() <<")です。" << endl; | |
155 | + } | |
156 | + | |
157 | + events_itr++; | |
158 | + return true; | |
159 | +} | |
160 | + | |
161 | +void Text::destroy() | |
162 | +{ | |
163 | + list<Face*>::iterator i = faces.begin(); | |
164 | + while ( i !=faces.end() ) { | |
165 | + SDL_FreeSurface((*i)->surface); | |
166 | + (*i)->destroy(); | |
167 | + i = faces.erase(i); | |
168 | + } | |
169 | + GC<Text>::destroy(this); | |
170 | +} | |
171 | + | |
172 | +void Text::destroy(SceneMediator* mediator) | |
173 | +{ | |
174 | + list<Face*>::iterator i = faces.begin(); | |
175 | + while ( i !=faces.end() ) { | |
176 | + mediator->removeFace(*i); | |
177 | + i++; | |
178 | + } | |
179 | + | |
180 | + mediator->removeAction(this); | |
181 | + destroy(); | |
182 | +} | |
183 | + | |
184 | +Text* Text::clone() | |
185 | +{ | |
186 | + Text* text = Text::create(NULL); | |
187 | + text->x = x; | |
188 | + text->y = y; | |
189 | + text->size = size; | |
190 | + text->style = style; | |
191 | + text->timerCount = timerCount; | |
192 | + text->color = color; | |
193 | + | |
194 | + list<TextEvent::Event*>::iterator itr = events->begin(); | |
195 | + while ( itr != events->end() ) { | |
196 | + text->events->push_back((*itr)->clone()); | |
197 | + itr++; | |
198 | + } | |
199 | + | |
200 | + return text; | |
201 | +} | |
202 | + | |
203 | +void Text::init(SceneMediator* mediator) | |
204 | +{ | |
205 | + events_itr = events->begin(); | |
206 | + mediator->addAction(this); | |
207 | +} |
@@ -0,0 +1,60 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +using namespace std; | |
26 | + | |
27 | +#include <stdlib.h> | |
28 | + | |
29 | +#include "TextEventElement.h" | |
30 | +#include "TextLocationXElement.h" | |
31 | +#include "../Text.h" | |
32 | + | |
33 | +TextLocationXElement::TextLocationXElement(char* super) | |
34 | +{ | |
35 | + name = "横位置"; | |
36 | + superID = super; | |
37 | + event = NULL; | |
38 | +} | |
39 | + | |
40 | +Element* TextLocationXElement::getChild(char* name, char* super) | |
41 | +{ | |
42 | + invalidElement(name); | |
43 | + return NULL; | |
44 | +} | |
45 | + | |
46 | +void TextLocationXElement::endElement() | |
47 | +{ | |
48 | +} | |
49 | + | |
50 | + | |
51 | +TextEvent::Event* TextLocationXElement::getEvent() | |
52 | +{ | |
53 | + if ( event == NULL ) { | |
54 | + TextEvent::LocationX* e = new TextEvent::LocationX(); | |
55 | + e->x = atof(getValue(NULL).c_str()); | |
56 | + event = e; | |
57 | + } | |
58 | + return event; | |
59 | +} | |
60 | + |
@@ -0,0 +1,60 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +using namespace std; | |
26 | + | |
27 | +#include <stdlib.h> | |
28 | + | |
29 | +#include "TextEventElement.h" | |
30 | +#include "TextWaitElement.h" | |
31 | +#include "../Text.h" | |
32 | + | |
33 | +TextWaitElement::TextWaitElement(char* super) | |
34 | +{ | |
35 | + name = "サイズ"; | |
36 | + superID = super; | |
37 | + event = NULL; | |
38 | +} | |
39 | + | |
40 | +Element* TextWaitElement::getChild(char* name, char* super) | |
41 | +{ | |
42 | + invalidElement(name); | |
43 | + return NULL; | |
44 | +} | |
45 | + | |
46 | +void TextWaitElement::endElement() | |
47 | +{ | |
48 | +} | |
49 | + | |
50 | + | |
51 | +TextEvent::Event* TextWaitElement::getEvent() | |
52 | +{ | |
53 | + if ( event == NULL ) { | |
54 | + TextEvent::Wait* e = new TextEvent::Wait(); | |
55 | + e->count = atoi(getValue(NULL).c_str()); | |
56 | + event = e; | |
57 | + } | |
58 | + return event; | |
59 | +} | |
60 | + |
@@ -0,0 +1,60 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +using namespace std; | |
26 | + | |
27 | +#include <SDL/SDL.h> | |
28 | + | |
29 | +#include "TextEventElement.h" | |
30 | +#include "TextStringElement.h" | |
31 | +#include "../Text.h" | |
32 | + | |
33 | +TextStringElement::TextStringElement(char* super) | |
34 | +{ | |
35 | + name = "文字"; | |
36 | + superID = super; | |
37 | + event = NULL; | |
38 | +} | |
39 | + | |
40 | +Element* TextStringElement::getChild(char* name, char* super) | |
41 | +{ | |
42 | + invalidElement(name); | |
43 | + return NULL; | |
44 | +} | |
45 | + | |
46 | +void TextStringElement::endElement() | |
47 | +{ | |
48 | +} | |
49 | + | |
50 | + | |
51 | +TextEvent::Event* TextStringElement::getEvent() | |
52 | +{ | |
53 | + if ( event == NULL ) { | |
54 | + TextEvent::String* e = new TextEvent::String(); | |
55 | + e->str = getValue(NULL); | |
56 | + event = e; | |
57 | + } | |
58 | + return event; | |
59 | +} | |
60 | + |
@@ -0,0 +1,41 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +#ifndef __TEXTLOCATIONYELEMENT_H__INCLUDED__ | |
26 | +#define __TEXTLOCATIONYELEMENT_H__INCLUDED__ | |
27 | +#include <string> | |
28 | +#include "TextEventElement.h" | |
29 | + | |
30 | +class Element; | |
31 | +namespace TextEvent { class Event; }; | |
32 | +class TextLocationYElement : public TextEventElement | |
33 | +{ | |
34 | +public: | |
35 | + TextLocationYElement(char* super); | |
36 | + virtual Element* getChild(char* name, char* super); | |
37 | + virtual void endElement(); | |
38 | + TextEvent::Event* getEvent(); | |
39 | +}; | |
40 | +#endif | |
41 | + |
@@ -0,0 +1,58 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +using namespace std; | |
26 | + | |
27 | +#include "TextEventElement.h" | |
28 | +#include "TextFontElement.h" | |
29 | +#include "../Text.h" | |
30 | + | |
31 | +TextFontElement::TextFontElement(char* super) | |
32 | +{ | |
33 | + name = "フォント"; | |
34 | + superID = super; | |
35 | + event = NULL; | |
36 | +} | |
37 | + | |
38 | +Element* TextFontElement::getChild(char* name, char* super) | |
39 | +{ | |
40 | + invalidElement(name); | |
41 | + return NULL; | |
42 | +} | |
43 | + | |
44 | +void TextFontElement::endElement() | |
45 | +{ | |
46 | +} | |
47 | + | |
48 | + | |
49 | +TextEvent::Event* TextFontElement::getEvent() | |
50 | +{ | |
51 | + if ( event == NULL ) { | |
52 | + TextEvent::Font* e = new TextEvent::Font(); | |
53 | + e->fontPath = getValue(NULL); | |
54 | + event = e; | |
55 | + } | |
56 | + return event; | |
57 | +} | |
58 | + |
@@ -0,0 +1,132 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +#include <iostream> | |
26 | +#include <string> | |
27 | +#include <stdlib.h> | |
28 | +#include <list> | |
29 | +using namespace std; | |
30 | + | |
31 | +#include <SDL/SDL.h> | |
32 | + | |
33 | +#include "../Event_AddFO.h" | |
34 | +#include "../Text.h" | |
35 | + | |
36 | +#include "TextElement.h" | |
37 | +#include "TextEventElement.h" | |
38 | +#include "SceneEventElement.h" | |
39 | +#include "TextFontElement.h" | |
40 | +#include "TextStringElement.h" | |
41 | +#include "TextLocationXElement.h" | |
42 | +#include "TextLocationYElement.h" | |
43 | +#include "TextSizeElement.h" | |
44 | +#include "TextStyleElement.h" | |
45 | +#include "TextColorElement.h" | |
46 | +#include "TextWaitElement.h" | |
47 | + | |
48 | +TextElement::TextElement(char* super) | |
49 | +{ | |
50 | + name = "テキスト"; | |
51 | + superID = super; | |
52 | + type = SCENEEVENT; | |
53 | + elements = NULL; | |
54 | +} | |
55 | + | |
56 | +Element* TextElement::getChild(char* name, char* super) | |
57 | +{ | |
58 | + if ( elements == NULL ) { | |
59 | + elements = new list<TextEventElement*>; | |
60 | + } | |
61 | + if ( strcmp("フォント", name) == 0 ) { | |
62 | + TextEventElement* e = new TextFontElement(super); | |
63 | + elements->push_back(e); | |
64 | + return e; | |
65 | + } | |
66 | + else if ( strcmp("文字", name) == 0 ) { | |
67 | + TextEventElement* e = new TextStringElement(super); | |
68 | + elements->push_back(e); | |
69 | + return e; | |
70 | + } | |
71 | + else if ( strcmp("横位置", name) == 0 ) { | |
72 | + TextEventElement* e = new TextLocationXElement(super); | |
73 | + elements->push_back(e); | |
74 | + return e; | |
75 | + } | |
76 | + else if ( strcmp("縦位置", name) == 0 ) { | |
77 | + TextEventElement* e = new TextLocationYElement(super); | |
78 | + elements->push_back(e); | |
79 | + return e; | |
80 | + } | |
81 | + else if ( strcmp("サイズ", name) == 0 ) { | |
82 | + TextEventElement* e = new TextSizeElement(super); | |
83 | + elements->push_back(e); | |
84 | + return e; | |
85 | + } | |
86 | + else if ( strcmp("スタイル", name) == 0 ) { | |
87 | + TextEventElement* e = new TextStyleElement(super); | |
88 | + elements->push_back(e); | |
89 | + return e; | |
90 | + } | |
91 | + else if ( strcmp("色", name) == 0 ) { | |
92 | + TextEventElement* e = new TextColorElement(super); | |
93 | + elements->push_back(e); | |
94 | + return e; | |
95 | + } | |
96 | + else if ( strcmp("時間", name) == 0 ) { | |
97 | + TextEventElement* e = new TextWaitElement(super); | |
98 | + elements->push_back(e); | |
99 | + return e; | |
100 | + } | |
101 | + else { | |
102 | + invalidElement(name); | |
103 | + } | |
104 | + | |
105 | + return NULL; | |
106 | +} | |
107 | + | |
108 | +void TextElement::endElement() | |
109 | +{ | |
110 | +} | |
111 | + | |
112 | +list<TextEventElement*>* TextElement::getElements(list<string>* path) | |
113 | +{ | |
114 | + checkInheritance(getElements, elements, TextElement, new list<TextEventElement*>); | |
115 | + return elements; | |
116 | +} | |
117 | + | |
118 | +SceneEvent* TextElement::getEvent() | |
119 | +{ | |
120 | + if ( event == NULL ) { | |
121 | + list<TextEventElement*>* elements = getElements(NULL); | |
122 | + list<TextEventElement*>::iterator i = elements->begin(); | |
123 | + list<TextEvent::Event*>* events = new list<TextEvent::Event*>; | |
124 | + while ( i != elements->end() ) { | |
125 | + events->push_back((*i)->getEvent()); | |
126 | + i++; | |
127 | + } | |
128 | + event = new Event_AddFO(Text::create(events)); | |
129 | + } | |
130 | + return event; | |
131 | +} | |
132 | + |
@@ -45,6 +45,7 @@ | ||
45 | 45 | #include "SceneElement.h" |
46 | 46 | #include "SceneTransitionElement.h" |
47 | 47 | #include "SoundElement.h" |
48 | +#include "TextElement.h" | |
48 | 49 | #include "WindowElement.h" |
49 | 50 | |
50 | 51 | using namespace std; |
@@ -118,9 +119,16 @@ | ||
118 | 119 | elements->push_back(be); |
119 | 120 | return be; |
120 | 121 | } |
122 | + else if ( strcmp("テキスト", name) == 0 ) { | |
123 | + TextElement* te = new TextElement(super); | |
124 | + elements->push_back(te); | |
125 | + return te; | |
126 | + } | |
121 | 127 | else { |
122 | 128 | invalidElement(name); |
123 | 129 | } |
130 | + | |
131 | + return NULL; | |
124 | 132 | } |
125 | 133 | |
126 | 134 | void SceneElement::endElement() |
@@ -0,0 +1,47 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +#include <string> | |
26 | + | |
27 | +#include "TextEventElement.h" | |
28 | + | |
29 | +using namespace std; | |
30 | + | |
31 | +TextEventElement::TextEventElement() | |
32 | +{ | |
33 | + name = "不明なテキストイベントエレメント"; | |
34 | + superID = ""; | |
35 | + event = NULL; | |
36 | +} | |
37 | + | |
38 | +TextEventElement::TextEventElement(char* super) | |
39 | +{ | |
40 | + name = "テキストイベントエレメント"; | |
41 | + superID = super; | |
42 | + event = NULL; | |
43 | +} | |
44 | +TextEventElement::~TextEventElement() | |
45 | +{ | |
46 | +} | |
47 | + |
@@ -0,0 +1,42 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +#ifndef __TEXTCOLORELEMENT_H__INCLUDED__ | |
26 | +#define __TEXTCOLORELEMENT_H__INCLUDED__ | |
27 | +#include <string> | |
28 | +#include "TextEventElement.h" | |
29 | +#include "ColorElement.h" | |
30 | + | |
31 | +class Element; | |
32 | +namespace TextEvent { class Event; }; | |
33 | +class TextColorElement : public TextEventElement, public ColorElement | |
34 | +{ | |
35 | +public: | |
36 | + TextColorElement(char* super); | |
37 | + virtual Element* getChild(char* name, char* super); | |
38 | + virtual void endElement(); | |
39 | + TextEvent::Event* getEvent(); | |
40 | +}; | |
41 | +#endif | |
42 | + |
@@ -0,0 +1,53 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +#ifndef __TEXTELEMENT_H__INCLUDED__ | |
26 | +#define __TEXTELEMENT_H__INCLUDED__ | |
27 | +#include "SceneEventElement.h" | |
28 | + | |
29 | +class Element; | |
30 | +class ColorElement; | |
31 | +class TextEventElement; | |
32 | +class TextElement : public SceneEventElement | |
33 | +{ | |
34 | +private: | |
35 | + Element* text; | |
36 | + Element* fontPath; | |
37 | + Element* x; | |
38 | + Element* y; | |
39 | + Element* style; | |
40 | + Element* size; | |
41 | + Element* wait; | |
42 | + ColorElement* color; | |
43 | + std::list<TextEventElement*>* elements; | |
44 | + | |
45 | +public: | |
46 | + TextElement(char* super); | |
47 | + virtual Element* getChild(char* name, char* super); | |
48 | + virtual void endElement(); | |
49 | + virtual SceneEvent* getEvent(); | |
50 | + std::list<TextEventElement*>* getElements(std::list<std::string>* path); | |
51 | +}; | |
52 | +#endif | |
53 | + |
@@ -0,0 +1,41 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +#ifndef __TEXTSTYLEELEMENT_H__INCLUDED__ | |
26 | +#define __TEXTSTYLEELEMENT_H__INCLUDED__ | |
27 | +#include <string> | |
28 | +#include "TextEventElement.h" | |
29 | + | |
30 | +class Element; | |
31 | +namespace TextEvent { class Event; }; | |
32 | +class TextStyleElement : public TextEventElement | |
33 | +{ | |
34 | +public: | |
35 | + TextStyleElement(char* super); | |
36 | + virtual Element* getChild(char* name, char* super); | |
37 | + virtual void endElement(); | |
38 | + TextEvent::Event* getEvent(); | |
39 | +}; | |
40 | +#endif | |
41 | + |
@@ -40,6 +40,7 @@ | ||
40 | 40 | #include "SceneElement.h" |
41 | 41 | #include "SceneTransitionElement.h" |
42 | 42 | #include "SoundElement.h" |
43 | +#include "TextElement.h" | |
43 | 44 | #include "Window.h" |
44 | 45 | |
45 | 46 | #include "RootElement.h" |
@@ -97,9 +98,14 @@ | ||
97 | 98 | else if ( strcmp("境界線", name) == 0 ) { |
98 | 99 | return new BorderElement(super); |
99 | 100 | } |
101 | + else if ( strcmp("テキスト", name) == 0 ) { | |
102 | + return new TextElement(super); | |
103 | + } | |
100 | 104 | else { |
101 | 105 | invalidElement(name); |
102 | 106 | } |
107 | + | |
108 | + return NULL; | |
103 | 109 | } |
104 | 110 | |
105 | 111 | void RootElement::endElement() |
@@ -0,0 +1,60 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +using namespace std; | |
26 | + | |
27 | +#include <SDL/SDL_ttf.h> | |
28 | + | |
29 | +#include "TextEventElement.h" | |
30 | +#include "ColorElement.h" | |
31 | +#include "TextColorElement.h" | |
32 | +#include "../Text.h" | |
33 | + | |
34 | +TextColorElement::TextColorElement(char* super) : ColorElement(super) | |
35 | +{ | |
36 | + event = NULL; | |
37 | +} | |
38 | + | |
39 | +Element* TextColorElement::getChild(char* name, char* super) | |
40 | +{ | |
41 | + return this->ColorElement::getChild(name, super); | |
42 | +} | |
43 | + | |
44 | +void TextColorElement::endElement() | |
45 | +{ | |
46 | + this->ColorElement::endElement(); | |
47 | +} | |
48 | + | |
49 | +TextEvent::Event* TextColorElement::getEvent() | |
50 | +{ | |
51 | + if ( event == NULL ) { | |
52 | + SDL_Color* color = getColor(NULL); | |
53 | + TextEvent::Color* e = new TextEvent::Color(); | |
54 | + e->color = *color; | |
55 | + delete color; | |
56 | + event = e; | |
57 | + } | |
58 | + return event; | |
59 | +} | |
60 | + |
@@ -0,0 +1,41 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +#ifndef __TEXTSIZEELEMENT_H__INCLUDED__ | |
26 | +#define __TEXTSIZEELEMENT_H__INCLUDED__ | |
27 | +#include <string> | |
28 | +#include "TextEventElement.h" | |
29 | + | |
30 | +class Element; | |
31 | +namespace TextEvent { class Event; }; | |
32 | +class TextSizeElement : public TextEventElement | |
33 | +{ | |
34 | +public: | |
35 | + TextSizeElement(char* super); | |
36 | + virtual Element* getChild(char* name, char* super); | |
37 | + virtual void endElement(); | |
38 | + TextEvent::Event* getEvent(); | |
39 | +}; | |
40 | +#endif | |
41 | + |
@@ -0,0 +1,49 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +#ifndef __TEXTEVENTELEMENT_H__INCLUDED__ | |
26 | +#define __TEXTEVENTELEMENT_H__INCLUDED__ | |
27 | +#include "Element.h" | |
28 | + | |
29 | +#include <list> | |
30 | +#include <string> | |
31 | + | |
32 | +class Element; | |
33 | +namespace TextEvent { class Event; } | |
34 | + | |
35 | +class TextEventElement : public Element | |
36 | +{ | |
37 | +protected: | |
38 | + TextEvent::Event* event; | |
39 | + | |
40 | +public: | |
41 | + TextEventElement(); | |
42 | + virtual ~TextEventElement(); | |
43 | + TextEventElement(char* super); | |
44 | + virtual Element* getChild(char* name, char* super) = 0; | |
45 | + virtual void endElement() = 0; | |
46 | + virtual TextEvent::Event* getEvent() = 0; | |
47 | +}; | |
48 | +#endif | |
49 | + |
@@ -0,0 +1,67 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +using namespace std; | |
26 | + | |
27 | +#include <string> | |
28 | +#include <SDL/SDL_ttf.h> | |
29 | + | |
30 | +#include "TextEventElement.h" | |
31 | +#include "TextStyleElement.h" | |
32 | +#include "../Text.h" | |
33 | + | |
34 | +TextStyleElement::TextStyleElement(char* super) | |
35 | +{ | |
36 | + name = "スタイル"; | |
37 | + superID = super; | |
38 | + event = NULL; | |
39 | +} | |
40 | + | |
41 | +Element* TextStyleElement::getChild(char* name, char* super) | |
42 | +{ | |
43 | + invalidElement(name); | |
44 | + return NULL; | |
45 | +} | |
46 | + | |
47 | +void TextStyleElement::endElement() | |
48 | +{ | |
49 | +} | |
50 | + | |
51 | + | |
52 | +TextEvent::Event* TextStyleElement::getEvent() | |
53 | +{ | |
54 | + if ( event == NULL ) { | |
55 | + TextEvent::Style* e = new TextEvent::Style(); | |
56 | + string style = getValue(NULL); | |
57 | + if ( style.find("斜体",0) != string::npos ) { | |
58 | + e->style |= TTF_STYLE_ITALIC; | |
59 | + } | |
60 | + if ( style.find("太字",0) != string::npos ) { | |
61 | + e->style |= TTF_STYLE_BOLD; | |
62 | + } | |
63 | + event = e; | |
64 | + } | |
65 | + return event; | |
66 | +} | |
67 | + |
@@ -0,0 +1,60 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +using namespace std; | |
26 | + | |
27 | +#include <stdlib.h> | |
28 | + | |
29 | +#include "TextEventElement.h" | |
30 | +#include "TextLocationYElement.h" | |
31 | +#include "../Text.h" | |
32 | + | |
33 | +TextLocationYElement::TextLocationYElement(char* super) | |
34 | +{ | |
35 | + name = "縦位置"; | |
36 | + superID = super; | |
37 | + event = NULL; | |
38 | +} | |
39 | + | |
40 | +Element* TextLocationYElement::getChild(char* name, char* super) | |
41 | +{ | |
42 | + invalidElement(name); | |
43 | + return NULL; | |
44 | +} | |
45 | + | |
46 | +void TextLocationYElement::endElement() | |
47 | +{ | |
48 | +} | |
49 | + | |
50 | + | |
51 | +TextEvent::Event* TextLocationYElement::getEvent() | |
52 | +{ | |
53 | + if ( event == NULL ) { | |
54 | + TextEvent::LocationY* e = new TextEvent::LocationY(); | |
55 | + e->y = atof(getValue(NULL).c_str()); | |
56 | + event = e; | |
57 | + } | |
58 | + return event; | |
59 | +} | |
60 | + |
@@ -0,0 +1,41 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +#ifndef __TEXTLOCATIONXELEMENT_H__INCLUDED__ | |
26 | +#define __TEXTLOCATIONXELEMENT_H__INCLUDED__ | |
27 | +#include <string> | |
28 | +#include "TextEventElement.h" | |
29 | + | |
30 | +class Element; | |
31 | +namespace TextEvent { class Event; }; | |
32 | +class TextLocationXElement : public TextEventElement | |
33 | +{ | |
34 | +public: | |
35 | + TextLocationXElement(char* super); | |
36 | + virtual Element* getChild(char* name, char* super); | |
37 | + virtual void endElement(); | |
38 | + TextEvent::Event* getEvent(); | |
39 | +}; | |
40 | +#endif | |
41 | + |
@@ -0,0 +1,41 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +#ifndef __TEXTWAITELEMENT_H__INCLUDED__ | |
26 | +#define __TEXTWAITELEMENT_H__INCLUDED__ | |
27 | +#include <string> | |
28 | +#include "TextEventElement.h" | |
29 | + | |
30 | +class Element; | |
31 | +namespace TextEvent { class Event; }; | |
32 | +class TextWaitElement : public TextEventElement | |
33 | +{ | |
34 | +public: | |
35 | + TextWaitElement(char* super); | |
36 | + virtual Element* getChild(char* name, char* super); | |
37 | + virtual void endElement(); | |
38 | + TextEvent::Event* getEvent(); | |
39 | +}; | |
40 | +#endif | |
41 | + |
@@ -0,0 +1,60 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +using namespace std; | |
26 | + | |
27 | +#include <stdlib.h> | |
28 | + | |
29 | +#include "TextEventElement.h" | |
30 | +#include "TextSizeElement.h" | |
31 | +#include "../Text.h" | |
32 | + | |
33 | +TextSizeElement::TextSizeElement(char* super) | |
34 | +{ | |
35 | + name = "サイズ"; | |
36 | + superID = super; | |
37 | + event = NULL; | |
38 | +} | |
39 | + | |
40 | +Element* TextSizeElement::getChild(char* name, char* super) | |
41 | +{ | |
42 | + invalidElement(name); | |
43 | + return NULL; | |
44 | +} | |
45 | + | |
46 | +void TextSizeElement::endElement() | |
47 | +{ | |
48 | +} | |
49 | + | |
50 | + | |
51 | +TextEvent::Event* TextSizeElement::getEvent() | |
52 | +{ | |
53 | + if ( event == NULL ) { | |
54 | + TextEvent::Size* e = new TextEvent::Size(); | |
55 | + e->size = atoi(getValue(NULL).c_str()); | |
56 | + event = e; | |
57 | + } | |
58 | + return event; | |
59 | +} | |
60 | + |
@@ -0,0 +1,41 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +#ifndef __TEXTFONTELEMENT_H__INCLUDED__ | |
26 | +#define __TEXTFONTELEMENT_H__INCLUDED__ | |
27 | +#include <string> | |
28 | +#include "TextEventElement.h" | |
29 | + | |
30 | +class Element; | |
31 | +namespace TextEvent { class Event; }; | |
32 | +class TextFontElement : public TextEventElement | |
33 | +{ | |
34 | +public: | |
35 | + TextFontElement(char* super); | |
36 | + virtual Element* getChild(char* name, char* super); | |
37 | + virtual void endElement(); | |
38 | + TextEvent::Event* getEvent(); | |
39 | +}; | |
40 | +#endif | |
41 | + |
@@ -0,0 +1,41 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +#ifndef __TEXTSTRINGELEMENT_H__INCLUDED__ | |
26 | +#define __TEXTSTRINGELEMENT_H__INCLUDED__ | |
27 | +#include <string> | |
28 | +#include "TextEventElement.h" | |
29 | + | |
30 | +class Element; | |
31 | +namespace TextEvent { class Event; }; | |
32 | +class TextStringElement : public TextEventElement | |
33 | +{ | |
34 | +public: | |
35 | + TextStringElement(char* super); | |
36 | + virtual Element* getChild(char* name, char* super); | |
37 | + virtual void endElement(); | |
38 | + TextEvent::Event* getEvent(); | |
39 | +}; | |
40 | +#endif | |
41 | + |
@@ -57,7 +57,7 @@ | ||
57 | 57 | private: |
58 | 58 | List<Face>::Item* listIndex; |
59 | 59 | public: |
60 | - Face* create(); | |
60 | + static Face* create(); | |
61 | 61 | void destroy(); |
62 | 62 | |
63 | 63 | inline List<Face>::Item* getListIndex() |
@@ -45,9 +45,6 @@ | ||
45 | 45 | cout << "usage: daikon [XML]" << endl; |
46 | 46 | return 0; |
47 | 47 | } |
48 | - //boost::filesystem::path fontPath(argv[1]); | |
49 | - //Font::init(fontPath.branch_path()); | |
50 | - | |
51 | 48 | parser.parse(argv[1]); |
52 | 49 | |
53 | 50 | Library::freeImages(); |
@@ -1,11 +1,11 @@ | ||
1 | 1 | # |
2 | 2 | # This file is generated by srclist.pl |
3 | -# Mon Jan 26 10:58:49 2009 | |
3 | +# Fri Feb 27 12:57:29 2009 | |
4 | 4 | # |
5 | 5 | LANG = ja_JP.UTF-8 |
6 | -AM_CXXFLAGS = -O3 -fexec-charset=UTF-8 -finput-charset=UTF-8 | |
6 | +AM_CXXFLAGS = -O3 -fexec-charset=UTF-8 -finput-charset=UTF-8 -Wall | |
7 | 7 | noinst_LIBRARIES = libstgengine.a |
8 | -libstgengine_a_SOURCES = ActionDestruction.cpp ActionDirection.cpp ActionEndScene.cpp ActionFO.cpp ActionGenerate.cpp ActionGosubScene.cpp ActionGotoScene.cpp ActionHoming.cpp ActionKeyDisabled.cpp ActionKeyEnabled.cpp ActionMove.cpp ActionMoveForward.cpp ActionMoveTarget.cpp ActionScore.cpp ActionSequence.cpp ActionSlowdownRate.cpp ActionSound.cpp ActionTransparent.cpp ActionTurn.cpp BGScroll.cpp Border.cpp common.cpp daikon.cpp Event_AddFO.cpp Event_Music.cpp Event_MusicStop.cpp Event_Scene.cpp Event_Sound.cpp Face.cpp FlyingObject.cpp Font.cpp KeyAction.cpp Label.cpp Library.cpp Monitor.cpp Scenario.cpp Scene.cpp Sound.cpp Window.cpp XMLParser.cpp ActionCommand.h ActionDestruction.h ActionDirection.h ActionEndScene.h ActionFO.h ActionGenerate.h ActionGosubScene.h ActionGotoScene.h ActionHoming.h ActionKeyDisabled.h ActionKeyEnabled.h ActionMove.h ActionMoveForward.h ActionMoveTarget.h ActionScore.h ActionSequence.h ActionSlowdownRate.h ActionSound.h ActionTransparent.h ActionTurn.h BGScroll.h Border.h common.h config.h daikon.h Event_AddFO.h Event_Music.h Event_MusicStop.h Event_Scene.h Event_Sound.h Face.h FlyingObject.h Font.h GC.h header.h KeyAction.h KeyEntry.h Label.h Library.h List.h Monitor.h Scenario.h Scene.h SceneEvent.h Sound.h Window.h XMLParser.h Scene/ActionListener.h Scene/ActionManager.h Scene/CollisionGroup.h Scene/CollisionListener.h Scene/CollisionManager.h Scene/EventManager.h Scene/FPSManager.h Scene/InputManager.h Scene/KeyListener.h Scene/Manager.h Scene/SceneMediator.h Scene/ScoreManager.h Scene/WindowManager.h Scene/ActionListener.cpp Scene/ActionManager.cpp Scene/CollisionGroup.cpp Scene/CollisionListener.cpp Scene/CollisionManager.cpp Scene/EventManager.cpp Scene/FPSManager.cpp Scene/InputManager.cpp Scene/KeyListener.cpp Scene/SceneMediator.cpp Scene/ScoreManager.cpp Scene/WindowManager.cpp XMLParser/ActionCommandElement.h XMLParser/ActionDestructionElement.h XMLParser/ActionDirectionElement.h XMLParser/ActionEndSceneElement.h XMLParser/ActionFOElement.h XMLParser/ActionGenerateElement.h XMLParser/ActionGosubSceneElement.h XMLParser/ActionGotoSceneElement.h XMLParser/ActionHomingElement.h XMLParser/ActionKeyDisabledElement.h XMLParser/ActionKeyEnabledElement.h XMLParser/ActionMoveElement.h XMLParser/ActionMoveForwardElement.h XMLParser/ActionMoveTargetElement.h XMLParser/ActionNothingElement.h XMLParser/ActionScoreElement.h XMLParser/ActionSequenceElement.h XMLParser/ActionSlowdownRateElement.h XMLParser/ActionSoundElement.h XMLParser/ActionTransparentElement.h XMLParser/ActionTurnElement.h XMLParser/BGScrollElement.h XMLParser/BorderElement.h XMLParser/ColorElement.h XMLParser/Element.h XMLParser/IncludeElement.h XMLParser/KeyEntryElement.h XMLParser/LabelElement.h XMLParser/MusicElement.h XMLParser/MusicStopElement.h XMLParser/NoElement.h XMLParser/RootElement.h XMLParser/SAXHandler.h XMLParser/SceneElement.h XMLParser/SceneEventElement.h XMLParser/SceneTransitionElement.h XMLParser/SoundElement.h XMLParser/WindowElement.h XMLParser/ActionCommandElement.cpp XMLParser/ActionDestructionElement.cpp XMLParser/ActionDirectionElement.cpp XMLParser/ActionEndSceneElement.cpp XMLParser/ActionFOElement.cpp XMLParser/ActionGenerateElement.cpp XMLParser/ActionGosubSceneElement.cpp XMLParser/ActionGotoSceneElement.cpp XMLParser/ActionHomingElement.cpp XMLParser/ActionKeyDisabledElement.cpp XMLParser/ActionKeyEnabledElement.cpp XMLParser/ActionMoveElement.cpp XMLParser/ActionMoveForwardElement.cpp XMLParser/ActionMoveTargetElement.cpp XMLParser/ActionNothingElement.cpp XMLParser/ActionScoreElement.cpp XMLParser/ActionSequenceElement.cpp XMLParser/ActionSlowdownRateElement.cpp XMLParser/ActionSoundElement.cpp XMLParser/ActionTransparentElement.cpp XMLParser/ActionTurnElement.cpp XMLParser/BGScrollElement.cpp XMLParser/BorderElement.cpp XMLParser/ColorElement.cpp XMLParser/Element.cpp XMLParser/IncludeElement.cpp XMLParser/KeyEntryElement.cpp XMLParser/LabelElement.cpp XMLParser/MusicElement.cpp XMLParser/MusicStopElement.cpp XMLParser/NoElement.cpp XMLParser/RootElement.cpp XMLParser/SAXHandler.cpp XMLParser/SceneElement.cpp XMLParser/SceneEventElement.cpp XMLParser/SceneTransitionElement.cpp XMLParser/SoundElement.cpp XMLParser/WindowElement.cpp | |
8 | +libstgengine_a_SOURCES = ActionDestruction.cpp ActionDirection.cpp ActionEndScene.cpp ActionFO.cpp ActionGenerate.cpp ActionGosubScene.cpp ActionGotoScene.cpp ActionHoming.cpp ActionKeyDisabled.cpp ActionKeyEnabled.cpp ActionMove.cpp ActionMoveForward.cpp ActionMoveTarget.cpp ActionScore.cpp ActionSequence.cpp ActionSlowdownRate.cpp ActionSound.cpp ActionTransparent.cpp ActionTurn.cpp BGScroll.cpp Border.cpp common.cpp daikon.cpp Event_AddFO.cpp Event_Music.cpp Event_MusicStop.cpp Event_Scene.cpp Event_Sound.cpp Face.cpp FlyingObject.cpp Font.cpp KeyAction.cpp Label.cpp Library.cpp Monitor.cpp Scenario.cpp Scene.cpp Sound.cpp Text.cpp Window.cpp XMLParser.cpp ActionCommand.h ActionDestruction.h ActionDirection.h ActionEndScene.h ActionFO.h ActionGenerate.h ActionGosubScene.h ActionGotoScene.h ActionHoming.h ActionKeyDisabled.h ActionKeyEnabled.h ActionMove.h ActionMoveForward.h ActionMoveTarget.h ActionScore.h ActionSequence.h ActionSlowdownRate.h ActionSound.h ActionTransparent.h ActionTurn.h BGScroll.h Border.h common.h config.h daikon.h Event_AddFO.h Event_Music.h Event_MusicStop.h Event_Scene.h Event_Sound.h Face.h FlyingObject.h Font.h GC.h header.h KeyAction.h KeyEntry.h Label.h Library.h List.h Monitor.h Scenario.h Scene.h SceneEvent.h Sound.h Text.h Window.h XMLParser.h Scene/ActionListener.h Scene/ActionManager.h Scene/CollisionGroup.h Scene/CollisionListener.h Scene/CollisionManager.h Scene/EventManager.h Scene/FPSManager.h Scene/InputManager.h Scene/KeyListener.h Scene/Manager.h Scene/SceneMediator.h Scene/ScoreManager.h Scene/WindowManager.h Scene/ActionListener.cpp Scene/ActionManager.cpp Scene/CollisionGroup.cpp Scene/CollisionListener.cpp Scene/CollisionManager.cpp Scene/EventManager.cpp Scene/FPSManager.cpp Scene/InputManager.cpp Scene/KeyListener.cpp Scene/SceneMediator.cpp Scene/ScoreManager.cpp Scene/WindowManager.cpp XMLParser/ActionCommandElement.h XMLParser/ActionDestructionElement.h XMLParser/ActionDirectionElement.h XMLParser/ActionEndSceneElement.h XMLParser/ActionFOElement.h XMLParser/ActionGenerateElement.h XMLParser/ActionGosubSceneElement.h XMLParser/ActionGotoSceneElement.h XMLParser/ActionHomingElement.h XMLParser/ActionKeyDisabledElement.h XMLParser/ActionKeyEnabledElement.h XMLParser/ActionMoveElement.h XMLParser/ActionMoveForwardElement.h XMLParser/ActionMoveTargetElement.h XMLParser/ActionNothingElement.h XMLParser/ActionScoreElement.h XMLParser/ActionSequenceElement.h XMLParser/ActionSlowdownRateElement.h XMLParser/ActionSoundElement.h XMLParser/ActionTransparentElement.h XMLParser/ActionTurnElement.h XMLParser/BGScrollElement.h XMLParser/BorderElement.h XMLParser/ColorElement.h XMLParser/Element.h XMLParser/IncludeElement.h XMLParser/KeyEntryElement.h XMLParser/LabelElement.h XMLParser/MusicElement.h XMLParser/MusicStopElement.h XMLParser/NoElement.h XMLParser/RootElement.h XMLParser/SAXHandler.h XMLParser/SceneElement.h XMLParser/SceneEventElement.h XMLParser/SceneTransitionElement.h XMLParser/SoundElement.h XMLParser/TextColorElement.h XMLParser/TextElement.h XMLParser/TextEventElement.h XMLParser/TextFontElement.h XMLParser/TextLocationXElement.h XMLParser/TextLocationYElement.h XMLParser/TextSizeElement.h XMLParser/TextStringElement.h XMLParser/TextStyleElement.h XMLParser/TextWaitElement.h XMLParser/WindowElement.h XMLParser/ActionCommandElement.cpp XMLParser/ActionDestructionElement.cpp XMLParser/ActionDirectionElement.cpp XMLParser/ActionEndSceneElement.cpp XMLParser/ActionFOElement.cpp XMLParser/ActionGenerateElement.cpp XMLParser/ActionGosubSceneElement.cpp XMLParser/ActionGotoSceneElement.cpp XMLParser/ActionHomingElement.cpp XMLParser/ActionKeyDisabledElement.cpp XMLParser/ActionKeyEnabledElement.cpp XMLParser/ActionMoveElement.cpp XMLParser/ActionMoveForwardElement.cpp XMLParser/ActionMoveTargetElement.cpp XMLParser/ActionNothingElement.cpp XMLParser/ActionScoreElement.cpp XMLParser/ActionSequenceElement.cpp XMLParser/ActionSlowdownRateElement.cpp XMLParser/ActionSoundElement.cpp XMLParser/ActionTransparentElement.cpp XMLParser/ActionTurnElement.cpp XMLParser/BGScrollElement.cpp XMLParser/BorderElement.cpp XMLParser/ColorElement.cpp XMLParser/Element.cpp XMLParser/IncludeElement.cpp XMLParser/KeyEntryElement.cpp XMLParser/LabelElement.cpp XMLParser/MusicElement.cpp XMLParser/MusicStopElement.cpp XMLParser/NoElement.cpp XMLParser/RootElement.cpp XMLParser/SAXHandler.cpp XMLParser/SceneElement.cpp XMLParser/SceneEventElement.cpp XMLParser/SceneTransitionElement.cpp XMLParser/SoundElement.cpp XMLParser/TextColorElement.cpp XMLParser/TextElement.cpp XMLParser/TextEventElement.cpp XMLParser/TextFontElement.cpp XMLParser/TextLocationXElement.cpp XMLParser/TextLocationYElement.cpp XMLParser/TextSizeElement.cpp XMLParser/TextStringElement.cpp XMLParser/TextStyleElement.cpp XMLParser/TextWaitElement.cpp XMLParser/WindowElement.cpp | |
9 | 9 | bin_PROGRAMS = daikon |
10 | 10 | daikon_SOURCES = daikon.cpp daikon.h XMLParser.cpp XMLParser.h |
11 | 11 | daikon_LDFLAGS = |
@@ -0,0 +1,130 @@ | ||
1 | +/* | |
2 | + | |
3 | +ダイコン: STGスクリプトインタープリタは日本語XMLタグによるシューティングゲームのエンジンです。 | |
4 | +Copyright (C) 2009 karasimiso | |
5 | + | |
6 | +このプログラムはフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行されたGNU 一般公衆利用許諾書(バージョン3か、 それ以降のバージョンのうちどれか)が定める条件の下で再頒布または改変することができます。 | |
7 | + | |
8 | +このプログラムは有用であることを願って頒布されますが、*全くの無保証 *です。商業可能性の保証や特定目的への適合性は、言外に示されたものも 含め、全く存在しません。詳しくはGNU 一般公衆利用許諾書をご覧ください。 | |
9 | + | |
10 | +あなたはこのプログラムと共に、GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。もし受け取っていなければ、<http://www.gnu.org/licenses/> をご覧ください。 | |
11 | + | |
12 | + | |
13 | + | |
14 | +Daikon: STG Script Interpreter is game engine for shooting game in Japanese XML tags. | |
15 | +Copyright (C) 2009 karasimiso | |
16 | + | |
17 | +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. | |
18 | + | |
19 | +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
20 | + | |
21 | +You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. | |
22 | + | |
23 | +*/ | |
24 | + | |
25 | +#ifndef __TEXT_H__INCLUDED__ | |
26 | +#define __TEXT_H__INCLUDED__ | |
27 | +#include "FlyingObject.h" | |
28 | +#include "Scene/ActionListener.h" | |
29 | + | |
30 | +#include <SDL/SDL.h> | |
31 | +#include <SDL/SDL_ttf.h> | |
32 | +#include <list> | |
33 | + | |
34 | +class Face; | |
35 | +class SceneMediator; | |
36 | + | |
37 | +namespace TextEvent { | |
38 | + | |
39 | + class Event { | |
40 | + public: | |
41 | + virtual TextEvent::Event* clone() = 0; | |
42 | + }; | |
43 | + | |
44 | + class Font : public Event | |
45 | + { | |
46 | + public: | |
47 | + std::string fontPath; | |
48 | + TextEvent::Event* clone(); | |
49 | + }; | |
50 | + | |
51 | + class LocationX : public Event | |
52 | + { | |
53 | + public: | |
54 | + double x; | |
55 | + TextEvent::Event* clone(); | |
56 | + }; | |
57 | + | |
58 | + class LocationY : public Event | |
59 | + { | |
60 | + public: | |
61 | + double y; | |
62 | + TextEvent::Event* clone(); | |
63 | + }; | |
64 | + | |
65 | + | |
66 | + class Color : public Event | |
67 | + { | |
68 | + public: | |
69 | + SDL_Color color; | |
70 | + TextEvent::Event* clone(); | |
71 | + }; | |
72 | + | |
73 | + class Style : public Event | |
74 | + { | |
75 | + public: | |
76 | + int style; | |
77 | + TextEvent::Event* clone(); | |
78 | + }; | |
79 | + | |
80 | + class Size : public Event | |
81 | + { | |
82 | + public: | |
83 | + int size; | |
84 | + TextEvent::Event* clone(); | |
85 | + }; | |
86 | + | |
87 | + class Wait : public Event | |
88 | + { | |
89 | + public: | |
90 | + int count; | |
91 | + TextEvent::Event* clone(); | |
92 | + }; | |
93 | + | |
94 | + class String : public Event | |
95 | + { | |
96 | + public: | |
97 | + std::string str; | |
98 | + TextEvent::Event* clone(); | |
99 | + }; | |
100 | +}; | |
101 | + | |
102 | +class Text : public FlyingObject, public ActionListener | |
103 | +{ | |
104 | +private: | |
105 | + std::string fontPath; | |
106 | + double x, y; | |
107 | + int size, style; | |
108 | + SDL_Color color; | |
109 | + int timerCount; | |
110 | + std::list<Face*> faces; | |
111 | + std::list<TextEvent::Event*>* events; | |
112 | + std::list<TextEvent::Event*>::iterator events_itr; | |
113 | + | |
114 | +public: | |
115 | + | |
116 | + Text(); | |
117 | + ~Text(); | |
118 | + | |
119 | + void init(SceneMediator* mediator); | |
120 | + Text* clone(); | |
121 | + | |
122 | + virtual bool action(SceneMediator* mediator); | |
123 | + void destroy(); | |
124 | + void destroy(SceneMediator* mediator); | |
125 | + | |
126 | + static Text* create(std::list<TextEvent::Event*>* events); | |
127 | +}; | |
128 | + | |
129 | +#endif | |
130 | + |