home *** CD-ROM | disk | FTP | other *** search
/ VRML Tools for 3D Cyberspace / VRML_Tools_For_3D_Cyberspace.iso / amber / include / sim.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-01  |  1.4 KB  |  85 lines

  1. //**********************************************************************
  2. //  DIVE Laboratories, Inc.
  3. //  Copyright(c) 1995
  4. //  All rights reserved.
  5. //
  6. //  FILE:   SIM.HPP
  7. //
  8. //  DESCRIPTION
  9. //  This header provides the class definition for the 
  10. //  simClass class.
  11. //
  12. //**********************************************************************
  13. #ifndef SIMULATE
  14. #define SIMULATE
  15.  
  16. #include "style.hpp"
  17. #include "law.hpp"
  18.  
  19. //---------------------------------------------------------------------
  20. //  This is the class definition for the simClass.
  21. //
  22. class simClass {
  23.  
  24. //  Private Data
  25.  
  26. private:
  27.  
  28.     int actionEx, styleEx, lawEx, doSimulate;
  29.  
  30.      float lastTime;
  31.  
  32. public:
  33.     
  34. //  Action & Style lists and the associated operations
  35.  
  36.     void executeStyles();
  37.  
  38.     void executeActions();
  39.  
  40.     void executeLaws();
  41.  
  42.      void setDoSimulate(int flag);
  43.  
  44.      int getDoSimulate();
  45.  
  46. //  Protected Data
  47.  
  48. //  Public Data
  49.  
  50.     int cycle;
  51.  
  52.      float simTime;
  53.  
  54.     int simFlag;
  55.  
  56. //  action, style, and law execution control
  57.  
  58.     void setStyleEx(int flag);
  59.  
  60.     int getStyleEx();
  61.  
  62.     void setActionEx(int flag);
  63.  
  64.     int getActionEx();
  65.  
  66.     void setLawEx(int flag);
  67.  
  68.     int getLawEx();
  69.  
  70. //  Simulation Management
  71.  
  72.     void simulate();
  73.  
  74. //  Constructor Functions
  75.  
  76.     simClass(float tC = 0.1);
  77.    
  78. //  Destructor Function
  79.  
  80.     ~simClass();
  81.     
  82. };
  83.  
  84. #endif
  85.