示例#1
0
文件: main.cpp 项目: ediril/BCI
void ProcessRawCount( MDF_RAW_SPIKECOUNT *rc)
{
  //PrintRawCount( rc);

  // Check that the source index is within defined range. If it is not, then ignore it,
  // and return without further processing
  if( rc->source_index < 0) {
    fprintf(stderr,"Source index < 0 !!! This should never happen !!!\n");
    return;
  }
  if( rc->source_index >= MAX_SPIKE_SOURCES) {
    fprintf(stderr,"Source index exceeds maximum number of defined spike sources!\n");
    return;
  }

  //
  // Aggregate counts from N consecutive raw counts across all active 
  // sources to make a spike count sample
  //
  if( IncomingDataBelongsInNextSample( rc->source_index)) GenerateSample();

  AddCount( rc);

  if( EnoughDataForSample()) GenerateSample();
}
示例#2
0
void Unit::UpgleWeapon()
{
    auto weapon = m_WeaponQueue.front();
    weapon->AddCount(2);
    weapon->AddDamage(5);
    weapon->AddSize(0.01f);
    weapon->AddSpeed(3);
    weapon->UpdateLabel();
}
 void RtzCountdownEvent::AddCount()
 {
     AddCount(1);
 }
示例#4
0
// 制限時間の処理
void CStage::TimeUpdate(){
	AddCount();


	Transition();
}