Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

RectCollider Class Reference

#include <rect_collider.hxx>

Inheritance diagram for RectCollider:

Inheritance graph
Collaboration diagram for RectCollider:

Collaboration graph
List of all members.

Public Member Functions

 RectCollider (lisp_object_t *cursor)
 RectCollider (float x1_, float y1_, float x2_, float y2_)
Colliderduplicate () const
Vector2d get_pos ()
void set_pos (const Vector2d &)
bool is_at (const Vector2d &pos)
void bounce ()
void draw (GraphicContext *gc)
void draw_highlight (GraphicContext *gc)
lisp_object_tserialize ()

Constructor & Destructor Documentation

RectCollider::RectCollider lisp_object_t   cursor

Definition at line 33 of file rect_collider.cxx.

References LispReader::read_vector(), Vector2d::x, and Vector2d::y.

Referenced by duplicate().

RectCollider::RectCollider float    x1_,
float    y1_,
float    x2_,
float    y2_

Definition at line 50 of file rect_collider.cxx.

Member Function Documentation

void RectCollider::bounce   [virtual]

act on a particle

Implements Collider.

Definition at line 80 of file rect_collider.cxx.

References ParticleFactory::begin(), ParticleFactory::end(), World::get_particle_mgr(), Controller::get_world(), Controller::instance(), ParticleFactory::ParticleIter, Vector2d::x, and Vector2d::y.

void RectCollider::draw GraphicContext   gc [virtual]

Implements Collider.

Definition at line 131 of file rect_collider.cxx.

References GraphicContext::draw_fill_rect(), and GraphicContext::draw_rect().

void RectCollider::draw_highlight GraphicContext   gc [virtual]

Implements Collider.

Definition at line 139 of file rect_collider.cxx.

References GraphicContext::draw_rect().

Collider * RectCollider::duplicate   const [virtual]

Implements Collider.

Definition at line 28 of file rect_collider.cxx.

References RectCollider().

Vector2d RectCollider::get_pos   [virtual]

Implements Collider.

Definition at line 63 of file rect_collider.cxx.

Referenced by set_pos().

bool RectCollider::is_at const Vector2d   pos [virtual]

true if the collider is at the given world coordinates, used for drag&drop

Implements Collider.

Definition at line 56 of file rect_collider.cxx.

References Vector2d::x, and Vector2d::y.

lisp_object_t * RectCollider::serialize   [virtual]

Implements Collider.

Definition at line 146 of file rect_collider.cxx.

References LispWriter::create_lisp(), and LispWriter::write_vector().

void RectCollider::set_pos const Vector2d   [virtual]

Implements Collider.

Definition at line 70 of file rect_collider.cxx.

References get_pos(), Vector2d::x, and Vector2d::y.

The documentation for this class was generated from the following files:
Generated on Thu Jul 24 10:25:24 2003 for Construo by doxygen1.3-rc3