My Project
|
Box 2 d object. More...
#include <Box2DObject.h>
Public Member Functions | |
CBox2DObject (SallyAPI::GUI::CGUIBaseObject *parent, int x, int y, int width, int height, int controlId=0) | |
Constructor. | |
~CBox2DObject () | |
Destructor. | |
virtual void | SendMessageToChilds (SallyAPI::GUI::CGUIBaseObject *reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase *messageParameter=NULL) |
Send message to childs. | |
bool | CreateBox2DObject (b2World *world) |
Creates a box 2 d object. | |
b2Body * | GetBox2DObject () |
virtual void | Timer (float timeDelta) |
Timers. | |
bool | MoveAndHold (int x, int y) |
Move and hold. |
Box 2 d object.
CBox2DObject::CBox2DObject | ( | SallyAPI::GUI::CGUIBaseObject * | parent, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
int | controlId = 0 |
||
) |
Constructor.
m_pb2Body(NULL), m_pb2World(NULL), m_pb2MouseJoint(NULL), m_pb2Shape(NULL)
[in,out] | parent | If non-null, the parent. |
x | The x coordinate. | |
y | The y coordinate. | |
width | The width. | |
height | The height. | |
controlId | Identifier for the control. |
Destructor.
bool CBox2DObject::CreateBox2DObject | ( | b2World * | world | ) |
Creates a box 2 d object.
[in,out] | world | If non-null, the world. |
b2Body* SallyAPI::GUI::CBox2DObject::GetBox2DObject | ( | ) |
bool CBox2DObject::MoveAndHold | ( | int | x, |
int | y | ||
) |
Move and hold.
x | The x coordinate. |
y | The y coordinate. |
void CBox2DObject::SendMessageToChilds | ( | SallyAPI::GUI::CGUIBaseObject * | reporter, |
int | reporterId, | ||
int | messageId, | ||
SallyAPI::GUI::SendMessage::CParameterBase * | messageParameter = NULL |
||
) | [virtual] |
Send message to childs.
[in,out] | reporter | If non-null, the reporter. |
reporterId | Identifier for the reporter. | |
messageId | Identifier for the message. | |
[in,out] | messageParameter | If non-null, the message parameter. |
Reimplemented from SallyAPI::GUI::CControl.
void CBox2DObject::Timer | ( | float | timeDelta | ) | [virtual] |
Timers.
timeDelta | The time delta. |
Reimplemented from SallyAPI::GUI::CImageBox.