inlib  1.2.0
Public Member Functions | Static Public Member Functions | Protected Attributes
inlib::sg::move_event Class Reference
Inheritance diagram for inlib::sg::move_event:
Inheritance graph
[legend]
Collaboration diagram for inlib::sg::move_event:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void * cast (const std::string &a_class) const
 move_event (unsigned int a_x, unsigned int a_y, int a_dx, int a_dy, float a_wdx, float a_wdy)
virtual ~move_event ()
 move_event (const move_event &a_from)
move_eventoperator= (const move_event &a_from)
unsigned int x () const
unsigned int y () const
int dx () const
int dy () const
float wdx () const
float wdy () const

Static Public Member Functions

static const std::string & s_class ()

Protected Attributes

unsigned int m_x
unsigned int m_y
int m_dx
int m_dy
float m_wdx
float m_wdy

Detailed Description

Definition at line 79 of file event_action.


Constructor & Destructor Documentation

inlib::sg::move_event::move_event ( unsigned int  a_x,
unsigned int  a_y,
int  a_dx,
int  a_dy,
float  a_wdx,
float  a_wdy 
) [inline]

Definition at line 90 of file event_action.

  :m_x(a_x),m_y(a_y)
  ,m_dx(a_dx),m_dy(a_dy)
  ,m_wdx(a_wdx),m_wdy(a_wdy)
  {}
virtual inlib::sg::move_event::~move_event ( ) [inline, virtual]

Definition at line 97 of file event_action.

{}
inlib::sg::move_event::move_event ( const move_event a_from) [inline]

Definition at line 99 of file event_action.

  :event(a_from)
  ,m_x(a_from.m_x),m_y(a_from.m_y)
  ,m_dx(a_from.m_dx),m_dy(a_from.m_dy)
  ,m_wdx(a_from.m_wdx),m_wdy(a_from.m_wdy)
  {}

Member Function Documentation

virtual void* inlib::sg::move_event::cast ( const std::string &  a_class) const [inline, virtual]

Implements inlib::sg::event.

Definition at line 85 of file event_action.

                                                     {
    if(void* p = inlib::cmp_cast<move_event>(this,a_class)) {return p;}
    return 0;
  }
int inlib::sg::move_event::dx ( ) const [inline]

Definition at line 115 of file event_action.

{return m_dx;}
int inlib::sg::move_event::dy ( ) const [inline]

Definition at line 116 of file event_action.

{return m_dy;}
move_event& inlib::sg::move_event::operator= ( const move_event a_from) [inline]

Definition at line 105 of file event_action.

                                                 {
    event::operator=(a_from);
    m_x = a_from.m_x;m_y = a_from.m_y;
    m_dx = a_from.m_dx;m_dy = a_from.m_dy;
    m_wdx = a_from.m_wdx;m_wdy = a_from.m_wdy;
    return *this;
  }
static const std::string& inlib::sg::move_event::s_class ( ) [inline, static]

Definition at line 81 of file event_action.

                                    {
    static const std::string s_v("inlib::sg::move_event");
    return s_v;
  }
float inlib::sg::move_event::wdx ( ) const [inline]

Definition at line 117 of file event_action.

{return m_wdx;}
float inlib::sg::move_event::wdy ( ) const [inline]

Definition at line 118 of file event_action.

{return m_wdy;}
unsigned int inlib::sg::move_event::x ( ) const [inline]

Definition at line 113 of file event_action.

{return m_x;}
unsigned int inlib::sg::move_event::y ( ) const [inline]

Definition at line 114 of file event_action.

{return m_y;}

Member Data Documentation

int inlib::sg::move_event::m_dx [protected]

Definition at line 122 of file event_action.

int inlib::sg::move_event::m_dy [protected]

Definition at line 123 of file event_action.

float inlib::sg::move_event::m_wdx [protected]

Definition at line 125 of file event_action.

float inlib::sg::move_event::m_wdy [protected]

Definition at line 126 of file event_action.

unsigned int inlib::sg::move_event::m_x [protected]

Definition at line 120 of file event_action.

unsigned int inlib::sg::move_event::m_y [protected]

Definition at line 121 of file event_action.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines