rotation_t Struct Reference

#include <Structs.h>


Public Member Functions

 rotation_t ()
 rotation_t (const double p, const double v, const double l, const double r, const rotation_mode_t m)
void set_rot (const double p, const double v, const double l, const double r, const rotation_mode_t m)

Data Fields

double pos
double vel
double left
double right
rotation_mode_t mode


Constructor & Destructor Documentation

rotation_t::rotation_t  )  [inline]
 

Definition at line 47 of file Structs.h.

References NORMAL_ROT.

00047 : pos(0), vel(0), left(0), right(0), mode(NORMAL_ROT) {}

rotation_t::rotation_t const double  p,
const double  v,
const double  l,
const double  r,
const rotation_mode_t  m
[inline]
 

Definition at line 48 of file Structs.h.

00048                                                                                                       :
00049     pos(p), vel(v), left(l), right(r), mode(m) {}
  void set_rot(const double p, const double v, const double l, const double r, const rotation_mode_t m) 


Member Function Documentation

void rotation_t::set_rot const double  p,
const double  v,
const double  l,
const double  r,
const rotation_mode_t  m
[inline]
 

Definition at line 50 of file Structs.h.

Referenced by Robot::get_messages(), Robot::set_values_before_game(), and Robot::update_rotation().

00051     { pos=p; vel=v; left=l; right=r; mode=m; }


Field Documentation

double rotation_t::left
 

Definition at line 54 of file Structs.h.

Referenced by Robot::update_rotation().

rotation_mode_t rotation_t::mode
 

Definition at line 56 of file Structs.h.

Referenced by Robot::update_rotation().

double rotation_t::pos
 

Definition at line 52 of file Structs.h.

Referenced by bounce_on_robot(), Robot::bounce_on_wall(), Robot::change_position(), Robot::change_velocity(), Robot::draw_radar_and_cannon(), Robot::get_messages(), Shot::move(), Robot::move(), Robot::update_radar_and_cannon(), and Robot::update_rotation().

double rotation_t::right
 

Definition at line 55 of file Structs.h.

Referenced by Robot::update_rotation().

double rotation_t::vel
 

Definition at line 53 of file Structs.h.

Referenced by Robot::get_messages(), and Robot::update_rotation().


The documentation for this struct was generated from the following file:
Generated on Fri Oct 15 15:50:51 2004 for Real Time Battle by  doxygen 1.3.9.1