Class: Gingham::MoveFrame

Inherits:
Object
  • Object
show all
Defined in:
lib/gingham/move_frame.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index, actors) ⇒ MoveFrame

Returns a new instance of MoveFrame.



5
6
7
8
9
# File 'lib/gingham/move_frame.rb', line 5

def initialize(index, actors)
  @index = index
  # deep_copy actors

  @actors = Marshal.load Marshal.dump(actors)
end

Instance Attribute Details

#actorsObject

Returns the value of attribute actors.



3
4
5
# File 'lib/gingham/move_frame.rb', line 3

def actors
  @actors
end

#indexObject

Returns the value of attribute index.



3
4
5
# File 'lib/gingham/move_frame.rb', line 3

def index
  @index
end