Class: Doom::Game::Combat::Projectile
- Inherits:
-
Struct
- Object
- Struct
- Doom::Game::Combat::Projectile
- Defined in:
- lib/doom/game/combat.rb
Overview
owner is the Player who fired, so a kill can be credited. Monster
projectiles leave it nil: DOOM gives no frag for a death by monster.
damage_multiplier scales the damage a monster fireball deals on impact,
so a skill's damage factor reaches the fireball it spawned. Player
projectiles (rockets) carry 1.0.
Instance Attribute Summary collapse
-
#damage_multiplier ⇒ Object
Returns the value of attribute damage_multiplier.
-
#dx ⇒ Object
Returns the value of attribute dx.
-
#dy ⇒ Object
Returns the value of attribute dy.
-
#dz ⇒ Object
Returns the value of attribute dz.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#spawn_tic ⇒ Object
Returns the value of attribute spawn_tic.
-
#sprite_prefix ⇒ Object
Returns the value of attribute sprite_prefix.
-
#target ⇒ Object
Returns the value of attribute target.
-
#type ⇒ Object
Returns the value of attribute type.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
-
#z ⇒ Object
Returns the value of attribute z.
Instance Attribute Details
#damage_multiplier ⇒ Object
Returns the value of attribute damage_multiplier
103 104 105 |
# File 'lib/doom/game/combat.rb', line 103 def damage_multiplier @damage_multiplier end |
#dx ⇒ Object
Returns the value of attribute dx
103 104 105 |
# File 'lib/doom/game/combat.rb', line 103 def dx @dx end |
#dy ⇒ Object
Returns the value of attribute dy
103 104 105 |
# File 'lib/doom/game/combat.rb', line 103 def dy @dy end |
#dz ⇒ Object
Returns the value of attribute dz
103 104 105 |
# File 'lib/doom/game/combat.rb', line 103 def dz @dz end |
#owner ⇒ Object
Returns the value of attribute owner
103 104 105 |
# File 'lib/doom/game/combat.rb', line 103 def owner @owner end |
#spawn_tic ⇒ Object
Returns the value of attribute spawn_tic
103 104 105 |
# File 'lib/doom/game/combat.rb', line 103 def spawn_tic @spawn_tic end |
#sprite_prefix ⇒ Object
Returns the value of attribute sprite_prefix
103 104 105 |
# File 'lib/doom/game/combat.rb', line 103 def sprite_prefix @sprite_prefix end |
#target ⇒ Object
Returns the value of attribute target
103 104 105 |
# File 'lib/doom/game/combat.rb', line 103 def target @target end |
#type ⇒ Object
Returns the value of attribute type
103 104 105 |
# File 'lib/doom/game/combat.rb', line 103 def type @type end |
#x ⇒ Object
Returns the value of attribute x
103 104 105 |
# File 'lib/doom/game/combat.rb', line 103 def x @x end |
#y ⇒ Object
Returns the value of attribute y
103 104 105 |
# File 'lib/doom/game/combat.rb', line 103 def y @y end |
#z ⇒ Object
Returns the value of attribute z
103 104 105 |
# File 'lib/doom/game/combat.rb', line 103 def z @z end |