Class: Termfront::Enemy::Executor

Inherits:
Base
  • Object
show all
Defined in:
lib/termfront/enemy/executor.rb

Constant Summary

Constants inherited from Base

Base::DIFFICULTIES

Instance Attribute Summary

Attributes inherited from Base

#alive, #hp, #last_fire, #max_hp, #wp_a, #wp_b, #wp_dir, #wp_t, #x, #y

Instance Method Summary collapse

Methods inherited from Base

build, #dead?, generate_extras, #initialize, #patrol, register, registry, #take_damage, #update

Constructor Details

This class inherits a constructor from Termfront::Enemy::Base

Instance Method Details

#base_hpObject



13
# File 'lib/termfront/enemy/executor.rb', line 13

def base_hp   = 2

#cooldownObject



8
# File 'lib/termfront/enemy/executor.rb', line 8

def cooldown  = 2.5

#damageObject



6
# File 'lib/termfront/enemy/executor.rb', line 6

def damage    = 25

#drop_ammoObject



11
# File 'lib/termfront/enemy/executor.rb', line 11

def drop_ammo = 100

#drop_typeObject



10
# File 'lib/termfront/enemy/executor.rb', line 10

def drop_type = :shock_rifle

#rangeObject



7
# File 'lib/termfront/enemy/executor.rb', line 7

def range     = 8.0

#speedObject



9
# File 'lib/termfront/enemy/executor.rb', line 9

def speed     = 1.2

#sprite_idObject



12
# File 'lib/termfront/enemy/executor.rb', line 12

def sprite_id = :executor