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

PhCircle Class Reference

A physic object representing a circle / disk created using Group::CreatePhCircle. More...

#include <header.hpp>

Inheritance diagram for PhCircle:
PhysicObject Object

List of all members.

Public Member Functions

nil SetRadius (number radius)
 Set circle's radius.
number GetRadius ()
 Get circle's radius.
PhCircle Clone ()
 Create a clone of the object and return an handler to the clone.
PhCircle CloneToGroup (Group newParent)
 Create a clone of the object, change the parent and return an handler to the clone.

Public Attributes

float radius
 Access circle's radius.

Detailed Description

A physic object representing a circle / disk created using Group::CreatePhCircle.


Member Function Documentation

PhCircle PhCircle::Clone ( )

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

Reimplemented from Object.

PhCircle PhCircle::CloneToGroup ( Group  newParent)

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

Reimplemented from Object.

number PhCircle::GetRadius ( )

Get circle's radius.

nil PhCircle::SetRadius ( number  radius)

Set circle's radius.


Member Data Documentation

Access circle's radius.


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