All pastes #281772 Raw Edit

Anonymous

public cpp v1 · immutable
#281772 ·published 2006-12-17 01:19 UTC
rendered paste body
/*  * Copyright (C) 2005,2006 MaNGOS <http://www.mangosproject.org/> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */#include "Common.h"#include "WorldPacket.h"#include "WorldSession.h"#include "Opcodes.h"#include "Chat.h"class Battleground;class WarsongGulch{	//~WarsongGulch();	void SendPacketToTeam(uint32 TeamID, WorldPacket *packet);	public:	WarsongGulch(uint8 Id);	void Update();	void Join(Player* p);		uint8 GetbgId() { return bgId; }		uint8 GetHordePlayers() { return hordePlayers; }		uint8 GetAlliancePlayers() { return alliancePlayers; }		uint8 getHordeScore() { return hordeScore; }		uint8 getAllianceScore() { return allianceScore; }		uint32 getFlagCarrierAlliance() { return flagCarrierAlliance; }		uint32 getFlagCarrierHorde() { return flagCarrierHorde; }		std::list<Player*> m_Players;	protected:		uint8 bgId;		uint8 hordePlayers;		uint8 alliancePlayers;		uint8 allianceScore;		uint8 hordeScore;		uint32 flagCarrierHorde;		uint32 flagCarrierAlliance;		float m_TeamStartLocX[2];        float m_TeamStartLocY[2];        float m_TeamStartLocZ[2];        float m_TeamStartLocO[2];		uint32 playerScore[20]; // 10 - Alliance 11 - 20 Horde};