class Baku::TagSystem

Attributes

tag[R]

Public Class Methods

new(tag, game_loop_step) click to toggle source
# File lib/baku/tag_system.rb, line 7
def initialize(tag, game_loop_step)
  @tag = tag
  @game_loop_step = game_loop_step
end

Public Instance Methods

process_entities(entities) click to toggle source
# File lib/baku/tag_system.rb, line 12
def process_entities(entities)
  entities.each do |entity|
    process_entity(entity)
  end
end

Protected Instance Methods

retrieve_entities() click to toggle source
# File lib/baku/tag_system.rb, line 20
def retrieve_entities
  @world.entity_manager.get_entities_by_tag(@tag)
end