Ejemplo n.º 1
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="pm">対象のプロセスメモリ</param>
        /// <param name="config">プロセスメモリ上のアドレスや定数</param>
        public RaceNameTable( KOEI.WP7_2012.Helper.ProcessMemory pm, ConfigurationInterface config )
        {
            this.pm_ = pm;
            this.config_ = config;
            this.name_config_ = config.RaceNameTable;
            this.NameCount = (int)this.name_config_.RecordMaxLength / 2;
            this.name_table_ = new KOEI.WP7_2012.Race.Name.NameData[ this.NameCount ];

            this.CreateRaceRaceNameTable();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="pm">対象のプロセスメモリ</param>
        /// <param name="config">プロセスメモリ上のアドレスや定数</param>
        public HorseNameTable( KOEI.WP7_2012.Helper.ProcessMemory pm, ConfigurationInterface config )
        {
            this.pm_ = pm;
            this.name_data_dic_ = new Dictionary< int, KOEI.WP7_2012.Horse.Name.NameData >();
            this.config_ = config;
            this.system_table_config_ = config.HorseNameSystemTable;
            this.user_table_config_ = config.HorseNameUserTable;

            // システム既定の馬名テーブルを作成する
            this.CreateSystemNameTable();

            // ユーザー定義の馬名テーブルを作成する
            this.CreateUserNameTable();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// トランザクションを開始します
        /// </summary>
        private void Transaction( ReadWriteMode mode )
        {
            this.pm_ = new KOEI.WP7_2012.Helper.ProcessMemory( this.process_name_, mode );

            this.transaction_week_number_ = this.GetCurrentWeekNumber();

            this.name_table_ = new KOEI.WP7_2012.MemoryTable.HorseNameTable(
                this.pm_,
                this.config_
            );
            this.h_shizitsu_name_table_ = new KOEI.WP7_2012.MemoryTable.ProcessMemoryTable(
                this.pm_,
                this.config_.HorseShizitsuNameTable
            );

            this.h_abl_table_ = new KOEI.WP7_2012.MemoryTable.HorseAblDataTable(
                this.pm_,
                this.config_.HorseAbilityTable
            );
            this.h_family_line_table_ = new KOEI.WP7_2012.MemoryTable.HorseFamilyLineTable(
                this.pm_,
                this.config_.HorseFamilyLineTable
            );
            this.h_blood_table_ = new KOEI.WP7_2012.MemoryTable.HorseBloodTable(
                this.pm_,
                this.config_.HorseBloodTable
            );
            this.h_race_table_ = new KOEI.WP7_2012.MemoryTable.HorseRaceTable(
                this.pm_,
                this.config_.HorseRaceTable
            );
            this.h_sire_table_ = new KOEI.WP7_2012.MemoryTable.HorseSireTable(
                this.pm_,
                this.config_.HorseSireTable
            );
            this.h_dam_table_ = new KOEI.WP7_2012.MemoryTable.HorseDamTable(
                this.pm_,
                this.config_.HorseDamTable
            );
            this.h_child_table_ = new KOEI.WP7_2012.MemoryTable.HorseChildTable(
                this.pm_,
                this.config_.HorseChildTable
            );
            this.h_ownership_race_table_ = new KOEI.WP7_2012.MemoryTable.HorseOwnershipRaceTable(
                this.pm_,
                this.config_.HorseOwnershipRaceTable
            );
            this.h_ownership_child_table_ = new KOEI.WP7_2012.MemoryTable.HorseOwnershipChildTable(
                this.pm_,
                this.config_.HorseOwnershipChildTable
            );
            this.r_name_table_ = new KOEI.WP7_2012.MemoryTable.RaceNameTable(
                this.pm_,
                this.config_
            );
            this.r_data_table_ = new KOEI.WP7_2012.MemoryTable.RaceDataTable(
                this.pm_,
                this.config_.RaceDataTable
            );
            this.r_program_table_ = new KOEI.WP7_2012.MemoryTable.RaceProgramTable(
                this.pm_,
                this.config_.RaceProgramTable
            );
        }
Ejemplo n.º 4
0
 /// <summary>
 /// オブジェクトを破棄します
 /// </summary>
 public void Dispose()
 {
     if( this.pm_ != null ) {
         this.pm_.Dispose();
         this.pm_ = null;
     }
 }