Class: CARPS::DM::Interface

Inherits:
RolePlayInterface show all
Defined in:
lib/carps/mod/dm/interface.rb

Overview

A basic user interface for the dm

Subclass this interface to provide commands

Direct Known Subclasses

NewGameInterface

Instance Method Summary collapse

Methods inherited from RolePlayInterface

#d, #dec, #int

Methods inherited from Interface

#run

Constructor Details

#initialize(mod) ⇒ Interface

Returns a new instance of Interface.



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/carps/mod/dm/interface.rb', line 31

def initialize mod
   super()
   @mod = mod
   add_command :mail, "Check for new emails."
   add_command :save, "Saves the state of the world."
   add_command :done, "Send all reports and start the next turn."
   add_command :invite, "Invite a new player", "EMAIL"
   add_command :describe, "Describe a player or an NPC.", "PLAYER/NPC"
   add_command :players, "Describe all players."
   add_command :npcs, "Describe all NPCs."
   add_command :edit, "Edit a character sheet belonging to a player or NPC.", "PLAYER/NPC"
   add_command :warp, "Put all player in this room.", "ROOM"
   add_command :room, "Put one player in this room.", "PLAYER", "ROOM"
   add_command :spawn, "Create a new npc", "TYPE", "NAME"
   add_command :decree, "Create a report for all players to see."
   add_command :tell, "Tell a player something.", "PLAYER"
   add_command :census, "Ask a question of every player."
   add_command :ask, "Ask a question of one player.", "PLAYER"
   add_command :survey, "Preview the reports and questions to be sent to every player."
   add_command :inspect, "Preview the report and questions to be sent to one player.", "PLAYER"
   add_command :nuke, "Clear all reports and questions for all players."
   add_command :silence, "Clear all reports for all players."
   add_command :futile, "Clear all questions for all players."
   add_command :remit, "Clear the report for one player", "PLAYER"
   add_command :supress, "Clear the questions for one player", "PLAYER"
end