Class: CARPS::GameServer
- Inherits:
-
Object
- Object
- CARPS::GameServer
- Defined in:
- lib/carps/service/game.rb
Overview
Server game
Instance Method Summary collapse
-
#initialize(mod, campaign, desc, session, conf, dm) ⇒ GameServer
constructor
The first parameter is email account information.
-
#resume(mailer) ⇒ Object
Resume this game.
-
#start(mailer) ⇒ Object
Invite players to this game and begin.
Constructor Details
#initialize(mod, campaign, desc, session, conf, dm) ⇒ GameServer
The first parameter is email account information. The second is the mod. The third is the description. The fourth is the session key The fifth is the configuration file The sixth is the DM’s address
39 40 41 42 43 44 45 46 |
# File 'lib/carps/service/game.rb', line 39 def initialize mod, campaign, desc, session, conf, dm @campaign = campaign @mod = mod @about = desc @session = session @conf = conf @dm = dm end |
Instance Method Details
#resume(mailer) ⇒ Object
Resume this game
FIXME: just use ‘play’
58 59 60 |
# File 'lib/carps/service/game.rb', line 58 def resume mailer play mailer end |
#start(mailer) ⇒ Object
Invite players to this game and begin
FIXME: Just use ‘play’
51 52 53 |
# File 'lib/carps/service/game.rb', line 51 def start mailer play mailer end |