Sha256: 54dd373bbc91dbdb7a841278eedfe867347d863806c26822b05bb4cc645eea2a

Contents?: true

Size: 236 Bytes

Versions: 24

Compression:

Stored size: 236 Bytes

Contents

module Shot extend Trait
  
  #
  #
  attr_accessor :velocity, :originator
  
  #
  #
  def shoot_from shooter
    self.position = shooter.muzzle_position
    self.originator = shooter
    self.window.register self
    self
  end
  
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
gosu_extensions-0.2.9 lib/traits/shot.rb
gosu_extensions-0.2.8 lib/traits/shot.rb
gosu_extensions-0.2.7 lib/traits/shot.rb
gosu_extensions-0.2.6 lib/traits/shot.rb
gosu_extensions-0.2.5 lib/traits/shot.rb
gosu_extensions-0.2.4 lib/traits/shot.rb
gosu_extensions-0.2.3 lib/traits/shot.rb
gosu_extensions-0.2.2 lib/traits/shot.rb
gosu_extensions-0.2.1 lib/traits/shot.rb
gosu_extensions-0.2.0 lib/traits/shot.rb
gosu_extensions-0.1.28 lib/traits/shot.rb
gosu_extensions-0.1.27 lib/traits/shot.rb
gosu_extensions-0.1.26 lib/traits/shot.rb
gosu_extensions-0.1.25 lib/traits/shot.rb
gosu_extensions-0.1.24 lib/traits/shot.rb
gosu_extensions-0.1.23 lib/traits/shot.rb
gosu_extensions-0.1.22 lib/traits/shot.rb
gosu_extensions-0.1.21 lib/traits/shot.rb
gosu_extensions-0.1.20 lib/traits/shot.rb
gosu_extensions-0.1.19 lib/traits/shot.rb