Class: CARPS::DM::Interface
- Inherits:
-
RolePlayInterface
- Object
- Interface
- QuitInterface
- RolePlayInterface
- CARPS::DM::Interface
- 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
Instance Method Summary collapse
-
#initialize(mod) ⇒ Interface
constructor
A new instance of Interface.
Methods inherited from RolePlayInterface
Methods inherited from Interface
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 |