Пример #1
0
        /*-------------------------------------------------------------------------
         *
         * ---------------------------------------------------------------------------*/
        public setting_sea_area_form(sea_area area)
        {
            m_sea_area = area;

            InitializeComponent();
            Useful.SetFontMeiryo(this, def.MEIRYO_POINT);

            // tooltip
            toolTip1.AutoPopDelay = 30 * 1000;                                  // 30秒表示
            toolTip1.BackColor    = Color.LightYellow;

            comboBox1.Hide();

            listView1.Columns.Add("海域群", 200);
            listView1.Columns.Add("状態", 150);

            foreach (sea_area.sea_area_once g in m_sea_area.groups)
            {
                string str;
                if (g.type == sea_area.sea_area_once.sea_type.normal)
                {
                    str = TEXT0;
                }
                else if (g.type == sea_area.sea_area_once.sea_type.safty)
                {
                    str = TEXT1;
                }
                else
                {
                    str = TEXT2;
                }
                add_item(g.name, str, g.GetToolTipString());
            }
        }
Пример #2
0
        /*-------------------------------------------------------------------------
         *
         * ---------------------------------------------------------------------------*/
        public GvoDatabase(gvt_lib lib)
        {
            m_lib = lib;

            // 季節チェック
            m_season = new gvo_season();

            // 世界の情報
            m_world_info = new GvoWorldInfo(lib,
                                            m_season,
                                            def.WORLDINFOS_FULLNAME,
                                            def.MEMO_PATH);

            // アイテムデータベース
            m_item_database = new ItemDatabaseCustom(def.ITEMDB_FULLNAME);

            // 船パーツ
            m_ship_parts_database = new ShipPartsDataBase(def.SHIP_PARTS_FULLNAME);
            m_item_database.MergeShipPartsDatabase(m_ship_parts_database);

            // 速度
            m_speed = new speed_calculator(def.GAME_WIDTH);

            // 航路図
            m_searoute = new SeaRoutes(lib,
                                       def.SEAROUTE_FULLFNAME,
                                       def.FAVORITE_SEAROUTE_FULLFNAME,
                                       def.TRASH_SEAROUTE_FULLFNAME);

            // @web icons
            m_web_icons = new WebIcons(lib);
            // メモアイコン
            m_map_mark = new map_mark(lib, def.MEMO_ICONS_FULLFNAME);
            // 航路共有
            m_share_routes = new ShareRoutes(lib);
            // 画面キャプチャ
            m_capture = new gvo_capture(lib);

            // 利息からの経過日数
            m_interest_days = new interest_days(lib.setting);
            // 造船日数管理
            m_build_ship_counter = new gvo_build_ship_counter(lib.setting);

            // 危険海域変動システム
            m_sea_area = new sea_area(lib, def.SEAAREA_FULLFNAME);

            // ログ解析
            m_gvochat = new gvo_chat(m_sea_area);
            // 1度ログ解析をしておく
            // 解析内容は捨てる
            m_gvochat.AnalyzeNewestChatLog();
            m_gvochat.ResetAll();
        }
Пример #3
0
        /*-------------------------------------------------------------------------
         *
         * ---------------------------------------------------------------------------*/
        public gvo_chat(string path, sea_area _sea_area)
        {
            m_path     = path;
            m_sea_area = _sea_area;

            m_newest_chat_file_info = null;                     // 更新が最も新しいログ
            m_chat_file_info        = null;                     // 解析対象のログ
            m_analyze_lines         = 0;                        // 解析状況

            m_accident           = accident.none;
            m_is_interest        = false;
            m_sea_area_type_list = new List <sea_area_type>();
        }
Пример #4
0
        /*-------------------------------------------------------------------------
         *
         * ---------------------------------------------------------------------------*/
        public GvoDatabase(gvt_lib lib)
        {
            m_lib = lib;

            // 季節チェック
            m_season = new gvo_season();

            // 세계の정보
            m_world_info = new GvoWorldInfo(lib, m_season, def.WORLDINFOS_FULLNAME, def.MEMO_PATH);

            // 아이템DB
            m_item_database = new ItemDatabaseCustom(def.ITEMDB_FULLNAME);

            // 선박 재료
            m_ship_parts_database = new ShipPartsDataBase(def.SHIP_PARTS_FULLNAME);
            m_item_database.MergeShipPartsDatabase(m_ship_parts_database);

            // 속도
            m_speed = new speed_calculator(def.GAME_WIDTH);

            // 항로도
            m_searoute = new SeaRoutes(lib, def.SEAROUTE_FULLFNAME, def.FAVORITE_SEAROUTE_FULLFNAME, def.TRASH_SEAROUTE_FULLFNAME);

            // @web icons
            m_web_icons = new WebIcons(lib);
            // 메모아이콘
            m_map_mark = new map_mark(lib, def.MEMO_ICONS_FULLFNAME);
            // 항로공유
            m_share_routes = new ShareRoutes(lib);
            // 화면캡처
            m_capture = new gvo_capture(lib);

            // 이자からの경과일수
            m_interest_days = new interest_days(lib.setting);
            // 조선일수관리
            m_build_ship_counter = new gvo_build_ship_counter(lib.setting);

            // 위험해역변동시스템
            m_sea_area = new sea_area(lib, def.SEAAREA_FULLFNAME);

            // 로그분석
            m_gvochat = new gvo_chat(m_sea_area);
            // 1도로그분석をしておく
            // 분석내용は捨てる
            m_gvochat.AnalyzeNewestChatLog();
            m_gvochat.ResetAll();
        }
Пример #5
0
        /*-------------------------------------------------------------------------
         *
         * ---------------------------------------------------------------------------*/
        public void Dispose()
        {
            if (m_world_info != null)
            {
                m_world_info.Dispose();
            }
            if (m_sea_area != null)
            {
                m_sea_area.Dispose();
            }
            if (m_capture != null)
            {
                m_capture.Dispose();
            }

            m_world_info = null;
            m_sea_area   = null;
            m_capture    = null;
        }
Пример #6
0
 /*-------------------------------------------------------------------------
  * 更新する
  * ---------------------------------------------------------------------------*/
 public void Update(sea_area area)
 {
     foreach (ListViewItem d in listView1.Items)
     {
         sea_area.sea_area_once.sea_type type;
         if (d.SubItems[1].Text == TEXT0)
         {
             type = sea_area.sea_area_once.sea_type.normal;
         }
         else if (d.SubItems[1].Text == TEXT1)
         {
             type = sea_area.sea_area_once.sea_type.safty;
         }
         else
         {
             type = sea_area.sea_area_once.sea_type.lawless;
         }
         m_sea_area.SetType(d.SubItems[0].Text, type);
     }
 }
Пример #7
0
 public gvo_chat(string path, sea_area _sea_area)
     : base(path)
 {
     m_sea_area = _sea_area;
 }
Пример #8
0
 /*-------------------------------------------------------------------------
  *
  * ---------------------------------------------------------------------------*/
 public gvo_chat(sea_area _sea_area)
     : base()
 {
     m_sea_area = _sea_area;
 }