Module: Gamefic::World::Players

Includes:
Entities
Included in:
Gamefic::World
Defined in:
lib/gamefic/world/players.rb

Instance Method Summary collapse

Methods included from Entities

#cast, #destroy, #entities, #make, #pick

Instance Method Details

#get_player_characterGamefic::Actor

Get the character that the player will control on introduction.

Returns:



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

#playersArray<Gamefic::Actor>

An array of entities that are currently connected to users.

Returns:



9
10
11
# File 'lib/gamefic/world/players.rb', line 9

def players
  @players ||= []
end