(svn r21427) -Add: helper function to determine whether a command may be executed

This commit is contained in:
rubidium
2010-12-07 21:08:35 +00:00
parent 7bed9deb4f
commit 78054d7ad5
2 changed files with 27 additions and 0 deletions

View File

@@ -75,6 +75,8 @@ const char *GetCommandName(uint32 cmd);
*/
Money GetAvailableMoneyForCommand();
bool IsCommandAllowedWhilePaused(uint32 cmd);
/**
* Extracts the DC flags needed for DoCommand from the flags returned by GetCommandFlags
* @param cmd_flags Flags from GetCommandFlags