Module: Gosu

Defined in:
lib/fidgit/gosu_ext/color.rb,
lib/fidgit/gosu_ext/gosu_module.rb

Defined Under Namespace

Classes: Color

Class Method Summary collapse

Class Method Details

.entity(name) ⇒ Object


19
20
21
# File 'lib/fidgit/gosu_ext/gosu_module.rb', line 19

def entity(name)
  @entities[name.to_sym]
end

.register_entity(name, image) ⇒ Object


11
12
13
14
15
16
# File 'lib/fidgit/gosu_ext/gosu_module.rb', line 11

def register_entity(name, image)
  name = name.to_sym
  register_entity_fidgit(name, image)
  @entities[name] = image
  nil
end

.register_entity_fidgitObject


3
# File 'lib/fidgit/gosu_ext/gosu_module.rb', line 3

alias_method :register_entity_fidgit, :register_entity