Class: Termfront::Mission::Training
- Inherits:
-
Base
- Object
- Base
- Termfront::Mission::Training
show all
- Defined in:
- lib/termfront/mission/training.rb
Instance Method Summary
collapse
Methods inherited from Base
#build_enemies, #build_map, #build_terminals, #build_weapons, campaign, #event_definitions, #events_path, #id, register, register_wavesfight, wavesfight
Instance Method Details
#briefing ⇒ Object
7
|
# File 'lib/termfront/mission/training.rb', line 7
def briefing = "Practice mode. Sweep the facility."
|
#enemy_defs ⇒ Object
28
29
30
31
32
33
34
35
|
# File 'lib/termfront/mission/training.rb', line 28
def enemy_defs
[
[16.5, 1.5, 16.5, 4.5, :executor],
[5.5, 8.5, 9.5, 8.5, :crawler],
[20.5, 5.5, 20.5, 9.5, :crawler],
[3.5, 2.5, 3.5, 4.5, :crawler]
]
end
|
#map_data ⇒ Object
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/termfront/mission/training.rb', line 9
def map_data
[
"########################",
"#..........#...........#",
"#..........#...........#",
"#..........#...........#",
"#..........#...........#",
"#......................#",
"#..........####........#",
"#......................#",
"#..............#.......#",
"#..............#.......#",
"########################"
]
end
|
#name ⇒ Object
6
|
# File 'lib/termfront/mission/training.rb', line 6
def name = "Training"
|
#spawn ⇒ Object
25
|
# File 'lib/termfront/mission/training.rb', line 25
def spawn = [10.0, 6.0, 0.0]
|
#weapon_defs ⇒ Object
26
|
# File 'lib/termfront/mission/training.rb', line 26
def weapon_defs = [[:ar, 60], [:pistol, nil]]
|