Class: CARPS::GameServer

Inherits:
Object
  • Object
show all
Defined in:
lib/carps/service/game.rb

Overview

Server game

Instance Method Summary collapse

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