コード例 #1
0
 bool train_pitch_lift()
 {
     if (pitch_lift_cpu >= LIFT_DESCEND_COST)
     {
         Interlocked.Add(ref pitch_lift_cpu, -LIFT_DESCEND_COST);
         pitch_lift_trainer.Train();
         return(true);
     }
     return(false);
 }
コード例 #2
0
 bool train_pitch_ann()
 {
     if (pitch_cpu >= TORQUE_DESCEND_COST)
     {
         Interlocked.Add(ref pitch_cpu, -TORQUE_DESCEND_COST);
         pitch_trainer.Train();
         return(true);
     }
     return(false);
 }