예제 #1
0
        /*-------------------------------------------------------------------------
         * 解析情報から構築
         * ---------------------------------------------------------------------------*/
        static public gvo_analized_data FromAnalizedData(gvo_capture_base capture, gvo_map_cs_chat_base chat)
        {
            gvo_analized_data data = new gvo_analized_data();

            data.m_days                 = capture.days;
            data.m_pos_x                = capture.point.X;
            data.m_pos_y                = capture.point.Y;
            data.m_angle                = capture.angle;
            data.m_interest             = chat.is_interest;
            data.m_accident             = chat._accident;
            data.m_is_start_build_ship  = chat.is_start_build_ship;
            data.m_build_ship_name      = chat.build_ship_name;
            data.m_is_finish_build_ship = chat.is_finish_build_ship;

            // 造船関係は無条件でリセットする
            chat.ResetBuildShip();

            if (data.capture_days_success)
            {
                // 日付がキャプチャできていれば利息をリセットする
                chat.ResetInterest();                   // 利息のリセット
            }
            if (data.capture_success)
            {
                // 全てキャプチャできていれば災害をリセットする
                chat.ResetAccident();                   // 災害のリセット
            }
            return(data);
        }
예제 #2
0
        /*-------------------------------------------------------------------------
         * コピー
         * ---------------------------------------------------------------------------*/
        public gvo_analized_data Clone()
        {
            gvo_analized_data data = new gvo_analized_data();

            data.m_days                 = m_days;
            data.m_pos_x                = m_pos_x;
            data.m_pos_y                = m_pos_y;
            data.m_angle                = m_angle;
            data.m_interest             = m_interest;
            data.m_accident             = m_accident;
            data.m_is_start_build_ship  = m_is_start_build_ship;
            data.m_build_ship_name      = m_build_ship_name;
            data.m_is_finish_build_ship = m_is_finish_build_ship;
            return(data);
        }