mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
#ifndef EQEMU_LUA_GROUP_H
|
|
#define EQEMU_LUA_GROUP_H
|
|
#ifdef LUA_EQEMU
|
|
|
|
#include "lua_ptr.h"
|
|
|
|
class Group;
|
|
class Lua_Mob;
|
|
class Lua_Client;
|
|
|
|
namespace luabind {
|
|
struct scope;
|
|
}
|
|
|
|
luabind::scope lua_register_group();
|
|
|
|
class Lua_Group : public Lua_Ptr<void>
|
|
{
|
|
typedef Group NativeType;
|
|
public:
|
|
Lua_Group() { }
|
|
Lua_Group(Group *d) : Lua_Ptr(d) { }
|
|
virtual ~Lua_Group() { }
|
|
|
|
operator Group*() {
|
|
void *d = GetLuaPtrData();
|
|
if(d) {
|
|
return reinterpret_cast<Group*>(d);
|
|
}
|
|
|
|
return nullptr;
|
|
}
|
|
|
|
void DisbandGroup();
|
|
bool IsGroupMember(Lua_Mob mob);
|
|
void CastGroupSpell(Lua_Mob caster, int spell_id);
|
|
void SplitExp(uint32 exp, Lua_Mob other);
|
|
void GroupMessage(Lua_Mob sender, int language, const char *message);
|
|
uint32 GetTotalGroupDamage(Lua_Mob other);
|
|
void SplitMoney(uint32 copper, uint32 silver, uint32 gold, uint32 platinum);
|
|
void SplitMoney(uint32 copper, uint32 silver, uint32 gold, uint32 platinum, Lua_Client splitter);
|
|
void SetLeader(Lua_Mob leader);
|
|
Lua_Mob GetLeader();
|
|
const char *GetLeaderName();
|
|
bool IsLeader(Lua_Mob leader);
|
|
int GroupCount();
|
|
int GetHighestLevel();
|
|
void TeleportGroup(Lua_Mob sender, uint32 zone_id, uint32 instance_id, float x, float y, float z, float h);
|
|
int GetID();
|
|
Lua_Mob GetMember(int index);
|
|
};
|
|
|
|
#endif
|
|
#endif
|