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

PhShape Class Reference

A physic object representing an user shape created using Group::CreatePhShape. More...

#include <header.hpp>

Inheritance diagram for PhShape:
PhysicObject Object

List of all members.

Public Member Functions

Vector2D GetPoint (number nb)
 Get the point nb of the shape.
nil SetPoint (number nb, Vector2D pt)
 Set the point nb of the shape.
nil AddPoint (Vector2D pt)
 Add a point to the shape.
nil RemovePoint (number nb)
 Remove the point nb from the shape.
PhShape Clone ()
 Create a clone of the object and return an handler to the clone.
PhShape CloneToGroup (Group newParent)
 Create a clone of the object, change the parent and return an handler to the clone.

Detailed Description

A physic object representing an user shape created using Group::CreatePhShape.


Member Function Documentation

nil PhShape::AddPoint ( Vector2D  pt)

Add a point to the shape.

PhShape PhShape::Clone ( )

Create a clone of the object and return an handler to the clone.

Reimplemented from Object.

PhShape PhShape::CloneToGroup ( Group  newParent)

Create a clone of the object, change the parent and return an handler to the clone.

Reimplemented from Object.

Vector2D PhShape::GetPoint ( number  nb)

Get the point nb of the shape.

nil PhShape::RemovePoint ( number  nb)

Remove the point nb from the shape.

nil PhShape::SetPoint ( number  nb,
Vector2D  pt 
)

Set the point nb of the shape.


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