Bottle 2D - Lua API 1.0.0
All you need to create games using bottle2D.
|
A physic object representing a rectangle created using Group::CreatePhRect. More...
#include <header.hpp>
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. | |
PhRect | Clone () |
Create a clone of the object and return an handler to the clone. | |
PhRect | CloneToGroup (Group newParent) |
Create a clone of the object, change the parent and return an handler to the clone. | |
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. |
A physic object representing a rectangle created using Group::CreatePhRect.
PhRect PhRect::Clone | ( | ) |
Create a clone of the object and return an handler to the clone.
Reimplemented from Object.
Create a clone of the object, change the parent and return an handler to the clone.
Reimplemented from Object.
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.
Access the size of the rectangle.
float PhRect::sizeX |
Access the X size of the rectangle.
float PhRect::sizeY |
Access the Y size of the rectangle.