Exemplo n.º 1
0
        public Form1()
        {
            connectControl = new ConnectControl();
            loadContentControl = new LoadContentControl();
            logonControl = new LogonControl();
            overWorldControl = new OverWorldControl(this);
            chatControl = new ChatControl();
            ClientState = clientState.CONNECT;
            InitializeComponent();
            connectControl.connectButton.Click += new System.EventHandler(this.ConnectClick);
            logonControl.LogonButton.Click += new System.EventHandler(this.LogonClick);
            this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.Form1_KeyPress);
            this.Controls.Add(connectControl);
            this.Controls.Add(loadContentControl);
            this.Controls.Add(logonControl);
            this.Controls.Add(overWorldControl);
            this.Controls.Add(chatControl);
            overWorldControl.LoadContent();
            logonControl.Visible = chatControl.Visible = overWorldControl.Visible = loadContentControl.Visible = false;
            playerBuilt = worldBuilt = collectionBuilt = decksBuilt = false;

            client = new NetClient(this);
            client.Setup();
            player = new Player(this.overWorldControl);
        }
Exemplo n.º 2
0
 public Player(OverWorldControl overWorld)
 {
     _overWorld = overWorld;
     avatar = new Avatar();
 }