OSDN Git Service

#23631 ギター/ベースのDANGER処理を追加。
[dtxmania/dtxmania.git] / DTXManiaプロジェクト / コード / ステージ / 07.演奏 / ドラム画面 / CAct演奏DrumsDanger.cs
index 53f9ec1..8ce46ce 100644 (file)
@@ -51,24 +51,31 @@ namespace DTXMania
                {\r
                        throw new InvalidOperationException( "t進行描画(bool)のほうを使用してください。" );\r
                }\r
-               public override int t進行描画( bool bDangerである )\r
+               /// <summary>\r
+               /// ドラム画面のDANGER描画\r
+               /// </summary>\r
+               /// <param name="bIsDangerDrums">DrumsのゲージがDangerかどうか(Guitar/Bassと共用のゲージ)</param>\r
+               /// <param name="bIsDangerGuitar">Guitarのゲージ(未使用)</param>\r
+               /// <param name="bIsDangerBass">Bassのゲージ(未使用)</param>\r
+               /// <returns></returns>\r
+               public override int t進行描画( bool bIsDangerDrums, bool bIsDangerGuitar, bool bIsDangerBass )\r
                {\r
                        if( !base.b活性化してない )\r
                        {\r
-                               if( !bDangerである )\r
+                               if( !bIsDangerDrums )\r
                                {\r
-                                       this.bDanger中 = false;\r
+                                       this.bDanger中[(int)E楽器パート.DRUMS] = false;\r
                                        return 0;\r
                                }\r
-                               if( !this.bDanger中 )\r
+                               if( !this.bDanger中[(int)E楽器パート.DRUMS] )\r
                                {\r
                                        this.ct移動用 = new CCounter( 0, 0x7f, 7, CDTXMania.Timer );\r
                                        this.ct透明度用 = new CCounter( 0, 0x167, 4, CDTXMania.Timer );\r
                                }\r
-                               this.bDanger中 = bDangerである;\r
+                               this.bDanger中[(int)E楽器パート.DRUMS] = bIsDangerDrums;\r
                                this.ct移動用.t進行Loop();\r
                                this.ct透明度用.t進行Loop();\r
-                               if( !this.bDanger中 )\r
+                               if( !this.bDanger中[(int)E楽器パート.DRUMS] )\r
                                {\r
                                        return 0;\r
                                }\r
@@ -101,8 +108,8 @@ namespace DTXMania
                //private bool bDanger中;\r
                //private CCounter ct移動用;\r
                //private CCounter ct透明度用;\r
-               private const int n右位置 = 0x12a;\r
-               private const int n左位置 = 0x26;\r
+//             private const int n右位置 = 0x12a;\r
+//             private const int n左位置 = 0x26;\r
                private readonly Rectangle[] rc領域 = new Rectangle[] { new Rectangle( 0, 0, 0x20, 0x40 ), new Rectangle( 0x20, 0, 0x20, 0x40 ) };\r
                private CTexture txDANGER;\r
                //-----------------\r