TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
LFGScripts.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation; either version 2 of the License, or (at your
7  * option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 /*
19  * Interaction between core and LFGScripts
20  */
21 
22 #include "Common.h"
23 #include "SharedDefines.h"
24 #include "ScriptMgr.h"
25 
26 class Player;
27 class Group;
28 
29 namespace lfg
30 {
31 
33 {
34  public:
36 
37  // Player Hooks
38  void OnLogout(Player* player) override;
39  void OnLogin(Player* player, bool loginFirst) override;
40  void OnMapChanged(Player* player) override;
41 };
42 
44 {
45  public:
47 
48  // Group Hooks
49  void OnAddMember(Group* group, ObjectGuid guid) override;
50  void OnRemoveMember(Group* group, ObjectGuid guid, RemoveMethod method, ObjectGuid kicker, char const* reason) override;
51  void OnDisband(Group* group) override;
52  void OnChangeLeader(Group* group, ObjectGuid newLeaderGuid, ObjectGuid oldLeaderGuid) override;
53  void OnInviteMember(Group* group, ObjectGuid guid) override;
54 };
55 
56 } // namespace lfg
Definition: LFGScripts.h:32
RemoveMethod
Definition: SharedDefines.h:4685
Definition: LFG.cpp:22
Definition: LFGScripts.h:43
Definition: ScriptMgr.h:812
Definition: ScriptMgr.h:647
#define TC_GAME_API
Definition: Define.h:134
Definition: ObjectGuid.h:189
Definition: Group.h:191