class MapEntity::EntityBuilder

Entity builder class

Attributes

entity[R]

Public Class Methods

new() click to toggle source
# File lib/map/entity.rb, line 35
def initialize()
  @entity = Entity.new()
end

Public Instance Methods

add_nametag(nametag) click to toggle source
# File lib/map/entity.rb, line 51
def add_nametag(nametag)
  @entity.nametag = nametag
end
add_type(type) click to toggle source
# File lib/map/entity.rb, line 47
def add_type(type)
  @entity.type = type
end
build_entity(type, nametag) click to toggle source

Builds the entity of a dungeon

# File lib/map/entity.rb, line 42
def build_entity(type, nametag)
  add_type(type)
  add_nametag(nametag)
end