Module: Gamefic::World::Players
Instance Method Summary collapse
-
#get_player_character ⇒ Gamefic::Actor
Get the character that the player will control on introduction.
-
#players ⇒ Array<Gamefic::Actor>
An array of entities that are currently connected to users.
Methods included from Entities
#cast, #destroy, #entities, #make, #pick
Instance Method Details
#get_player_character ⇒ Gamefic::Actor
Get the character that the player will control on introduction.
16 17 18 |
# File 'lib/gamefic/world/players.rb', line 16 def get_player_character cast player_class, name: 'yourself', synonyms: 'self myself you me', proper_named: true end |
#players ⇒ Array<Gamefic::Actor>
An array of entities that are currently connected to users.
9 10 11 |
# File 'lib/gamefic/world/players.rb', line 9 def players @players ||= [] end |