Class: Termfront::Weapon::Pistol

Inherits:
Base
  • Object
show all
Defined in:
lib/termfront/weapon/pistol.rb

Instance Attribute Summary

Attributes inherited from Base

#ammo

Instance Method Summary collapse

Methods inherited from Base

build, #can_fire?, #consume_ammo!, #infinite_ammo?, #initialize, register, registry

Constructor Details

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

Instance Method Details

#cooldownObject



8
# File 'lib/termfront/weapon/pistol.rb', line 8

def cooldown  = 0.45

#hit_widthObject



9
# File 'lib/termfront/weapon/pistol.rb', line 9

def hit_width = 0.5

#max_ammoObject



7
# File 'lib/termfront/weapon/pistol.rb', line 7

def max_ammo  = nil

#nameObject



6
# File 'lib/termfront/weapon/pistol.rb', line 6

def name      = "Pistol"

#type_idObject



10
# File 'lib/termfront/weapon/pistol.rb', line 10

def type_id   = :pistol