コード例 #1
0
ファイル: standard.py プロジェクト: nirvana-game/arxcode
    def at_cmdset_creation(self):
        self.add(overrides.CmdPose())
        # emit was originally an admin command. Replaced those with gemit
        self.add(overrides.CmdEmit())
        self.add(overrides.CmdArxTime())
        self.add(general.CmdOOCSay())
        self.add(general.CmdDirections())
        self.add(general.CmdKeyring())
        self.add(general.CmdGlance())
        # sorta IC commands, since information is interpretted by the
        # character and may not be strictly accurate.
        self.add(extended_room.CmdExtendedLook())
        self.add(roster.CmdHere())
        self.add(social.CmdHangouts())
        self.add(social.CmdWhere())
        self.add(social.CmdJournal())
        self.add(social.CmdMessenger())
        self.add(social.CmdRoomHistory())
        self.add(social.CmdRoomMood())
        self.add(social.CmdRandomScene())
        self.add(social.CmdRoomTitle())
        self.add(social.CmdTempDesc())
        self.add(social.CmdLanguages())
        self.add(maps.CmdMap())
        self.add(story_actions.CmdAction())
        self.add(plot_commands.CmdPlots())
        self.add(goal_commands.CmdGoals())
        self.add(combat.CmdHeal())

        # Magic!
        self.add(magic_commands.MagicCmdSet())
コード例 #2
0
    def at_cmdset_creation(self):
        """Populates the cmdset"""

        # Player-specific commands
        try:
            self.add(account.CmdOOCLook())
            from commands.base_commands import overrides

            self.add(overrides.CmdWho())
            self.add(account.CmdQuit())
            self.add(account.CmdColorTest())
            self.add(account.CmdOption())
            # Help command
            self.add(help.CmdHelp())
            # Comm commands
            self.add(comms.CmdAddCom())
            self.add(comms.CmdDelCom())
            self.add(comms.CmdAllCom())
            self.add(comms.CmdChannels())
            self.add(comms.CmdCWho())
            from commands.base_commands import general

            self.add(general.CmdPage())
            from commands.base_commands import roster

            self.add(roster.CmdRosterList())
            self.add(roster.CmdAdminRoster())
            self.add(roster.CmdSheet())
            self.add(roster.CmdRelationship())
            from commands.base_commands import guest

            self.add(guest.CmdGuestLook())
            self.add(guest.CmdGuestCharCreate())
            self.add(guest.CmdGuestPrompt())
            self.add(guest.CmdGuestAddInput())
            from world.dominion import general_dominion_commands as domcommands

            self.add(domcommands.CmdFamily())
            from commands.base_commands import bboards

            self.add(bboards.CmdBBReadOrPost())
            self.add(bboards.CmdBBSub())
            from commands.base_commands import staff_commands

            self.add(staff_commands.CmdAskStaff())
            self.add(staff_commands.CmdListStaff())
            from commands.base_commands import social

            self.add(social.CmdWhere())
            self.add(social.CmdFinger())
            self.add(social.CmdCensus())
            from web.helpdesk import lore_commands

            self.add(lore_commands.CmdLoreSearch())
        except Exception as err:
            exc_type, exc_value, exc_traceback = sys.exc_info()
            traceback.print_tb(exc_traceback, limit=5, file=sys.stdout)
            print("Error encountered in loading Guest commandset: %s" % err)