/* orxonox - the future of 3D-vertical-scrollers Copyright (C) 2004 orx This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. ### File Specific: main-programmer: Benjamin Grauer co-programmer: ... */ //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ #include "physics_connection.h" #include "field.h" #include "particle_system.h" using namespace std; PhysicsConnection::PhysicsConnection(ParticleSystem* particleSystem, Field* field) { this->type = PCON_ParticlesField; this->particleSystem = particleSystem; this->field = field; } /** \brief standard deconstructor */ PhysicsConnection::~PhysicsConnection () { } /** \brief applies the Force to some Object. */ void PhysicsConnection::apply(void) const { switch(this->type) { case PCON_IPhysField: break; case PCON_ParticlesField: this->particleSystem->applyField(this->field); break; case PCON_IPhysIPhys: break; } }