Skip to content
This repository was archived by the owner on Mar 9, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 27 additions & 6 deletions FDK19/コード/00.共通/CCounter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,28 @@ public double db現在の経過時間
get;
set;
}

public int _n間隔ms
{
get
{
return this.n間隔ms;
}
set
{
this.n間隔ms = value >= 0 ? value : value * -1;
}
}
public double _db間隔
{
get
{
return this.db間隔;
}
set
{
this.db間隔 = value >= 0 ? value : value * -1;
}
}

// 状態プロパティ

Expand Down Expand Up @@ -116,13 +137,13 @@ public CCounter()
this.timer = null;
this.n開始値 = 0;
this.n終了値 = 0;
this.n間隔ms = 0;
this._n間隔ms = 0;
this.n現在の値 = 0;
this.n現在の経過時間ms = CTimer.n未使用;

this.db開始値 = 0;
this.db終了値 = 0;
this.db間隔 = 0;
this._db間隔 = 0;
this.db現在の値 = 0;
this.db現在の経過時間 = CSoundTimer.n未使用;
}
Expand Down Expand Up @@ -155,7 +176,7 @@ public void t開始( int n開始値, int n終了値, int n間隔ms, CTimer timer
{
this.n開始値 = n開始値;
this.n終了値 = n終了値;
this.n間隔ms = n間隔ms;
this._n間隔ms = n間隔ms;
this.timer = timer;
this.n現在の経過時間ms = this.timer.n現在時刻;
this.n現在の値 = n開始値;
Expand All @@ -172,7 +193,7 @@ public void t開始( double db開始値, double db終了値, double db間隔, CS
{
this.db開始値 = db開始値;
this.db終了値 = db終了値;
this.db間隔 = db間隔;
this._db間隔 = db間隔;
this.timerdb = timer;
this.db現在の経過時間 = this.timerdb.dbシステム時刻;
this.db現在の値 = db開始値;
Expand Down Expand Up @@ -345,4 +366,4 @@ public void tキー反復( bool bキー押下, DGキー処理 tキー処理 )
//-----------------
#endregion
}
}
}