-
-
Notifications
You must be signed in to change notification settings - Fork 990
/
move_skip_sighted.cfg
76 lines (69 loc) · 1.81 KB
/
move_skip_sighted.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# This series of tests checks that the skip_sighted option of
# [move] is being implemented correctly.
#define MOVE_SKIP_SIGHTED_SCEN ID STOP_X STOP_Y SKIP_SIGHTED SHARE_VIEW
[test]
name = "Unit Test {ID}"
map_data = "{test/maps/move_skip_sighted.map}"
turns = 3
id = {ID}
random_start_time = no
{DAWN}
[side]
side=1
controller=human
name = "Alice"
type = Elvish Archer
id=alice
fog=yes
share_view={SHARE_VIEW}
[/side]
[side]
side=2
controller=human
name = "Bob"
type = Orcish Grunt
id=bob
fog=yes
team_name=East
share_view={SHARE_VIEW}
[/side]
[side]
side=3
controller=human
name = "Dave"
type = Dwarvish Fighter
id=dave
fog=yes
team_name=East
share_view={SHARE_VIEW}
[/side]
[event]
name = side 1 turn 1
[end_turn]
[/end_turn]
[/event]
[event]
name = side 2 turn 1
[do_command]
[move]
x=16,15,14,13,12,11
y=3,3,3,3,3,3
skip_sighted={SKIP_SIGHTED}
[/move]
[/do_command]
{RETURN (
[have_unit]
id=bob
x={STOP_X}
y={STOP_Y}
[/have_unit]
)}
[/event]
[/test]
#enddef
{MOVE_SKIP_SIGHTED_SCEN move_skip_no_sighted_no_share_view 15 3 no no}
{MOVE_SKIP_SIGHTED_SCEN move_skip_ally_sighted_no_share_view 12 3 only_ally no}
{MOVE_SKIP_SIGHTED_SCEN move_skip_all_sighted_no_share_view 11 3 all no}
{MOVE_SKIP_SIGHTED_SCEN move_skip_no_sighted_yes_share_view 11 3 no yes}
{MOVE_SKIP_SIGHTED_SCEN move_skip_ally_sighted_yes_share_view 11 3 only_ally yes}
{MOVE_SKIP_SIGHTED_SCEN move_skip_all_sighted_yes_share_view 11 3 all yes}