PageRenderTime 18ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/packets/StartGameReq.java

http://inequity.googlecode.com/
Java | 32 lines | 21 code | 4 blank | 7 comment | 0 complexity | b592cb12cf07d63dbbf8a5cf590b97a7 MD5 | raw file
 1package packets;
 2
 3import elements.Consts.Priorities;
 4import network.Lobby;
 5
 6/**
 7 *
 8 * @author Joel Garboden
 9 */
10public class StartGameReq extends Request
11{
12  /**
13   *
14   */
15  public StartGameReq()
16  {
17    this.priority = Priorities.TURN_UPDATE;
18  }
19
20  @Override
21  public boolean lobbyRequest(Lobby lobby)
22  {
23    lobby.startGameCmd(lobby.lobbyList);
24    return true;
25  }
26
27  @Override
28  public String toString()
29  {
30    return "StartGameRequest";
31  }
32}