Skip to content

Commit

Permalink
Can't call protected methods #fail
Browse files Browse the repository at this point in the history
  • Loading branch information
codeincontext committed Feb 12, 2011
1 parent 332fcba commit 9d411cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions rb/cue.rb
Expand Up @@ -2,6 +2,9 @@
class Cue < Ball
attr_accessor :x, :y, :vx, :vy
def initialize
reset
end
def reset
self.x = 300
self.y = 300
self.vx = 0
Expand Down
2 changes: 1 addition & 1 deletion rb/game.rb
Expand Up @@ -44,7 +44,7 @@ def parseMove
end
end
pits.each do |pit|
cue.initialize if pit.munch cue
cue.reset if pit.munch cue
end
end while balls_moving?
end
Expand Down

0 comments on commit 9d411cc

Please sign in to comment.