Sync with L2JServer Feb 7th 2015.
This commit is contained in:
84
trunk/java/com/l2jserver/gameserver/enums/ChatType.java
Normal file
84
trunk/java/com/l2jserver/gameserver/enums/ChatType.java
Normal file
@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2015 L2J Server
|
||||
*
|
||||
* This file is part of L2J Server.
|
||||
*
|
||||
* L2J Server 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 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* L2J Server 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jserver.gameserver.enums;
|
||||
|
||||
/**
|
||||
* @author St3eT
|
||||
*/
|
||||
public enum ChatType
|
||||
{
|
||||
GENERAL(0),
|
||||
SHOUT(1),
|
||||
TELL(2),
|
||||
PARTY(3),
|
||||
CLAN(4),
|
||||
GM(5),
|
||||
PETITION_PLAYER(6),
|
||||
PETITION_GM(7),
|
||||
TRADE(8),
|
||||
ALLIANCE(9),
|
||||
ANNOUNCEMENT(10),
|
||||
BOAT(11),
|
||||
FRIEND(12),
|
||||
MSNCHAT(13),
|
||||
PARTYMATCH_ROOM(14),
|
||||
PARTYROOM_COMMANDER(15),
|
||||
PARTYROOM_ALL(16),
|
||||
HERO_VOICE(17),
|
||||
CRITICAL_ANNOUNCE(18),
|
||||
SCREEN_ANNOUNCE(19),
|
||||
BATTLEFIELD(20),
|
||||
MPCC_ROOM(21),
|
||||
NPC_GENERAL(22),
|
||||
NPC_SHOUT(23),
|
||||
NPC_TELL(24),
|
||||
GLOBAL(25);
|
||||
|
||||
private final int _clientId;
|
||||
|
||||
private ChatType(int clientId)
|
||||
{
|
||||
_clientId = clientId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the client id.
|
||||
*/
|
||||
public int getClientId()
|
||||
{
|
||||
return _clientId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the {@code ChatType} by its clientId
|
||||
* @param clientId the clientId
|
||||
* @return the {@code ChatType} if its found, {@code null} otherwise.
|
||||
*/
|
||||
public static ChatType findByClientId(int clientId)
|
||||
{
|
||||
for (ChatType ChatType : values())
|
||||
{
|
||||
if (ChatType.getClientId() == clientId)
|
||||
{
|
||||
return ChatType;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2015 L2J Server
|
||||
*
|
||||
* This file is part of L2J Server.
|
||||
*
|
||||
* L2J Server 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 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* L2J Server 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jserver.gameserver.enums;
|
||||
|
||||
/**
|
||||
* @author malyelfik
|
||||
*/
|
||||
public enum SubclassInfoType
|
||||
{
|
||||
NO_CHANGES,
|
||||
NEW_SLOT_USED,
|
||||
CLASS_CHANGED
|
||||
}
|
Reference in New Issue
Block a user