2
0

ExCubeGameEnd.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * This program is free software: you can redistribute it and/or modify it under
  3. * the terms of the GNU General Public License as published by the Free Software
  4. * Foundation, either version 3 of the License, or (at your option) any later
  5. * version.
  6. *
  7. * This program is distributed in the hope that it will be useful, but WITHOUT
  8. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  9. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  10. * details.
  11. *
  12. * You should have received a copy of the GNU General Public License along with
  13. * this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. package com.l2jserver.gameserver.network.serverpackets;
  16. /**
  17. * Format: (chd) ddd
  18. * d: Winner Team
  19. *
  20. * @author mrTJO
  21. */
  22. public class ExCubeGameEnd extends L2GameServerPacket
  23. {
  24. private static final String _S__FE_98_01_EXCUBEGAMEEND = "[S] FE:98:01 ExCubeGameEnd";
  25. boolean _isRedTeamWin;
  26. /**
  27. * Show Minigame Results
  28. *
  29. * @param isRedTeamWin: Is Red Team Winner?
  30. */
  31. public ExCubeGameEnd(boolean isRedTeamWin)
  32. {
  33. _isRedTeamWin = isRedTeamWin;
  34. }
  35. /* (non-Javadoc)
  36. * @see com.l2jserver.gameserver.serverpackets.ServerBasePacket#writeImpl()
  37. */
  38. @Override
  39. protected void writeImpl()
  40. {
  41. writeC(0xfe);
  42. writeH(0x98);
  43. writeD(0x01);
  44. writeD(_isRedTeamWin ? 0x01 : 0x00);
  45. }
  46. /* (non-Javadoc)
  47. * @see com.l2jserver.gameserver.BasePacket#getType()
  48. */
  49. @Override
  50. public String getType()
  51. {
  52. return _S__FE_98_01_EXCUBEGAMEEND;
  53. }
  54. }