Bottle 2D - Lua API 1.0.0
All you need to create games using bottle2D.
Public Member Functions | Public Attributes

PhRect Class Reference

A physic object representing a rectangle created using Group::CreatePhRect. More...

#include <header.hpp>

Inheritance diagram for PhRect:
PhysicObject Object

List of all members.

Public Member Functions

Vector2D GetSize ()
 Set the size of the rectangle.
nil SetSize (Vector2D size)
 Get the size of the rectangle.
number GetSizeX ()
 Get the X size of the rectangle.
number GetSizeY ()
 Get the Y size of the rectangle.
nil SetSizeX (number size)
 Set the X size of the rectangle.
nil SetSizeY (number size)
 Set the Y size of the rectangle.

Public Attributes

Vector2D size
 Access the size of the rectangle.
float sizeX
 Access the X size of the rectangle.
float sizeY
 Access the Y size of the rectangle.

Detailed Description

A physic object representing a rectangle created using Group::CreatePhRect.


Member Function Documentation

Vector2D PhRect::GetSize ( )

Set the size of the rectangle.

number PhRect::GetSizeX ( )

Get the X size of the rectangle.

number PhRect::GetSizeY ( )

Get the Y size of the rectangle.

nil PhRect::SetSize ( Vector2D  size)

Get the size of the rectangle.

nil PhRect::SetSizeX ( number  size)

Set the X size of the rectangle.

nil PhRect::SetSizeY ( number  size)

Set the Y size of the rectangle.


Member Data Documentation

Access the size of the rectangle.

Access the X size of the rectangle.

Access the Y size of the rectangle.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables