Show
Ignore:
Timestamp:
12/25/08 23:39:24 (4 years ago)
Author:
isaisstillalive
Message:

アクセサをAnimatableに準拠

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/starframe/lib/starframe/sprite/collidable.rb

    r27419 r27420  
    1515    #   end 
    1616    module Collidable 
    17       attr_accessor :collisions 
    18        
    1917      def self.included sprite #:nodoc: 
    2018        sprite.extend ClassMethods 
     
    3129      # 衝突しているかどうかを判定する 
    3230      def collide? other, name, other_name 
    33         @collisions[name].collide?(other.collisions[other_name]) 
     31        @collisions[name].collide?(other.collision(other_name)) 
    3432      end 
    3533       
    3634      # 衝突しているかどうかを判定し、衝突していれば衝突処理を実行する 
    3735      def collide other, name, other_name 
    38         @collisions[name].collide(other.collisions[other_name]) 
     36        @collisions[name].collide(other.collision(other_name)) 
    3937      end 
    4038