root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/serverpackets/SM_ABNORMAL_STATE.java

14281515
17
package com.aionemu.gameserver.network.aion.serverpackets;
17
package com.aionemu.gameserver.network.aion.serverpackets;
18
18
19
import java.nio.ByteBuffer;
19
import java.nio.ByteBuffer;
20
import java.util.Collection;
20
21
21
import com.aionemu.gameserver.network.aion.AionConnection;
22
import com.aionemu.gameserver.network.aion.AionConnection;
22
import com.aionemu.gameserver.network.aion.AionServerPacket;
23
import com.aionemu.gameserver.network.aion.AionServerPacket;
...
...
28
 */
29
 */
29
public class SM_ABNORMAL_STATE extends AionServerPacket
30
public class SM_ABNORMAL_STATE extends AionServerPacket
30
{
31
{
31
	private Effect[] effects;
32
	private Collection<Effect> effects;
32
	private int abnormals;
33
	private int abnormals;
33
	
34
	
34
	public SM_ABNORMAL_STATE(Effect[] effects, int abnormals)
35
	public SM_ABNORMAL_STATE(Collection<Effect> effects, int abnormals)
35
	{
36
	{
36
		this.effects = effects;
37
		this.effects = effects;
37
		this.abnormals = abnormals;
38
		this.abnormals = abnormals;
...
...
41
	protected void writeImpl(AionConnection con, ByteBuffer buf)
42
	protected void writeImpl(AionConnection con, ByteBuffer buf)
42
	{
43
	{
43
		writeD(buf, abnormals);
44
		writeD(buf, abnormals);
44
		writeH(buf, effects.length); 
45
		writeH(buf, effects.size()); 
45
		
46
		
46
		for(Effect effect : effects)
47
		for(Effect effect : effects)
47
		{
48
		{