lib/traits/shooter.rb in gosu_extensions-0.2.6 vs lib/traits/shooter.rb in gosu_extensions-0.2.7

- old
+ new

@@ -3,11 +3,11 @@ Shoot = :shoot manual <<-MANUAL Defines: range <some range> # This is only needed for targeted shooting, e.g. automatic cannons - frequency <some shooting frequency> # TODO block + frequency <some shooting frequency> shoots <class:thing> muzzle_position { position calculation } || frontal # a block muzzle_velocity { velocity calculation } muzzle_rotation { rotation calculation } @@ -37,9 +37,11 @@ def range amount InitializerHooks.register self do self.shooting_range = amount end end + # TODO block + # def frequency amount InitializerHooks.register self do self.shooting_rate = ((SUBSTEPS**2).to_f/amount)/2 end end \ No newline at end of file