projects
/
python-bulletml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eed0de8
)
Better conditional / appearance test.
author
Joe Wreschnig
<joe.wreschnig@gmail.com>
Fri, 23 Apr 2010 08:39:35 +0000
(
01:39
-0700)
committer
Joe Wreschnig
<joe.wreschnig@gmail.com>
Fri, 23 Apr 2010 08:39:35 +0000
(
01:39
-0700)
examples/popcorn/towards.xml
patch
|
blob
|
history
diff --git
a/examples/popcorn/towards.xml
b/examples/popcorn/towards.xml
index
da70f59
..
1db6dd2
100644
(file)
--- a/
examples/popcorn/towards.xml
+++ b/
examples/popcorn/towards.xml
@@
-3,6
+3,14
@@
\r
<bulletml xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml">
\r
<action label="top">
\r
\r
<bulletml xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml">
\r
<action label="top">
\r
- <fire><bullet/></fire>
\r
+ <if><cond>$rand > 0.7</cond>
\r
+ <then><fire><bullet/><appearance>red</appearance></fire></then>
\r
+ <else>
\r
+ <if><cond>$rand > 0.5</cond>
\r
+ <then><fire><bullet/><appearance>blue</appearance></fire></then>
\r
+ <else><fire><bullet/><appearance>green</appearance></fire></else>
\r
+ </if>
\r
+ </else>
\r
+ </if>
\r
</action>
\r
</bulletml>
\r
</action>
\r
</bulletml>
\r