~mchaten/gg/main

« back to all changes in this revision

Viewing changes to main/client/src/net/sf/goodgame/client/networking/ServerToClientLogic.java

  • Committer: mchaten
  • Date: 2009-04-22 05:07:41 UTC
  • Revision ID: mchaten@gmail.com-20090422050741-92mj6an6rlc3p0sv
Removed the "guest" UserType
Fixed some bugs with the client login gui. 
Does not log in when initialized, as there is no guest type anymore, and other various side-effects of logging out are no longer there.
Removed all code dealing with the special case of a guest type.
You get the point -- bye bye guest type

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
    }
155
155
 
156
156
    public void logout(NetworkMessage networkMessage) {
157
 
        try {
158
 
            Object[] data = networkMessage.decodeMessage(false, String.class);
159
 
            ui.login((String) data[0], UserType.guest);
160
 
        } catch (InvalidMessageException ex) {
161
 
            Logger.getLogger(ServerToClientLogic.class.getName()).log(Level.SEVERE, null, ex);
162
 
        }
 
157
        //TODO: Find a use for the response logout method
163
158
    }
164
159
 
165
160
    public void switchLobby(NetworkMessage networkMessage) {