Changeset 4181 in orxonox.OLD for orxonox/branches/physics/src/util/physics/physics_connection.cc
- Timestamp:
- May 14, 2005, 12:28:44 AM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/util/physics/physics_connection.cc
r4178 r4181 10 10 11 11 ### File Specific: 12 main-programmer: ...12 main-programmer: Benjamin Grauer 13 13 co-programmer: ... 14 14 */ … … 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include "proto_class.h" 18 #include "physics_connection.h" 19 19 20 20 21 using namespace std; … … 23 24 /** 24 25 \brief standard constructor 25 \todo this constructor is not jet implemented - do it26 26 */ 27 P rotoClass::ProtoClass()27 PhysicsConnection::PhysicsConnection () 28 28 { 29 this->setClassName ("ProtoClass"); 29 this->setClassName ("PhysicsConnection"); 30 connection = NULL; 30 31 } 31 32 … … 35 36 36 37 */ 37 P rotoClass::~ProtoClass()38 PhysicsConnection::~PhysicsConnection () 38 39 { 39 // delete what has to be deleted here 40 if (this->connection) 41 delete this->connection; 40 42 } 43 44 45 46 47 48 49 bool PhysicsConnection::addConnection(ParticleSystem* particleSystem, Field* field) 50 { 51 if (!this->connection) 52 { 53 this->connection = new PhysConnection; 54 this->connection->type = PCON_ParticlesField; 55 this->connection->particleSystem = particleSystem; 56 this->connection->field = field; 57 } 58 }
Note: See TracChangeset
for help on using the changeset viewer.