local Lang = require("common.Lang")
local Msg = require("core.Msg")
local ObjHuman = require("core.ObjHuman")


UP				= 0x00000001							--全服公告
CENTER			= 0x00000002							--突出高亮信息
DOWN			= 0x00000004							--浮动提示
MOUSE			= 0x00000008							--鼠标

function sendErr(human, err,displayTime)
	local mm = Msg.gc.GC_BROADCAST
	mm.type = MOUSE
	mm.msg = err
	mm.displayTime = displayTime or 0
	Msg.send(mm, human.fd)
end

function sendDown(human, err,displayTime)
	local mm = Msg.gc.GC_BROADCAST
	mm.type = DOWN
	mm.msg = err
	mm.displayTime = displayTime or 0
	Msg.send(mm, human.fd)
end

function sendCenter(human, err,displayTime)
	local mm = Msg.gc.GC_BROADCAST
	mm.type = CENTER
	mm.msg = err
	mm.displayTime = displayTime or 0
	Msg.send(mm, human.fd)
end

function sendUp(human, err,displayTime)
	local mm = Msg.gc.GC_BROADCAST
	mm.type = UP
	mm.msg = err
	mm.displayTime = displayTime or 0
	Msg.send(mm, human.fd)
end


function sendBroadcast2World(type, content,displayTime)
	local mm = Msg.gc.GC_BROADCAST
	mm.type = type
	mm.msg = content
	mm.displayTime = displayTime or 0
	Msg.sendWorld(mm)
end