/*
 * 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, 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.
 *
 * http://www.gnu.org/copyleft/gpl.html
 */
package com.festina.loginserver.serverpackets;

/**
 * This class ...
 * 
 * @version $Revision: 1.2.4.1 $ $Date: 2005/03/27 15:30:11 $
 */
public class PlayFail extends ServerBasePacket
{
	// format	c
	//
	// 07 
	// 34 0b 00 00 
	// 14 16 0d 00
	// align+chksum  
	// 00 00 00 00 
	// 00 00 67 07 
	// 25 1d 6a 6b 66 6b 64                          
  
/*		
		(byte) 0x07,
		(byte) 0x34,(byte) 0x0b,(byte) 0x00,(byte) 0x00,	
		(byte) 0x14,(byte) 0x16,(byte) 0x0d,(byte) 0x00,
		(byte) 0x00,(byte) 0x00,(byte) 0x00,(byte) 0x00,
		(byte) 0x00,(byte) 0x00,(byte) 0x00,(byte) 0x00,
		(byte) 0x00,(byte) 0x00,(byte) 0x00,(byte) 0x00,
		(byte) 0x00,(byte) 0x00,(byte) 0x00	
	};
*/
	public static int REASON_TOO_MANY_PLAYERS = 0x0f; // too many players on server
	public static int REASON_SYSTEM_ERROR = 0x01; 					// system error
	public static int REASON_USER_OR_PASS_WRONG = 0x02;
	public static int REASON3 = 0x03;
	public static int REASON4 = 0x04;
	
	public PlayFail(int reason) 
	{
		writeC(0x06);
		writeC(reason);
	}
	
	public byte[] getContent()
	{
		return getBytes();
	}
}
