My Project
SallyAPI::GUI::CBox2DObject Class Reference

Box 2 d object. More...

#include <Box2DObject.h>

Inheritance diagram for SallyAPI::GUI::CBox2DObject:
SallyAPI::GUI::CImageBox SallyAPI::GUI::CControl SallyAPI::GUI::CGUIBaseObject SallyAPI::Core::CBaseObject

List of all members.

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.

Detailed Description

Box 2 d object.

Author:
Christian Knobloch
Date:
19.04.2010

Constructor & Destructor Documentation

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)

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
[in,out]parentIf non-null, the parent.
xThe x coordinate.
yThe y coordinate.
widthThe width.
heightThe height.
controlIdIdentifier for the control.

Destructor.

Author:
Christian Knobloch
Date:
19.04.2010

Member Function Documentation

bool CBox2DObject::CreateBox2DObject ( b2World *  world)

Creates a box 2 d object.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
[in,out]worldIf non-null, the world.
Returns:
true if it succeeds, false if it fails.
bool CBox2DObject::MoveAndHold ( int  x,
int  y 
)

Move and hold.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
xThe x coordinate.
yThe y coordinate.
Returns:
true if it succeeds, false if it fails.
void CBox2DObject::SendMessageToChilds ( SallyAPI::GUI::CGUIBaseObject reporter,
int  reporterId,
int  messageId,
SallyAPI::GUI::SendMessage::CParameterBase messageParameter = NULL 
) [virtual]

Send message to childs.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
[in,out]reporterIf non-null, the reporter.
reporterIdIdentifier for the reporter.
messageIdIdentifier for the message.
[in,out]messageParameterIf non-null, the message parameter.

Reimplemented from SallyAPI::GUI::CControl.

void CBox2DObject::Timer ( float  timeDelta) [virtual]

Timers.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
timeDeltaThe time delta.

Reimplemented from SallyAPI::GUI::CImageBox.


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