Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.42 KB | None | 0 0
  1. //---------------------------------------------------------------------------
  2.  
  3. #ifndef PARTICLE_SYSTEM_THREADH
  4. #define PARTICLE_SYSTEM_THREADH
  5.  
  6. #include "SysUtils.hpp"
  7. #include "DxcMath.h"
  8. #include "DxCMatrix.h"
  9. #include "Textures.hpp"
  10. #include "TachoGLModelSRC.h"
  11. #include "Math.h"
  12. //---------------------------------------------------------------------------
  13.  
  14. struct TSubparticle;
  15. typedef TSubparticle *TSubparticleP;
  16.  
  17. struct TSubparticle
  18. {
  19. double * charm;
  20. TSubparticleP * ConsistsOf;
  21.  
  22. virtual void ReactWith(TSubparticle * p) {}
  23.  
  24.         TSubparticle& operator=(const TSubparticle& in)
  25.         {
  26.             charm = in.charm;
  27.             ConsistsOf = in.ConsistsOf;
  28.             return *this;
  29.         }
  30. };
  31.  
  32.  
  33.  
  34. struct TAtomParticle
  35. {
  36. TSubparticleP * electrons;
  37. TSubparticleP * protons;
  38. TSubparticleP * neutrons;
  39.  
  40.  
  41.         TAtomParticle& operator=(const TAtomParticle& in)
  42.         {
  43.             electrons   = in.electrons;
  44.             protons     = in.protons;
  45.             neutrons    = in.neutrons;
  46.             return *this;
  47.         }
  48.  
  49. };
  50.  
  51. struct TToolChain;
  52. typedef TToolChain * TToolChainP;
  53.  
  54. struct TToolChain
  55. {
  56. int num_of_handles;
  57. TToolChainP * handle; //attached toolchains
  58.  
  59. };
  60.  
  61. struct TMaterial{
  62.   double depth;
  63.   double particle_num;
  64.   double volume;
  65.   TToolChain * material;
  66. };
  67.  
  68. typedef TMaterial * TMaterialsP;
  69.  
  70. struct TBoundaryModel {
  71.   TachoGLModelP * boundary_models;
  72.   TMaterialsP * material_data;
  73.  
  74.  
  75. TBoundaryModel * n; //during simulation there can be made new models
  76. TBoundaryModel * p;
  77.  
  78. };
  79.  
  80.  
  81.  
  82.  
  83. struct TSubstance
  84. {
  85. TToolChain * substance;
  86. TachoGLModel<double> boundary_model; //if substance has somewhat volume
  87.   double depth;
  88.   double particle_num;
  89.   double density;// really needed?
  90.   double volume;
  91. };
  92.  
  93.  
  94. struct TChainEnergy
  95. {
  96.   t3dpoint<double> value;
  97.   bool kietic;
  98.   bool temporary;
  99.   bool heat;
  100.   bool electromagnetic;
  101. };
  102.  
  103. void TwoSubstancesReact(TToolChain * A, TToolChain * B, TChainEnergy Energy)
  104. {
  105.  
  106. }
  107.  
  108.  
  109.  
  110. struct TThreatParticle
  111. {
  112.   t3dpoint<double> pos;
  113.   t3dpoint<double> * object_pos;
  114.  
  115.   double temperature;
  116.  
  117.  
  118. };
  119.  
  120.                    /*
  121.  
  122. class THREAD_ParticeSystem : public TThread         {
  123.  
  124. TPES_2k9 * GRACZE;
  125. //               TGamepad*JOY;
  126.  
  127. tBOT * TEAM1[21];
  128. tBOT * TEAM2[21];
  129. tBOT * TEAM3[21];
  130.               //funkcja kolizja_sfera z innymi
  131.                             //funkcja kolizja_swiat
  132.                             //dzielenie przestrzeni na portale
  133.  
  134. protected:
  135.     void __fastcall Execute();
  136. public:
  137.     __fastcall THREAD_ParticeSystem(bool CreateSuspended);
  138. };                   */
  139. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement