Author: anonymissimus Date: Tue Mar 27 21:51:54 2012 New Revision: 53676 URL: http://svn.gna.org/viewcvs/wesnoth?rev=53676&view=rev Log: test cases for previous revision (patch by brilliand)
Modified:
trunk/data/scenario-test.cfg
Modified: trunk/data/scenario-test.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/scenario-test.cfg?rev=53676&r1=53675&r2=53676&view=diff
==============================================================================
--- trunk/data/scenario-test.cfg (original)
+++ trunk/data/scenario-test.cfg Tue Mar 27 21:51:54 2012
@@ -360,6 +360,141 @@
[/unit]
[/side]
+ [label]
+ x,y=14,10
+ text=_"Vision Test"
+ [/label]
+ [event]
+ name=moveto
+ first_time_only=no
+ [filter]
+ x,y=14,10
+ [/filter]
+ [message]
+ speaker=narrator
+ icon=wesnoth-icon.png
+ message=_"Checking visibility of (8,15)..."
+ [/message]
+ [if]
+ [have_location]
+ x,y=8,15
+ [filter_vision]
+ side=1
+ respect_fog=no
+ [/filter_vision]
+ [/have_location]
+ [then]
+ [if]
+ [have_location]
+ x,y=8,15
+ [filter_vision]
+ side=1
+ visible=no
+ respect_fog=no
+ [/filter_vision]
+ [/have_location]
+ [then]
+ [message]
+ speaker=narrator
+ icon=wesnoth-icon.png
+ message=_"HORRORS FILTERS ARE ALL TRUE!"
+ [/message]
+ [/then]
+ [else]
+ [message]
+ speaker=narrator
+ icon=wesnoth-icon.png
+ message=_"You can see it, can't you?"
+ [/message]
+ [if]
+ [have_location]
+ x,y=8,15
+ [filter_vision]
+ side=1
+ [/filter_vision]
+ [/have_location]
+ [then]
+ [if]
+ [have_location]
+ x,y=8,15
+ [filter_vision]
+ side=1
+ visible=no
+ [/filter_vision]
+ [/have_location]
+ [then]
+ [message]
+ speaker=narrator
+ icon=wesnoth-icon.png
+ message=_"HORRORS FILTERS ARE ALL
TRUE!"
+ [/message]
+ [/then]
+ [else]
+ [message]
+ speaker=narrator
+ icon=wesnoth-icon.png
+ message=_"Clear sailing!"
+ [/message]
+ [/else]
+ [/if]
+ [/then]
+ [else]
+ [if]
+ [have_location]
+ x,y=8,15
+ [filter_vision]
+ side=1
+ visible=no
+ [/filter_vision]
+ [/have_location]
+ [then]
+ [message]
+ speaker=narrator
+ icon=wesnoth-icon.png
+ message=_"But the fog, it blinds
you!"
+ [/message]
+ [/then]
+ [else]
+ [message]
+ speaker=narrator
+ icon=wesnoth-icon.png
+ message=_"HORRORS FILTERS ARE ALL
FALSE!"
+ [/message]
+ [/else]
+ [/if]
+ [/else]
+ [/if]
+ [/else]
+ [/if]
+ [/then]
+ [else]
+ [if]
+ [have_location]
+ x,y=8,15
+ [filter_vision]
+ side=1
+ visible=no
+ [/filter_vision]
+ [/have_location]
+ [then]
+ [message]
+ speaker=narrator
+ icon=wesnoth-icon.png
+ message=_"It is invisible!"
+ [/message]
+ [/then]
+ [else]
+ [message]
+ speaker=narrator
+ icon=wesnoth-icon.png
+ message=_"HORRORS FILTERS ARE ALL FALSE!"
+ [/message]
+ [/else]
+ [/if]
+ [/else]
+ [/if]
+ [/event]
+
[event]
name=attack
[filter]
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits
