narc0tiq / tinymudserver

Originally an example MUD game written in C++. Now being played with.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reimplement command handling

narc0tiq opened this issue · comments

Highlights:

  • commands should start with a /
  • anything that doesn't start with a / is assumed to be a /say
  • commands should be their own class with a short help and long help
  • /help should be dynamic and only show commands that are allowed to the current player
    • Which implies the command class should include a function to check for permissions

I think I'm going to allow commands without /, but implement all the basic commands with the / in them. Maximum freedom for minimum work.

Almost done as of 7231e34 -- just need to make unknown commands just "say" stuff.