Created
October 18, 2013 11:18
-
-
Save mort/7040118 to your computer and use it in GitHub Desktop.
Molecules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Siblings | |
module Stuff | |
class Molecule | |
include Observable | |
include Traits::Moves | |
alias_method :place_in, :move_to | |
attr_reader :uuid, :element, :placement | |
PLACEMENTS = [:world, :sibling, :player] | |
def initialize(element) | |
@material = element | |
@positions = [] | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment