Class Limelight::CastingDirector
In: lib/limelight/casting_director.rb
Parent: Object

The CastingDirector is responsible for finding Players for Props within a Production. Each Producer has an instance of a CastingDirector

Users of Limelight need not be concerned with this class.

Methods

fill_cast   new  

Public Class methods

[Source]

    # File lib/limelight/casting_director.rb, line 15
15:     def initialize(loader)
16:       @loader = loader
17:       @known_players = {}
18:     end

Public Instance methods

[Source]

    # File lib/limelight/casting_director.rb, line 20
20:     def fill_cast(prop)
21:       raise LimelightException.new("Cannot cast a Prop without a Scene.") if prop.scene.nil?
22:       cast_default_player(prop)
23:       cast_additional_players(prop)
24:     end

[Validate]