Class: CARPS::DM::NewGameInterface

Inherits:
Interface show all
Defined in:
lib/carps/service/dm/new_game.rb

Overview

Interface for creating new games

Instance Method Summary collapse

Methods inherited from RolePlayInterface

#d, #dec, #int

Methods inherited from Interface

#run

Constructor Details

#initialize(cont, manager, config, mailer) ⇒ NewGameInterface

Create a new NewGameInterface from a continuation



30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/carps/service/dm/new_game.rb', line 30

def initialize cont, manager, config, mailer
   super()
   @manager = manager
   @game_config = config
   @continuation = cont
   @mailer = mailer
   add_command :go, "Start the game."
   add_command :describe, "Describe the game."
   add_command :name, "Give the game a name.", "NAME"
   add_command :mod, "Choose the mod.\n#{options load_mods.keys}", "MOD"
   add_command :campaign, "Choose the campaign.", "CAMPAIGN"
end