home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR9 / WIZTOO.ZIP / CLIENT.CPP < prev    next >
C/C++ Source or Header  |  1993-09-23  |  636b  |  28 lines

  1. //  Module: CLIENT.CPP
  2.  
  3. #include    <stdlib.h>
  4. #include    "CLIENT.H"
  5.  
  6. void WeatherStation::ReadSensors (void)         // Simulation
  7. {
  8.     iSpeed = rand()%100;
  9.     iDirection = rand()%360;
  10.     iTemperature = rand()%110;
  11.     iBarometricPressure = rand()%50;
  12.     iHumidity = rand()%100;
  13. }
  14.  
  15. void WeatherStation::Broadcast (void)
  16. {
  17.     oRegister.ExecuteWindData(iSpeed, iDirection);
  18.     oRegister.ExecuteAirData(iTemperature,
  19.                                 iBarometricPressure,
  20.                                 iHumidity);
  21. }
  22.  
  23. void WeatherStation::TornadoWarning (void)
  24. {
  25.     oRegister.ExecuteTornadoWarning();
  26. }
  27.  
  28.