member_mvt Class Reference

#include <movement.h>

Collaboration diagram for member_mvt:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void SetAngle (double angle)
const double & GetAngle ()
 member_mvt ()

Public Attributes

Point2f pos
Point2f scale
float alpha
bool follow_crosshair
bool follow_half_crosshair
bool follow_speed
bool follow_direction

Private Attributes

double angle_rad

Detailed Description

Definition at line 29 of file movement.h.


Constructor & Destructor Documentation

member_mvt::member_mvt (  )  [inline]

Definition at line 51 of file movement.h.


Member Function Documentation

const double& member_mvt::GetAngle (  )  [inline]

Definition at line 45 of file movement.h.

00045 { return angle_rad; }

void member_mvt::SetAngle ( double  angle  )  [inline]

Definition at line 36 of file movement.h.

00037   {
00038     while(angle_rad > 2*M_PI)
00039       angle_rad -= 2 * M_PI;
00040     while(angle_rad <= -2*M_PI)
00041       angle_rad += 2 * M_PI;
00042     angle_rad = angle;
00043   }

Here is the caller graph for this function:


Member Data Documentation

float member_mvt::alpha

Definition at line 46 of file movement.h.

double member_mvt::angle_rad [private]

Definition at line 31 of file movement.h.

bool member_mvt::follow_crosshair

Definition at line 47 of file movement.h.

bool member_mvt::follow_direction

Definition at line 50 of file movement.h.

bool member_mvt::follow_half_crosshair

Definition at line 48 of file movement.h.

bool member_mvt::follow_speed

Definition at line 49 of file movement.h.

Point2f member_mvt::pos

Definition at line 33 of file movement.h.

Point2f member_mvt::scale

Definition at line 34 of file movement.h.


The documentation for this class was generated from the following file:
Generated on Mon Jan 1 13:58:56 2007 for Wormux by  doxygen 1.4.7