Changeset 27420 for lang/ruby/starframe/lib/starframe/sprite/collidable.rb
- Timestamp:
- 12/25/08 23:39:24 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/starframe/lib/starframe/sprite/collidable.rb
r27419 r27420 15 15 # end 16 16 module Collidable 17 attr_accessor :collisions18 19 17 def self.included sprite #:nodoc: 20 18 sprite.extend ClassMethods … … 31 29 # 衝突しているかどうかを判定する 32 30 def collide? other, name, other_name 33 @collisions[name].collide?(other.collision s[other_name])31 @collisions[name].collide?(other.collision(other_name)) 34 32 end 35 33 36 34 # 衝突しているかどうかを判定し、衝突していれば衝突処理を実行する 37 35 def collide other, name, other_name 38 @collisions[name].collide(other.collision s[other_name])36 @collisions[name].collide(other.collision(other_name)) 39 37 end 40 38
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)