Steamline objectPosition init
check for resetting on the same position with different class, which should not happen Ie it’s ok for an object to push another object up, but not for an instruction to land on code
This commit is contained in:
@ -3,7 +3,7 @@ module Risc
|
||||
class ObjectPosition
|
||||
attr_reader :at , :object
|
||||
|
||||
def initialize( at , object)
|
||||
def initialize( object, at)
|
||||
@at = at
|
||||
@object = object
|
||||
raise "not int #{self}-#{at}" unless @at.is_a?(Integer)
|
||||
|
Reference in New Issue
Block a user