/*
Copyright (C) 2005 David Green <green@couchpotato.net>
All Rights Reserved.

This file is part of Aelfengard.

Aelfengard is proprietary software. You may not redistribute it without
prior written permission from the copyright holder.
*/

package common.gameevent;

import common.ui.GameClient;

public class GameModeGameEvent extends GameEvent {

    private static final long serialVersionUID = 3544385924625872438L;
    
    private final String gameMode;
    private final String serverHostname;
    private final String rcSubdir;
    
    public GameModeGameEvent(String serverHostname, String rcSubdir, String gameMode) {
        this.gameMode = gameMode;
        this.serverHostname = serverHostname;
        this.rcSubdir = rcSubdir;
    }
    
    public void run() {
        GameClient.setCurrentServerInfo(serverHostname, rcSubdir, gameMode);
    }
    
}