Exemple #1
0
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();
}
Exemple #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);
 }
Exemple #4
0
// 制限時間の処理
void CStage::TimeUpdate(){
	AddCount();


	Transition();
}