Class: Termfront::Mission::TrainingGrounds

Inherits:
Base
  • Object
show all
Defined in:
lib/termfront/mission/training_grounds.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

#briefingObject



7
# File 'lib/termfront/mission/training_grounds.rb', line 7

def briefing = "Clear a small compound. Learn the basics."

#enemy_defsObject



27
28
29
30
31
32
# File 'lib/termfront/mission/training_grounds.rb', line 27

def enemy_defs
  [
    [10.5, 3.5, 10.5, 6.5, :crawler],
    [13.5, 7.5, 13.5, 2.5, :crawler]
  ]
end

#map_dataObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/termfront/mission/training_grounds.rb', line 9

def map_data
  [
    "################",
    "#..............#",
    "#..............#",
    "#......##......#",
    "#......##......#",
    "#..............#",
    "#..............#",
    "#..............#",
    "#..............#",
    "################"
  ]
end

#nameObject



6
# File 'lib/termfront/mission/training_grounds.rb', line 6

def name = "Training Grounds"

#spawnObject



24
# File 'lib/termfront/mission/training_grounds.rb', line 24

def spawn = [2.5, 5.0, 0.0]

#weapon_defsObject



25
# File 'lib/termfront/mission/training_grounds.rb', line 25

def weapon_defs = [[:pistol, nil]]