summaryrefslogtreecommitdiffstats
path: root/src/Group.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-02-05 19:58:02 +0100
committerMattes D <github@xoft.cz>2014-02-05 19:58:02 +0100
commit694fa5d54188012a4fa727bbbe82ff92ca289d79 (patch)
treefcd2ccb8b83f34ff032fa35171e494e7bfd65b85 /src/Group.h
parentMerge pull request #647 from worktycho/runMCServer (diff)
parentForgot extra lines. (diff)
downloadcuberite-694fa5d54188012a4fa727bbbe82ff92ca289d79.tar
cuberite-694fa5d54188012a4fa727bbbe82ff92ca289d79.tar.gz
cuberite-694fa5d54188012a4fa727bbbe82ff92ca289d79.tar.bz2
cuberite-694fa5d54188012a4fa727bbbe82ff92ca289d79.tar.lz
cuberite-694fa5d54188012a4fa727bbbe82ff92ca289d79.tar.xz
cuberite-694fa5d54188012a4fa727bbbe82ff92ca289d79.tar.zst
cuberite-694fa5d54188012a4fa727bbbe82ff92ca289d79.zip
Diffstat (limited to 'src/Group.h')
-rw-r--r--src/Group.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/Group.h b/src/Group.h
index 65ee1a60a..3299aecbc 100644
--- a/src/Group.h
+++ b/src/Group.h
@@ -11,19 +11,21 @@ public: // tolua_export
cGroup() {}
~cGroup() {}
- void SetName( std::string a_Name ) { m_Name = a_Name; } // tolua_export
- const std::string & GetName() const { return m_Name; } // tolua_export
- void SetColor( std::string a_Color ) { m_Color = a_Color; } // tolua_export
- void AddCommand( std::string a_Command ); // tolua_export
- void AddPermission( std::string a_Permission ); // tolua_export
- void InheritFrom( cGroup* a_Group ); // tolua_export
+ void SetName( AString a_Name ) { m_Name = a_Name; } // tolua_export
+ const AString & GetName() const { return m_Name; } // tolua_export
+ void SetColor( AString a_Color ) { m_Color = a_Color; } // tolua_export
+ void AddCommand( AString a_Command ); // tolua_export
+ void AddPermission( AString a_Permission ); // tolua_export
+ void InheritFrom( cGroup* a_Group ); // tolua_export
- bool HasCommand( std::string a_Command ); // tolua_export
+ bool HasCommand( AString a_Command ); // tolua_export
- typedef std::map< std::string, bool > PermissionMap;
+ typedef std::map< AString, bool > PermissionMap;
const PermissionMap & GetPermissions() const { return m_Permissions; }
- typedef std::map< std::string, bool > CommandMap;
+ void ClearPermission(void);
+
+ typedef std::map< AString, bool > CommandMap;
const CommandMap & GetCommands() const { return m_Commands; }
const AString & GetColor() const { return m_Color; } // tolua_export
@@ -31,8 +33,8 @@ public: // tolua_export
typedef std::list< cGroup* > GroupList;
const GroupList & GetInherits() const { return m_Inherits; }
private:
- std::string m_Name;
- std::string m_Color;
+ AString m_Name;
+ AString m_Color;
PermissionMap m_Permissions;
CommandMap m_Commands;