Class: Conreality::Game
- Inherits:
-
Object
- Object
- Conreality::Game
- Defined in:
- lib/conreality/game.rb
Overview
The game database.
Theaters collapse
- #each_theater(&block) ⇒ Object
-
#find_theater(uuid) ⇒ Theater
Returns the theater identified by the given UUID.
Objects collapse
- #each_object(&block) ⇒ Object
-
#find_object(uuid) ⇒ Object
Returns the object identified by the given UUID.
Events collapse
-
#find_event(id) ⇒ Event
The event.
Messaging collapse
-
#find_message(id) ⇒ Message
The message.
Instance Method Summary collapse
-
#initialize(session) ⇒ Game
constructor
A new instance of Game.
-
#inspect ⇒ String
Returns a developer-friendly representation of this action.
Constructor Details
#initialize(session) ⇒ Game
Returns a new instance of Game.
9 10 11 |
# File 'lib/conreality/game.rb', line 9 def initialize(session) @session = session end |
Instance Method Details
#each_object(&block) ⇒ Object
53 54 55 |
# File 'lib/conreality/game.rb', line 53 def each_object(&block) # TODO end |
#each_theater(&block) ⇒ Object
34 35 36 |
# File 'lib/conreality/game.rb', line 34 def each_theater(&block) # TODO end |
#find_event(id) ⇒ Event
TODO:
Returns the event.
64 65 66 |
# File 'lib/conreality/game.rb', line 64 def find_event(id) # TODO end |
#find_message(id) ⇒ Message
TODO:
Returns the message.
75 76 77 |
# File 'lib/conreality/game.rb', line 75 def (id) # TODO end |
#find_object(uuid) ⇒ Object
Returns the object identified by the given UUID.
47 48 49 |
# File 'lib/conreality/game.rb', line 47 def find_object(uuid) Conreality::Object.new(@session, uuid) end |
#find_theater(uuid) ⇒ Theater
Returns the theater identified by the given UUID.
28 29 30 |
# File 'lib/conreality/game.rb', line 28 def find_theater(uuid) Conreality::Theater.new(@session, uuid) end |
#inspect ⇒ String
Returns a developer-friendly representation of this action.
17 18 19 |
# File 'lib/conreality/game.rb', line 17 def inspect sprintf("#<%s:%#0x>", self.class.name, self.__id__) end |