RequestExCubeGameChangeTeam.java 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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.clientpackets;
  16. import java.util.logging.Logger;
  17. /**
  18. * Format: chdd
  19. * d: Arena
  20. * d: Team
  21. *
  22. * @author mrTJO
  23. */
  24. public final class RequestExCubeGameChangeTeam extends L2GameClientPacket
  25. {
  26. private static final String _C__D0_5A_REQUESTEXCUBEGAMECHANGETEAM = "[C] D0:5A RequestExCubeGameChangeTeam";
  27. private static Logger _log = Logger.getLogger(RequestExCubeGameChangeTeam.class.getName());
  28. int _arena;
  29. int _team;
  30. @Override
  31. protected void readImpl()
  32. {
  33. _arena = readD();
  34. _team = readD();
  35. }
  36. @Override
  37. public void runImpl()
  38. {
  39. switch (_team)
  40. {
  41. case 0:
  42. case 1:
  43. // Change Player Team
  44. break;
  45. case -1:
  46. // Remove Player (me)
  47. break;
  48. default:
  49. _log.warning("Wrong Cube Game Team ID: "+_team);
  50. break;
  51. }
  52. }
  53. @Override
  54. public String getType()
  55. {
  56. return _C__D0_5A_REQUESTEXCUBEGAMECHANGETEAM;
  57. }
  58. }