add object to move

This commit is contained in:
Gwenhael Le Moine 2011-05-21 15:11:41 +07:00
parent 3ec2e98afa
commit 6e40724dd7

View file

@ -285,7 +285,7 @@ class Star
load_level
end
def move( direction )
def move( direction, objectToMove )
d = { :h => 0, :v => 0 }
d[ :h ] = -1 if direction == :left
d[ :h ] = 1 if direction == :right
@ -389,7 +389,7 @@ class TestBla < Test::Unit::TestCase
moves.each do
|direction|
st.move( direction )
st.move( direction, :ball )
# puts st.is_it_over? ? "YES \o/" : "not yet"
end