{\r
public CAct演奏Combo共通 act;\r
\r
- public int this[int index]\r
+ public int this[ int index ]\r
{\r
get\r
{\r
- switch (index)\r
+ switch( index )\r
{\r
case 0:\r
return this.Drums;\r
}\r
set\r
{\r
- switch (index)\r
+ switch( index )\r
{\r
case 0:\r
this.Drums = value;\r
set\r
{\r
this.drums = value;\r
- if (this.drums > this.Drums最高値)\r
+ if( this.drums > this.Drums最高値 )\r
{\r
this.Drums最高値 = this.drums;\r
}\r
set\r
{\r
this.guitar = value;\r
- if (this.guitar > this.Guitar最高値)\r
+ if( this.guitar > this.Guitar最高値 )\r
{\r
this.Guitar最高値 = this.guitar;\r
}\r
set\r
{\r
this.bass = value;\r
- if (this.bass > this.Bass最高値)\r
+ if( this.bass > this.Bass最高値 )\r
{\r
this.Bass最高値 = this.bass;\r
}\r
\r
protected enum EEvent { 非表示, 数値更新, 同一数値, ミス通知 }\r
protected enum EMode { 非表示中, 進行表示中, 残像表示中 }\r
- protected const int nギターコンボのCOMBO文字の高さ = (int)(16 * Scale.Y);\r
- protected const int nギターコンボのCOMBO文字の幅 = (int)(124);\r
- protected const int nギターコンボの高さ = (int)(78);\r
- protected const int nギターコンボの幅 = (int)(64);\r
- protected const int nギターコンボの文字間隔 = (int)(1 * Scale.X);\r
- protected const int nドラムコンボのCOMBO文字の高さ = (int)(32 * Scale.Y);\r
- protected const int nドラムコンボのCOMBO文字の幅 = (int)256; //( 90 * Scale.X );\r
- protected const int nドラムコンボの高さ = (int)(158);\r
- protected const int nドラムコンボの幅 = (int)(128);\r
- protected const int nドラムコンボの文字間隔 = (int)(2 * Scale.X);\r
- protected int[] nジャンプ差分値 = new int[180];\r
+ protected const int nギターコンボのCOMBO文字の高さ = (int) ( 16 * Scale.Y );\r
+ protected const int nギターコンボのCOMBO文字の幅 = (int) ( 124 );\r
+ protected const int nギターコンボの高さ = (int) ( 78 );\r
+ protected const int nギターコンボの幅 = (int) ( 64 );\r
+ protected const int nギターコンボの文字間隔 = (int) ( 1 * Scale.X );\r
+ protected const int nドラムコンボのCOMBO文字の高さ = (int) ( 32 * Scale.Y );\r
+ protected const int nドラムコンボのCOMBO文字の幅 = (int) 256; //( 90 * Scale.X );\r
+ protected const int nドラムコンボの高さ = (int) ( 158 );\r
+ protected const int nドラムコンボの幅 = (int) ( 128 );\r
+ protected const int nドラムコンボの文字間隔 = (int) ( 2 * Scale.X );\r
+ protected int[] nジャンプ差分値 = new int[ 180 ];\r
protected CSTATUS status;\r
protected CTexture txCOMBOギター;\r
protected CTexture txCOMBOドラム;\r
public CSTAT Bass = new CSTAT();\r
public CSTAT Drums = new CSTAT();\r
public CSTAT Guitar = new CSTAT();\r
- public CSTAT this[int index]\r
+ public CSTAT this[ int index ]\r
{\r
get\r
{\r
- switch (index)\r
+ switch( index )\r
{\r
case 0:\r
return this.Drums;\r
}\r
set\r
{\r
- switch (index)\r
+ switch( index )\r
{\r
case 0:\r
this.Drums = value;\r
this.b活性化してない = true;\r
\r
// 180度分のジャンプY座標差分を取得。(0度: 0 → 90度:-15 → 180度: 0)\r
- for (int i = 0; i < 180; i++)\r
- this.nジャンプ差分値[i] = (int)(-15.0 * Math.Sin((Math.PI * i) / 180.0) * Scale.Y);\r
+ for( int i = 0; i < 180; i++ )\r
+ this.nジャンプ差分値[ i ] = (int) ( -15.0 * Math.Sin( ( Math.PI * i ) / 180.0 ) * Scale.Y );\r
演奏判定ライン座標 = new C演奏判定ライン座標共通();\r
}\r
\r
\r
// メソッド\r
\r
- protected virtual void tコンボ表示_ドラム(int nCombo値, int nジャンプインデックス)\r
+ protected virtual void tコンボ表示_ドラム( int nCombo値, int nジャンプインデックス )\r
{\r
#region [ 事前チェック。]\r
//-----------------\r
- if (CDTXMania.app.ConfigIni.ドラムコンボ文字の表示位置 == Eドラムコンボ文字の表示位置.OFF)\r
+ if( CDTXMania.Instance.ConfigIni.ドラムコンボ文字の表示位置 == Eドラムコンボ文字の表示位置.OFF )\r
return; // 表示OFF。\r
\r
- if (nCombo値 == 0)\r
+ if( nCombo値 == 0 )\r
return; // コンボゼロは表示しない。\r
//-----------------\r
#endregion\r
\r
- int[] n位の数 = new int[10]; // 表示は10桁もあれば足りるだろう\r
+ int[] n位の数 = new int[ 10 ]; // 表示は10桁もあれば足りるだろう\r
\r
#region [ nCombo値を桁数ごとに n位の数[] に格納する。(例:nCombo値=125 のとき n位の数 = { 5,2,1,0,0,0,0,0,0,0 } ) ]\r
//-----------------\r
int n = nCombo値;\r
int n桁数 = 0;\r
- while ((n > 0) && (n桁数 < 10))\r
+ while( ( n > 0 ) && ( n桁数 < 10 ) )\r
{\r
- n位の数[n桁数] = n % 10; // 1の位を格納\r
- n = (n - (n % 10)) / 10; // 右へシフト(例: 12345 → 1234 )\r
+ n位の数[ n桁数 ] = n % 10; // 1の位を格納\r
+ n = ( n - ( n % 10 ) ) / 10; // 右へシフト(例: 12345 → 1234 )\r
n桁数++;\r
}\r
//-----------------\r
#endregion\r
\r
- bool guitar = CDTXMania.app.DTX.bチップがある.Guitar;\r
- bool bass = CDTXMania.app.DTX.bチップがある.Bass;\r
- var e表示位置 = CDTXMania.app.ConfigIni.ドラムコンボ文字の表示位置;\r
+ bool guitar = CDTXMania.Instance.DTX.bチップがある.Guitar;\r
+ bool bass = CDTXMania.Instance.DTX.bチップがある.Bass;\r
+ var e表示位置 = CDTXMania.Instance.ConfigIni.ドラムコンボ文字の表示位置;\r
\r
#region [ e表示位置 の調整 ]\r
//-----------------\r
- if (CDTXMania.app.ConfigIni.bGuitar有効)\r
+ if( CDTXMania.Instance.ConfigIni.bGuitar有効 )\r
{\r
- if (bass)\r
+ if( bass )\r
{\r
// ベースがあるときは問答無用で LEFT 表示のみ。\r
e表示位置 = Eドラムコンボ文字の表示位置.LEFT;\r
}\r
- else if (guitar && (e表示位置 == Eドラムコンボ文字の表示位置.RIGHT))\r
+ else if( guitar && ( e表示位置 == Eドラムコンボ文字の表示位置.RIGHT ) )\r
{\r
// ベースがなくてもギターがあるなら、RIGHT は CENTER に強制変更。\r
e表示位置 = Eドラムコンボ文字の表示位置.CENTER;\r
//-----------------\r
const int n1桁ごとのジャンプの遅れ = 50; // 1桁につき 50 インデックス遅れる\r
\r
- int nX中央位置px = (int)(187 * Scale.X);\r
- switch (e表示位置)\r
+ int nX中央位置px = (int) ( 187 * Scale.X );\r
+ switch( e表示位置 )\r
{\r
case Eドラムコンボ文字の表示位置.LEFT:\r
- nX中央位置px = (CDTXMania.app.ConfigIni.eドラムレーン表示位置 == Eドラムレーン表示位置.Left) ? (int)(187 * Scale.X) : 360;\r
+ nX中央位置px = ( CDTXMania.Instance.ConfigIni.eドラムレーン表示位置 == Eドラムレーン表示位置.Left ) ?(int) ( 187 * Scale.X ) : 360;\r
break;\r
\r
case Eドラムコンボ文字の表示位置.CENTER:\r
- nX中央位置px = (CDTXMania.app.ConfigIni.eドラムレーン表示位置 == Eドラムレーン表示位置.Left) ? (int)(320 * Scale.X) : 960;\r
+ nX中央位置px = ( CDTXMania.Instance.ConfigIni.eドラムレーン表示位置 == Eドラムレーン表示位置.Left ) ? (int) ( 320 * Scale.X ) : 960;\r
break;\r
\r
case Eドラムコンボ文字の表示位置.RIGHT:\r
- nX中央位置px = (CDTXMania.app.ConfigIni.eドラムレーン表示位置 == Eドラムレーン表示位置.Left) ? (int)(485 * Scale.X) : 1920 - 340;\r
+ nX中央位置px = ( CDTXMania.Instance.ConfigIni.eドラムレーン表示位置 == Eドラムレーン表示位置.Left ) ?(int) ( 485 * Scale.X ) : 1920 - 340;\r
break;\r
}\r
- int nY上辺位置px = CDTXMania.app.ConfigIni.bReverse.Drums ? (int)(350 * Scale.Y) : (int)(60 * Scale.Y);\r
+ int nY上辺位置px = CDTXMania.Instance.ConfigIni.bReverse.Drums ? (int) ( 350 * Scale.Y ) : (int) ( 60 * Scale.Y );\r
int n数字の全長px = ((nドラムコンボの幅 + nドラムコンボの文字間隔) * n桁数);// +nドラムコンボのCOMBO文字の幅;\r
int x = (nX中央位置px + (n数字の全長px / 2));// -nドラムコンボのCOMBO文字の幅;\r
int y = (nY上辺位置px + nドラムコンボの高さ);// -nドラムコンボのCOMBO文字の高さ;\r
\r
- if (this.txCOMBOドラム != null)\r
+ if( this.txCOMBOドラム != null )\r
this.txCOMBOドラム.t2D描画(\r
- CDTXMania.app.Device,\r
+ CDTXMania.Instance.Device,\r
nX中央位置px - nドラムコンボのCOMBO文字の幅 / 2,\r
y,//nドラムコンボのCOMBO文字の高さ / 2,\r
new Rectangle(\r
256,\r
- (int)316, //( 140 * Scale.Y ),\r
- (int)256, //( 90 * Scale.X ),\r
- (int)72\r
+ (int) 316, //( 140 * Scale.Y ),\r
+ (int) 256, //( 90 * Scale.X ),\r
+ (int) 72\r
)\r
); // "COMBO" を表示。\r
\r
y += this.nジャンプ差分値[nJump];\r
\r
// COMBO値を1の位から順に表示。\r
- for (int i = 0; i < n桁数; i++)\r
+ for( int i = 0; i < n桁数; i++ )\r
{\r
x -= nドラムコンボの幅 + nドラムコンボの文字間隔;\r
y = nY上辺位置px;\r
\r
- nJump = nジャンプインデックス - (((n桁数 - i) - 1) * n1桁ごとのジャンプの遅れ);\r
- if ((nJump >= 0) && (nJump < 180))\r
- y += this.nジャンプ差分値[nJump];\r
+ nJump = nジャンプインデックス - ( ( ( n桁数 - i ) - 1 ) * n1桁ごとのジャンプの遅れ );\r
+ if( ( nJump >= 0 ) && ( nJump < 180 ) )\r
+ y += this.nジャンプ差分値[ nJump ];\r
\r
- if (this.txCOMBOドラム != null)\r
+ if( this.txCOMBOドラム != null )\r
{\r
- this.txCOMBOドラム.t2D描画(CDTXMania.app.Device,\r
+ this.txCOMBOドラム.t2D描画( CDTXMania.Instance.Device,\r
x, y,\r
new Rectangle(\r
- (n位の数[i] % 4) * nドラムコンボの幅,\r
- (n位の数[i] / 4) * nドラムコンボの高さ,\r
+ ( n位の数[ i ] % 4 ) * nドラムコンボの幅,\r
+ ( n位の数[ i ] / 4 ) * nドラムコンボの高さ,\r
nドラムコンボの幅,\r
- nドラムコンボの高さ)\r
+ nドラムコンボの高さ )\r
);\r
}\r
}\r
//-----------------\r
#endregion\r
}\r
- protected virtual void tコンボ表示_ギター(int nCombo値, int nジャンプインデックス)\r
+ protected virtual void tコンボ表示_ギター( int nCombo値, int nジャンプインデックス )\r
{\r
}\r
- protected virtual void tコンボ表示_ベース(int nCombo値, int nジャンプインデックス)\r
+ protected virtual void tコンボ表示_ベース( int nCombo値, int nジャンプインデックス )\r
{\r
}\r
- protected void tコンボ表示_ギター(int nCombo値, int n表示中央X, int n表示中央Y, int nジャンプインデックス)\r
+ protected void tコンボ表示_ギター( int nCombo値, int n表示中央X, int n表示中央Y, int nジャンプインデックス )\r
{\r
#region [ 事前チェック。]\r
//-----------------\r
- if (((E判定文字表示位置)CDTXMania.app.ConfigIni.判定文字表示位置.Guitar) == E判定文字表示位置.表示OFF)\r
+ if ( ( (E判定文字表示位置) CDTXMania.Instance.ConfigIni.判定文字表示位置.Guitar ) == E判定文字表示位置.表示OFF )\r
return; // 表示OFF。\r
\r
- if (nCombo値 == 0)\r
+ if ( nCombo値 == 0 )\r
return; // コンボゼロは表示しない。\r
- //-----------------\r
+ //-----------------\r
#endregion\r
- tコンボ表示_ギターベース(nCombo値, n表示中央X, n表示中央Y, nジャンプインデックス);\r
+ tコンボ表示_ギターベース( nCombo値, n表示中央X, n表示中央Y, nジャンプインデックス );\r
}\r
- protected void tコンボ表示_ベース(int nCombo値, int n表示中央X, int n表示中央Y, int nジャンプインデックス)\r
+ protected void tコンボ表示_ベース( int nCombo値, int n表示中央X, int n表示中央Y, int nジャンプインデックス )\r
{\r
#region [ 事前チェック。]\r
//-----------------\r
- if (((E判定文字表示位置)CDTXMania.app.ConfigIni.判定文字表示位置.Bass) == E判定文字表示位置.表示OFF)\r
+ if ( ( (E判定文字表示位置) CDTXMania.Instance.ConfigIni.判定文字表示位置.Bass ) == E判定文字表示位置.表示OFF )\r
return; // 表示OFF。\r
\r
- if (nCombo値 == 0)\r
+ if ( nCombo値 == 0 )\r
return; // コンボゼロは表示しない。\r
- //-----------------\r
+ //-----------------\r
#endregion\r
- tコンボ表示_ギターベース(nCombo値, n表示中央X, n表示中央Y, nジャンプインデックス);\r
+ tコンボ表示_ギターベース( nCombo値, n表示中央X, n表示中央Y, nジャンプインデックス );\r
}\r
- protected void tコンボ表示_ギターベース(int nCombo値, int n表示中央X, int n表示中央Y, int nジャンプインデックス)\r
+ protected void tコンボ表示_ギターベース( int nCombo値, int n表示中央X, int n表示中央Y, int nジャンプインデックス )\r
{\r
- int[] n位の数 = new int[10]; // 表示は10桁もあれば足りるだろう\r
+ int[] n位の数 = new int[ 10 ]; // 表示は10桁もあれば足りるだろう\r
\r
#region [ nCombo値を桁数ごとに n位の数[] に格納する。(例:nCombo値=125 のとき n位の数 = { 5,2,1,0,0,0,0,0,0,0 } ) ]\r
//-----------------\r
int n = nCombo値;\r
int n桁数 = 0;\r
- while ((n > 0) && (n桁数 < 10))\r
+ while( ( n > 0 ) && ( n桁数 < 10 ) )\r
{\r
- n位の数[n桁数] = n % 10; // 1の位を格納\r
- n = (n - (n % 10)) / 10; // 右へシフト(例: 12345 → 1234 )\r
+ n位の数[ n桁数 ] = n % 10; // 1の位を格納\r
+ n = ( n - ( n % 10 ) ) / 10; // 右へシフト(例: 12345 → 1234 )\r
n桁数++;\r
}\r
//-----------------\r
#region [ "COMBO" の拡大率を設定。]\r
//-----------------\r
float f拡大率 = 1.0f;\r
- if (nジャンプインデックス >= 0 && nジャンプインデックス < 180)\r
- f拡大率 = 1.0f - (((float)this.nジャンプ差分値[nジャンプインデックス]) / 45.0f); // f拡大率 = 1.0 → 1.3333... → 1.0\r
+ if( nジャンプインデックス >= 0 && nジャンプインデックス < 180 )\r
+ f拡大率 = 1.0f - ( ( (float) this.nジャンプ差分値[ nジャンプインデックス ] ) / 45.0f ); // f拡大率 = 1.0 → 1.3333... → 1.0\r
\r
- if (this.txCOMBOギター != null)\r
- this.txCOMBOギター.vc拡大縮小倍率 = new Vector3(f拡大率, f拡大率, 1.0f);\r
+ if( this.txCOMBOギター != null )\r
+ this.txCOMBOギター.vc拡大縮小倍率 = new Vector3( f拡大率, f拡大率, 1.0f );\r
//-----------------\r
#endregion\r
#region [ "COMBO" 文字を表示。]\r
//-----------------\r
- int x = (int)(n表示中央X) - ((int)((nギターコンボのCOMBO文字の幅 * f拡大率) / 2.0f));\r
- int y = (int)(n表示中央Y);\r
+ int x = (int) ( n表示中央X ) - ( (int) ( ( nギターコンボのCOMBO文字の幅 * f拡大率 ) / 2.0f ) );\r
+ int y = (int) ( n表示中央Y );\r
\r
- if (this.txCOMBOギター != null)\r
+ if ( this.txCOMBOギター != null )\r
this.txCOMBOギター.t2D描画(\r
- CDTXMania.app.Device,\r
+ CDTXMania.Instance.Device,\r
x,\r
y,\r
new Rectangle(\r
128,\r
- (int)(158),\r
- (int)(124),\r
- (int)(16 * Scale.Y)\r
+ (int) ( 158 ),\r
+ (int) ( 124 ),\r
+ (int) ( 16 * Scale.Y )\r
)\r
- );\r
+ ); \r
//-----------------\r
#endregion\r
\r
//x = (int) ( n表示中央X * Scale.X ) + ( n全桁の合計幅 / 2 );\r
- x = n表示中央X + (n全桁の合計幅 / 2);\r
- for (int i = 0; i < n桁数; i++)\r
+ x = n表示中央X + ( n全桁の合計幅 / 2 );\r
+ for ( int i = 0; i < n桁数; i++ )\r
{\r
#region [ 数字の拡大率を設定。]\r
//-----------------\r
f拡大率 = 1.0f;\r
- if (nジャンプインデックス >= 0 && nジャンプインデックス < 180)\r
- f拡大率 = 1.0f - (((float)this.nジャンプ差分値[nジャンプインデックス]) / 45f); // f拡大率 = 1.0 → 1.3333... → 1.0\r
+ if( nジャンプインデックス >= 0 && nジャンプインデックス < 180 )\r
+ f拡大率 = 1.0f - ( ( (float) this.nジャンプ差分値[ nジャンプインデックス ] ) / 45f ); // f拡大率 = 1.0 → 1.3333... → 1.0\r
\r
- if (this.txCOMBOギター != null)\r
- this.txCOMBOギター.vc拡大縮小倍率 = new Vector3(f拡大率, f拡大率, 1.0f);\r
+ if( this.txCOMBOギター != null )\r
+ this.txCOMBOギター.vc拡大縮小倍率 = new Vector3( f拡大率, f拡大率, 1.0f );\r
//-----------------\r
#endregion\r
#region [ 数字を1桁表示。]\r
//y = (int) ( n表示中央Y * Scale.Y ) - nギターコンボの高さ;\r
y = n表示中央Y - nギターコンボの高さ;\r
\r
- if (this.txCOMBOギター != null)\r
+ if( this.txCOMBOギター != null )\r
{\r
this.txCOMBOギター.t2D描画(\r
- CDTXMania.app.Device,\r
- x - ((int)(((f拡大率 - 1.0f) * nギターコンボの幅) / 2.0f)),\r
- y - ((int)(((f拡大率 - 1.0f) * nギターコンボの高さ) / 2.0f)),\r
+ CDTXMania.Instance.Device,\r
+ x - ( (int) ( ( ( f拡大率 - 1.0f ) * nギターコンボの幅 ) / 2.0f ) ),\r
+ y - ( (int) ( ( ( f拡大率 - 1.0f ) * nギターコンボの高さ ) / 2.0f ) ),\r
new Rectangle(\r
- (n位の数[i] % 4) * nギターコンボの幅,\r
- (n位の数[i] / 4) * nギターコンボの高さ,\r
+ ( n位の数[ i ] % 4 ) * nギターコンボの幅,\r
+ ( n位の数[ i ] / 4 ) * nギターコンボの高さ,\r
nギターコンボの幅,\r
nギターコンボの高さ\r
)\r
{\r
this.n現在のコンボ数 = new STCOMBO() { act = this };\r
this.status = new CSTATUS();\r
- for (int i = 0; i < 3; i++)\r
+ for( int i = 0; i < 3; i++ )\r
{\r
- this.status[i].e現在のモード = EMode.非表示中;\r
- this.status[i].nCOMBO値 = 0;\r
- this.status[i].n最高COMBO値 = 0;\r
- this.status[i].n現在表示中のCOMBO値 = 0;\r
- this.status[i].n残像表示中のCOMBO値 = 0;\r
- this.status[i].nジャンプインデックス値 = 99999;\r
- this.status[i].n前回の時刻_ジャンプ用 = -1;\r
- this.status[i].nコンボが切れた時刻 = -1;\r
+ this.status[ i ].e現在のモード = EMode.非表示中;\r
+ this.status[ i ].nCOMBO値 = 0;\r
+ this.status[ i ].n最高COMBO値 = 0;\r
+ this.status[ i ].n現在表示中のCOMBO値 = 0;\r
+ this.status[ i ].n残像表示中のCOMBO値 = 0;\r
+ this.status[ i ].nジャンプインデックス値 = 99999;\r
+ this.status[ i ].n前回の時刻_ジャンプ用 = -1;\r
+ this.status[ i ].nコンボが切れた時刻 = -1;\r
}\r
base.On活性化();\r
}\r
public override void On非活性化()\r
{\r
- if (this.status != null)\r
+ if( this.status != null )\r
this.status = null;\r
\r
base.On非活性化();\r
}\r
public override void OnManagedリソースの作成()\r
{\r
- if (this.b活性化してない)\r
+ if( this.b活性化してない )\r
return;\r
\r
- this.txCOMBOドラム = TextureFactory.tテクスチャの生成(CSkin.Path(@"Graphics\ScreenPlayDrums-combo-drums2.png"));\r
- this.txCOMBOギター = TextureFactory.tテクスチャの生成(CSkin.Path(@"Graphics\ScreenPlayDrums-combo-guitar2.png"));\r
+ this.txCOMBOドラム = TextureFactory.tテクスチャの生成( CSkin.Path( @"Graphics\ScreenPlayDrums-combo-drums2.png" ) );\r
+ this.txCOMBOギター = TextureFactory.tテクスチャの生成( CSkin.Path( @"Graphics\ScreenPlayDrums-combo-guitar2.png" ) );\r
\r
base.OnManagedリソースの作成();\r
}\r
public override void OnManagedリソースの解放()\r
{\r
- if (this.b活性化してない)\r
+ if( this.b活性化してない )\r
return;\r
\r
- TextureFactory.tテクスチャの解放(ref this.txCOMBOドラム);\r
- TextureFactory.tテクスチャの解放(ref this.txCOMBOギター);\r
+ TextureFactory.tテクスチャの解放( ref this.txCOMBOドラム );\r
+ TextureFactory.tテクスチャの解放( ref this.txCOMBOギター );\r
\r
base.OnManagedリソースの解放();\r
}\r
public override int On進行描画()\r
{\r
- if (this.b活性化してない)\r
+ if( this.b活性化してない )\r
return 0;\r
\r
- for (int i = 2; i >= 0; i--)\r
+ for( int i = 2; i >= 0; i-- )\r
{\r
EEvent e今回の状態遷移イベント;\r
\r
#region [ 前回と今回の COMBO 値から、e今回の状態遷移イベントを決定する。]\r
//-----------------\r
- if (this.status[i].n現在表示中のCOMBO値 == this.status[i].nCOMBO値)\r
+ if( this.status[ i ].n現在表示中のCOMBO値 == this.status[ i ].nCOMBO値 )\r
{\r
e今回の状態遷移イベント = EEvent.同一数値;\r
}\r
- else if (this.status[i].n現在表示中のCOMBO値 > this.status[i].nCOMBO値)\r
+ else if( this.status[ i ].n現在表示中のCOMBO値 > this.status[ i ].nCOMBO値 )\r
{\r
e今回の状態遷移イベント = EEvent.ミス通知;\r
}\r
- else if ((this.status[i].n現在表示中のCOMBO値 < CDTXMania.app.ConfigIni.n表示可能な最小コンボ数[i]) && (this.status[i].nCOMBO値 < CDTXMania.app.ConfigIni.n表示可能な最小コンボ数[i]))\r
+ else if( ( this.status[ i ].n現在表示中のCOMBO値 < CDTXMania.Instance.ConfigIni.n表示可能な最小コンボ数[ i ] ) && ( this.status[ i ].nCOMBO値 < CDTXMania.Instance.ConfigIni.n表示可能な最小コンボ数[ i ] ) )\r
{\r
e今回の状態遷移イベント = EEvent.非表示;\r
}\r
\r
#region [ nジャンプインデックス値 の進行。]\r
//-----------------\r
- if (this.status[i].nジャンプインデックス値 < 360)\r
+ if( this.status[ i ].nジャンプインデックス値 < 360 )\r
{\r
- if ((this.status[i].n前回の時刻_ジャンプ用 == -1) || (CDTXMania.app.Timer.n現在時刻 < this.status[i].n前回の時刻_ジャンプ用))\r
- this.status[i].n前回の時刻_ジャンプ用 = CDTXMania.app.Timer.n現在時刻;\r
+ if( ( this.status[ i ].n前回の時刻_ジャンプ用 == -1 ) || ( CDTXMania.Instance.Timer.n現在時刻 < this.status[ i ].n前回の時刻_ジャンプ用) )\r
+ this.status[ i ].n前回の時刻_ジャンプ用 = CDTXMania.Instance.Timer.n現在時刻;\r
\r
const long INTERVAL = 2;\r
- while ((CDTXMania.app.Timer.n現在時刻 - this.status[i].n前回の時刻_ジャンプ用) >= INTERVAL)\r
+ while( ( CDTXMania.Instance.Timer.n現在時刻 - this.status[ i ].n前回の時刻_ジャンプ用) >= INTERVAL )\r
{\r
- if (this.status[i].nジャンプインデックス値 < 2000)\r
- this.status[i].nジャンプインデックス値 += 3;\r
+ if( this.status[ i ].nジャンプインデックス値 < 2000 )\r
+ this.status[ i ].nジャンプインデックス値 += 3;\r
\r
- this.status[i].n前回の時刻_ジャンプ用 += INTERVAL;\r
+ this.status[ i ].n前回の時刻_ジャンプ用 += INTERVAL;\r
}\r
}\r
//-----------------\r
\r
Retry: // モードが変化した場合はここからリトライする。\r
\r
- switch (this.status[i].e現在のモード)\r
+ switch( this.status[ i ].e現在のモード )\r
{\r
case EMode.非表示中:\r
#region [ *** ]\r
//-----------------\r
\r
- if (e今回の状態遷移イベント == EEvent.数値更新)\r
+ if( e今回の状態遷移イベント == EEvent.数値更新 )\r
{\r
// モード変更\r
- this.status[i].e現在のモード = EMode.進行表示中;\r
- this.status[i].nジャンプインデックス値 = 0;\r
- this.status[i].n前回の時刻_ジャンプ用 = CDTXMania.app.Timer.n現在時刻;\r
+ this.status[ i ].e現在のモード = EMode.進行表示中;\r
+ this.status[ i ].nジャンプインデックス値 = 0;\r
+ this.status[ i ].n前回の時刻_ジャンプ用 = CDTXMania.Instance.Timer.n現在時刻;\r
goto Retry;\r
}\r
\r
- this.status[i].n現在表示中のCOMBO値 = this.status[i].nCOMBO値;\r
+ this.status[ i ].n現在表示中のCOMBO値 = this.status[ i ].nCOMBO値;\r
break;\r
//-----------------\r
#endregion\r
#region [ *** ]\r
//-----------------\r
\r
- if ((e今回の状態遷移イベント == EEvent.非表示) || (e今回の状態遷移イベント == EEvent.ミス通知))\r
+ if( ( e今回の状態遷移イベント == EEvent.非表示 ) || ( e今回の状態遷移イベント == EEvent.ミス通知 ) )\r
{\r
// モード変更\r
- this.status[i].e現在のモード = EMode.残像表示中;\r
- this.status[i].n残像表示中のCOMBO値 = this.status[i].n現在表示中のCOMBO値;\r
- this.status[i].nコンボが切れた時刻 = CDTXMania.app.Timer.n現在時刻;\r
+ this.status[ i ].e現在のモード = EMode.残像表示中;\r
+ this.status[ i ].n残像表示中のCOMBO値 = this.status[ i ].n現在表示中のCOMBO値;\r
+ this.status[ i ].nコンボが切れた時刻 = CDTXMania.Instance.Timer.n現在時刻;\r
goto Retry;\r
}\r
\r
- if (e今回の状態遷移イベント == EEvent.数値更新)\r
+ if( e今回の状態遷移イベント == EEvent.数値更新 )\r
{\r
- this.status[i].nジャンプインデックス値 = 0;\r
- this.status[i].n前回の時刻_ジャンプ用 = CDTXMania.app.Timer.n現在時刻;\r
+ this.status[ i ].nジャンプインデックス値 = 0;\r
+ this.status[ i ].n前回の時刻_ジャンプ用 = CDTXMania.Instance.Timer.n現在時刻;\r
}\r
\r
- this.status[i].n現在表示中のCOMBO値 = this.status[i].nCOMBO値;\r
- switch (i)\r
+ this.status[ i ].n現在表示中のCOMBO値 = this.status[ i ].nCOMBO値;\r
+ switch( i )\r
{\r
case 0:\r
- this.tコンボ表示_ドラム(this.status[i].nCOMBO値, this.status[i].nジャンプインデックス値);\r
+ this.tコンボ表示_ドラム( this.status[ i ].nCOMBO値, this.status[ i ].nジャンプインデックス値 );\r
break;\r
\r
case 1:\r
- this.tコンボ表示_ギター(this.status[i].nCOMBO値, this.status[i].nジャンプインデックス値);\r
+ this.tコンボ表示_ギター( this.status[ i ].nCOMBO値, this.status[ i ].nジャンプインデックス値 );\r
break;\r
\r
case 2:\r
- this.tコンボ表示_ベース(this.status[i].nCOMBO値, this.status[i].nジャンプインデックス値);\r
+ this.tコンボ表示_ベース( this.status[ i ].nCOMBO値, this.status[ i ].nジャンプインデックス値 );\r
break;\r
}\r
break;\r
case EMode.残像表示中:\r
#region [ *** ]\r
//-----------------\r
- if (e今回の状態遷移イベント == EEvent.数値更新)\r
+ if( e今回の状態遷移イベント == EEvent.数値更新 )\r
{\r
// モード変更1\r
- this.status[i].e現在のモード = EMode.進行表示中;\r
+ this.status[ i ].e現在のモード = EMode.進行表示中;\r
goto Retry;\r
}\r
- if ((CDTXMania.app.Timer.n現在時刻 - this.status[i].nコンボが切れた時刻) > 1000)\r
+ if( ( CDTXMania.Instance.Timer.n現在時刻 - this.status[ i ].nコンボが切れた時刻 ) > 1000 )\r
{\r
// モード変更2\r
- this.status[i].e現在のモード = EMode.非表示中;\r
+ this.status[ i ].e現在のモード = EMode.非表示中;\r
goto Retry;\r
}\r
- this.status[i].n現在表示中のCOMBO値 = this.status[i].nCOMBO値;\r
+ this.status[ i ].n現在表示中のCOMBO値 = this.status[ i ].nCOMBO値;\r
break;\r
- //-----------------\r
+ //-----------------\r
#endregion\r
}\r
}\r