1 /***************************************************************************
2 * Copyright (C) 2008 by Sverre Rabbelier *
3 * sverre@rabbelier.nl *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 3 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
29 class CharacterManager
;
37 class GrantGroupManager
;
38 class MCharacterManager
;
39 class PermissionManager
;
46 * This singleton the one instance of all other managers.
48 * It is usefull to contain all Singletons in one place since now all singeltons may be freed with a single call.
49 * As such, this class is really a 'manager manager'.
51 class Managers
: public Singleton
<mud::Managers
>
54 AccountManager
* Account
; /**< The manager for Account objects. */
55 AreaManager
* Area
; /**< The manager for Area objects. */
56 ChannelManager
* Channel
; /**< The manager for Channel objects. */
57 CharacterManager
* Character
; /**< The manager for Character objects. */
58 ChunkManager
* Chunk
; /**< The manager for Chunk objects. */
59 ClusterManager
* Cluster
; /**< The manager for Cluster objects. */
60 ColourManager
* Colour
; /**< The manager for Colour objects. */
61 CommandManager
* Command
; /**< The manager for Command objects. */
62 DetailManager
* Detail
; /**< The manager for Detail objects. */
63 EchoManager
* Echo
; /**< The manager for Echo objects. */
64 ExitManager
* Exit
; /**< The manager for Exit objects. */
65 GrantGroupManager
* GrantGroup
; /**< The manager for GrantGroup objects. */
66 MCharacterManager
* MCharacter
; /**< The manager for MCharacter objects. */
67 PermissionManager
* Permission
; /**< The manager for Permission objects. */
68 RaceManager
* Race
; /**< The manager for Race objects. */
69 RoomManager
* Room
; /**< The manager for Room objects. */
70 SectorManager
* Sector
; /**< The manager for Sector objects. */
71 TraceManager
* Trace
; /**< The manager for Trace objects. */
74 /** This is a singleton class, use <code>Get</code> to get the instance. */
77 /** Hide the copy constructor. */
78 Managers(const Managers
& rhs
);
80 /** Hide the assignment constructor. */
81 Managers
operator=(const Managers
& rhs
);
83 /** This is a singleton class, use <code>Free</code> to free the instance. */
86 friend class Singleton
<mud::Managers
>;