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

PhysicObject Class Reference

A base class containing common functions to all physic objects. More...

#include <header.hpp>

Inheritance diagram for PhysicObject:
Object PhCircle PhLine PhRect PhShape PhTriangle

List of all members.

Public Member Functions

bool IsPointInside (Vector2D ponumber)
 Return true if the point is inside the object, false otherwise.
nil SetEventFunction (luaObject luaFunction)
 Set the event function name (fnName should be the name of an existing lua function).
luaObject GetEventFunction ()
 Get the event function name.
number GetPhysicGroup ()
 Get the physic group associated to the object.

Public Attributes

std::string eventFunction
 Acces the event function name (fnName should be the name of an existing lua function).

Detailed Description

A base class containing common functions to all physic objects.


Member Function Documentation

luaObject PhysicObject::GetEventFunction ( )

Get the event function name.

number PhysicObject::GetPhysicGroup ( )

Get the physic group associated to the object.

bool PhysicObject::IsPointInside ( Vector2D  ponumber)

Return true if the point is inside the object, false otherwise.

nil PhysicObject::SetEventFunction ( luaObject  luaFunction)

Set the event function name (fnName should be the name of an existing lua function).


Function prototype should be : function fnName(object1 : PhysicObject, object2 : PhysicObject, intersectionPosition : Vector2D)


Member Data Documentation

Acces the event function name (fnName should be the name of an existing lua function).


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