Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------------------------------------------------------------------
- #ifndef PARTICLE_SYSTEM_THREADH
- #define PARTICLE_SYSTEM_THREADH
- #include "SysUtils.hpp"
- #include "DxcMath.h"
- #include "DxCMatrix.h"
- #include "Textures.hpp"
- #include "TachoGLModelSRC.h"
- #include "Math.h"
- //---------------------------------------------------------------------------
- struct TSubparticle;
- typedef TSubparticle *TSubparticleP;
- struct TSubparticle
- {
- double * charm;
- TSubparticleP * ConsistsOf;
- virtual void ReactWith(TSubparticle * p) {}
- TSubparticle& operator=(const TSubparticle& in)
- {
- charm = in.charm;
- ConsistsOf = in.ConsistsOf;
- return *this;
- }
- };
- struct TAtomParticle
- {
- TSubparticleP * electrons;
- TSubparticleP * protons;
- TSubparticleP * neutrons;
- TAtomParticle& operator=(const TAtomParticle& in)
- {
- electrons = in.electrons;
- protons = in.protons;
- neutrons = in.neutrons;
- return *this;
- }
- };
- struct TToolChain;
- typedef TToolChain * TToolChainP;
- struct TToolChain
- {
- int num_of_handles;
- TToolChainP * handle; //attached toolchains
- };
- struct TMaterial{
- double depth;
- double particle_num;
- double volume;
- TToolChain * material;
- };
- typedef TMaterial * TMaterialsP;
- struct TBoundaryModel {
- TachoGLModelP * boundary_models;
- TMaterialsP * material_data;
- TBoundaryModel * n; //during simulation there can be made new models
- TBoundaryModel * p;
- };
- struct TSubstance
- {
- TToolChain * substance;
- TachoGLModel<double> boundary_model; //if substance has somewhat volume
- double depth;
- double particle_num;
- double density;// really needed?
- double volume;
- };
- struct TChainEnergy
- {
- t3dpoint<double> value;
- bool kietic;
- bool temporary;
- bool heat;
- bool electromagnetic;
- };
- void TwoSubstancesReact(TToolChain * A, TToolChain * B, TChainEnergy Energy)
- {
- }
- struct TThreatParticle
- {
- t3dpoint<double> pos;
- t3dpoint<double> * object_pos;
- double temperature;
- };
- /*
- class THREAD_ParticeSystem : public TThread {
- TPES_2k9 * GRACZE;
- // TGamepad*JOY;
- tBOT * TEAM1[21];
- tBOT * TEAM2[21];
- tBOT * TEAM3[21];
- //funkcja kolizja_sfera z innymi
- //funkcja kolizja_swiat
- //dzielenie przestrzeni na portale
- protected:
- void __fastcall Execute();
- public:
- __fastcall THREAD_ParticeSystem(bool CreateSuspended);
- }; */
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement