/src/packets/StartGameReq.java

http://inequity.googlecode.com/ · Java · 32 lines · 21 code · 4 blank · 7 comment · 0 complexity · b592cb12cf07d63dbbf8a5cf590b97a7 MD5 · raw file

  1. package packets;
  2. import elements.Consts.Priorities;
  3. import network.Lobby;
  4. /**
  5. *
  6. * @author Joel Garboden
  7. */
  8. public class StartGameReq extends Request
  9. {
  10. /**
  11. *
  12. */
  13. public StartGameReq()
  14. {
  15. this.priority = Priorities.TURN_UPDATE;
  16. }
  17. @Override
  18. public boolean lobbyRequest(Lobby lobby)
  19. {
  20. lobby.startGameCmd(lobby.lobbyList);
  21. return true;
  22. }
  23. @Override
  24. public String toString()
  25. {
  26. return "StartGameRequest";
  27. }
  28. }