コード例 #1
0
ファイル: Form1.cs プロジェクト: nielsvh/PorkSpleen
        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);
        }
コード例 #2
0
ファイル: Collection.cs プロジェクト: nielsvh/PorkSpleen
 public Collection(Player owner)
 {
     collection = new Hashtable();
 }