private RecordManager()
        {
            MasterPath = @"Record";
            EnemyFleet = new EnemyFleetRecord();
            ShipParameter = new ShipParameterRecord();
            Construction = new ConstructionRecord();
            ShipDrop = new ShipDropRecord();
            Development = new DevelopmentRecord();
            Resource = new ResourceRecord();

            if ( !Directory.Exists( MasterPath ) ) {
                Directory.CreateDirectory( MasterPath );
            }
        }
示例#2
0
        private RecordManager()
        {
            MasterPath    = @"Record";
            EnemyFleet    = new EnemyFleetRecord();
            ShipParameter = new ShipParameterRecord();
            Construction  = new ConstructionRecord();
            ShipDrop      = new ShipDropRecord();
            Development   = new DevelopmentRecord();
            Resource      = new ResourceRecord();

            if (!Directory.Exists(MasterPath))
            {
                Directory.CreateDirectory(MasterPath);
            }
        }
		private RecordManager() {

			MasterPath = @"Record";
			EnemyFleet = new EnemyFleetRecord();
			ShipParameter = new ShipParameterRecord();
			Construction = new ConstructionRecord();
			ShipDrop = new ShipDropRecord();
			Development = new DevelopmentRecord();
			Resource = new ResourceRecord();

			if ( !Directory.Exists( MasterPath ) ) {
				Directory.CreateDirectory( MasterPath );
			}

			_prevTime = DateTime.Now;
			Observer.APIObserver.Instance["api_port/port"].ResponseReceived += TimerSave;
		}
        private RecordManager()
        {
            MasterPath    = @"Record";
            EnemyFleet    = new EnemyFleetRecord();
            ShipParameter = new ShipParameterRecord();
            Construction  = new ConstructionRecord();
            ShipDrop      = new ShipDropRecord();
            Development   = new DevelopmentRecord();
            Resource      = new ResourceRecord();

            if (!Directory.Exists(MasterPath))
            {
                Directory.CreateDirectory(MasterPath);
            }

            _prevTime = DateTime.Now;
            Observer.APIObserver.Instance["api_port/port"].ResponseReceived += TimerSave;
        }
			public void Update( EnemyFleetRecord.EnemyFleetElement fleet ) {

				if ( fleet == null ) {
					for ( int i = 0; i < 6; i++ )
						ShipNames[i].Visible = false;
					Formation.Visible = false;
					AirSuperiority.Visible = false;
					ToolTipInfo.SetToolTip( AirSuperiority, null );

					return;
				}

				for ( int i = 0; i < 6; i++ ) {

					var ship = KCDatabase.Instance.MasterShips[fleet.FleetMember[i]];

					// カッコカリ 上のとマージするといいかもしれない

					if ( ship == null ) {
						// nothing
						ShipNames[i].Text = "-";
						ShipNames[i].ForeColor = Color.Black;
						ShipNames[i].Tag = -1;
						ShipNames[i].Cursor = Cursors.Default;
						ToolTipInfo.SetToolTip( ShipNames[i], null );

					} else {

						ShipNames[i].Text = ship.Name;
						ShipNames[i].ForeColor = GetShipNameColor( ship );
						ShipNames[i].Tag = ship.ShipID;
						ShipNames[i].Cursor = Cursors.Help;
						ToolTipInfo.SetToolTip( ShipNames[i], GetShipString( ship.ShipID, ship.DefaultSlot != null ? ship.DefaultSlot.ToArray() : null ) );
					}

					ShipNames[i].Visible = true;

				}

				Formation.Text = Constants.GetFormationShort( fleet.Formation );
				//Formation.ImageIndex = (int)ResourceManager.IconContent.BattleFormationEnemyLineAhead + fleet.Formation - 1;
				Formation.Visible = true;

				{
					int air = Calculator.GetAirSuperiority( fleet.FleetMember );
					AirSuperiority.Text = air.ToString();
					ToolTipInfo.SetToolTip( AirSuperiority, GetAirSuperiorityString( air ) );
					AirSuperiority.Visible = true;
				}

			}