Manages the chat commands.  
 More...
#include <CommandManager.h>
Manages the chat commands. 
Initializes the command-maps. 
- Parameters
- 
  
    | uiManager | Instance of the UI manager. |  | methodsPtr | Instance of the Methods. |  
 
 
 
      
        
          | void CommandManager::DisplayCommandList | ( | Player | player, | 
        
          |  |  | bool | admin = true | 
        
          |  | ) |  |  | 
      
 
Displays the command list to the user. 
- Parameters
- 
  
    | player | List requester. |  | admin | Show admin commands or player commands? |  
 
 
 
      
        
          | void CommandManager::HandleCommand | ( | Player | player, | 
        
          |  |  | std::string | text | 
        
          |  | ) |  |  | 
      
 
Handles chat commands (from PlayerChat callback). 
- Parameters
- 
  
    | player | Author of the command request. |  | text | Chat message. |  
 
 
 
      
        
          | int CommandManager::RegisterAdminCommands | ( | std::string | plugin, | 
        
          |  |  | std::map< std::string, ChatCommand > | methods | 
        
          |  | ) |  |  | 
      
 
Registers the admin chat commands (from the plugins). 
- Parameters
- 
  
    | plugin | Name of the plugin the commands belong to. |  | methods | Plugin methods with admin command name. |  
 
 
 
      
        
          | void CommandManager::RegisterCommand | ( | ChatCommand | command | ) |  | 
      
 
Registers a chat command. 
- Parameters
- 
  
  
 
 
      
        
          | int CommandManager::RegisterCommands | ( | std::string | plugin, | 
        
          |  |  | std::map< std::string, ChatCommand > | methods | 
        
          |  | ) |  |  | 
      
 
Registers the chat commands (from the plugins). 
- Parameters
- 
  
    | plugin | Name of the plugin the commands belong to. |  | methods | Plugin methods with command name. |  
 
 
 
The documentation for this class was generated from the following files:
- /home/travis/build/TheMaximum/mania-pp/src/Commands/CommandManager.h
- /home/travis/build/TheMaximum/mania-pp/src/Commands/CommandManager.cpp
- /home/travis/build/TheMaximum/mania-pp/src/Commands/CommandsUI.cpp