This machine mirrors various open-source projects.
20 Gbit/s uplink.
If there are any issues or you want another project mirrored, please contact
mirror-service -=AT=- netcologne DOT de !
#include <particle_factory.hxx>
Collaboration diagram for ParticleFactory:
Public Types | |
typedef std::vector< Particle * >::const_iterator | CParticleIter |
typedef std::vector< Particle * >::iterator | ParticleIter |
Public Member Functions | |
ParticleFactory (World *) | |
ParticleFactory (World *, lisp_object_t *cursor) | |
ParticleFactory (World *, const ParticleFactory &) | |
Particle * | add_particle (const Vector2d &arg_pos, const Vector2d &arg_velocity, float m, bool f=false) |
Particle * | add_particle (const Particle &particle) |
void | remove_particle (Particle *) |
void | remove_particle (int id) |
int | size () |
Particle * | lookup_particle (int id) |
void | update (float delta) |
void | draw (ZoomGraphicContext *gc) |
ParticleIter | begin () |
ParticleIter | end () |
void | clear () |
void | write_lisp (FILE *out) |
Definition at line 35 of file particle_factory.hxx.
|
Definition at line 73 of file particle_factory.hxx. Referenced by clear(), draw(), ParticleFactory(), update(), and write_lisp(). |
|
Definition at line 74 of file particle_factory.hxx. Referenced by RectCollider::bounce(), World::calc_bounding_box(), World::get_particle(), World::get_particles(), lookup_particle(), remove_particle(), World::update(), and World::zero_out_velocity(). |
|
Create an empty particle manager Definition at line 27 of file particle_factory.cxx. |
|
Create a particle manager from the data in a .construo file Definition at line 32 of file particle_factory.cxx. References World::file_version, lisp_car(), lisp_cdr(), lisp_nil_p, LispReader::read_bool(), LispReader::read_float(), LispReader::read_int(), and LispReader::read_vector(). |
|
Copy a particle manager, the id's will be keep Definition at line 71 of file particle_factory.cxx. References CParticleIter. |
|
Duplicate a particle Definition at line 103 of file particle_factory.cxx. References Particle::id. |
|
Definition at line 93 of file particle_factory.cxx. Referenced by Selection::duplicate(), WorldViewInsertTool::on_primary_button_press(), and World::update(). |
|
Definition at line 76 of file particle_factory.hxx. Referenced by RectCollider::bounce(), World::calc_bounding_box(), World::get_particle(), World::get_particles(), World::update(), and World::zero_out_velocity(). |
|
Definition at line 166 of file particle_factory.cxx. References CParticleIter. Referenced by World::clear(). |
|
Definition at line 145 of file particle_factory.cxx. References CParticleIter. Referenced by World::draw_particles(). |
|
Definition at line 77 of file particle_factory.hxx. Referenced by RectCollider::bounce(), World::calc_bounding_box(), World::get_particle(), World::get_particles(), World::update(), and World::zero_out_velocity(). |
|
Definition at line 152 of file particle_factory.cxx. References ParticleIter. Referenced by Spring::Spring(), and World::World(). |
|
Remove a particle by id |
|
Remove a particle by pointer Definition at line 112 of file particle_factory.cxx. References ParticleIter. Referenced by World::remove_particle(). |
|
Definition at line 67 of file particle_factory.hxx. Referenced by World::calc_bounding_box(), World::get_num_particles(), and World::remove_spring(). |
|
Definition at line 135 of file particle_factory.cxx. References CParticleIter. Referenced by World::update(). |
|
Definition at line 174 of file particle_factory.cxx. References CParticleIter, lisp_dump(), and lisp_free(). Referenced by World::write_lisp(). |