예제 #1
0
        private void UITestForm_Load(object sender, EventArgs e)
        {
            testWelcomeControl      = new WelcomeControl();
            testWelcomeControl.Dock = DockStyle.Fill;

            testLocationControl      = new LocationControl();
            testLocationControl.Dock = DockStyle.Fill;

            testTeamControl      = new TeamControl();
            testTeamControl.Dock = DockStyle.Fill;

            testStructureControl      = new StructureControl();
            testStructureControl.Dock = DockStyle.Fill;

            testHistoryControl      = new HistoryControl();
            testHistoryControl.Dock = DockStyle.Fill;

            testMethodologyControl      = new MethodologyControl();
            testMethodologyControl.Dock = DockStyle.Fill;

            activeControlPanel.Controls.Add(testWelcomeControl);
            welcomeTabButton.BackColor = Color.DarkGray;

            progress  = 1;
            this.data = new Data.Unit();
        }
예제 #2
0
        public StructureRegisterView()
        {
            InitializeComponent();

            structureControl = new StructureControl();
            companyControl   = new CompanyControl();

            fillGridStructure();
            fillCBCompany();
        }
예제 #3
0
 public void setup(CitizenControl _citizenControl, StructureControl _structureControl, AchievementControl _achievementControl, Node _location)
 {
     citizenControl                = _citizenControl;
     structureControl              = _structureControl;
     achievementControl            = _achievementControl;
     location                      = _location;
     action                        = ActionFactory.getAction(this);
     actionsLeftUntilMatingAllowed = 0;
     isZombie                      = false;
 }
예제 #4
0
 /// <summary>
 /// Start server.
 /// </summary>
 public void Run()
 {
     Logger.Log("War World Infinity Server Version {0}", Version);
     Settings    = new AppSettings(_directory + "Settings.ini");
     _taskQueue  = new TaskQueue();
     CommandExec = new CommandExecuter();
     //SocketPolicyServer.LoadAll();
     SockServ     = new WebSockServer(AppSettings.ServerPort);
     _netCommands = new NetworkCommands();
     DB           = new DataBase(AppSettings.DbServer, AppSettings.Database);
     DB.Connect(AppSettings.DbUsername, AppSettings.DbPassword);
     Worlds            = new WorldManager(this);
     Structures        = new StructureControl();
     Chat              = new ChatProcessor();
     Users             = new UserManager();
     autoSaver         = new AutoSave();
     FCounter          = new FrameCounter();
     Alliances         = new AllianceManager();
     Squads            = new SquadController();
     Noise2D.RunAsync += TaskQueue.QeueAsync;
     _tickThread       = new Thread(CommandExec.StartCommandLoop);
     _tickThread.Start();
     GameLoop();
 }
예제 #5
0
 public BuildingItemApplication(StructureControl _structureControl) : base(_structureControl)
 {
 }
예제 #6
0
 public SidewalkItemApplication(StructureControl _structureControl) : base(_structureControl)
 {
 }
예제 #7
0
 public BombItemApplication(StructureControl _structureControl) : base(_structureControl)
 {
 }
예제 #8
0
 protected ItemApplication(StructureControl _structureControl)
 {
     structureControl = _structureControl;
 }