overview wiki api reference download
 All Classes Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Static Public Member Functions | Public Attributes
gameplay::PhysicsCollisionObject::ScriptListener Class Reference

#include <PhysicsCollisionObject.h>

Inheritance diagram for gameplay::PhysicsCollisionObject::ScriptListener:
gameplay::PhysicsCollisionObject::CollisionListener

List of all members.

Public Member Functions

 ~ScriptListener ()
void collisionEvent (PhysicsCollisionObject::CollisionListener::EventType type, const PhysicsCollisionObject::CollisionPair &collisionPair, const Vector3 &contactPointA, const Vector3 &contactPointB)

Static Public Member Functions

static ScriptListenercreate (const char *url)

Public Attributes

std::string url
Scriptscript
std::string function

Detailed Description

Handles collision event callbacks to Lua script functions.


Constructor & Destructor Documentation

Destructor.


Member Function Documentation

Creates a ScriptListener for the given script function url.

Parameters:
urlThe global script function, or script::function.
Returns:
The ScriptListener, or NULL if the function could not be loaded.

Member Data Documentation

The name of the Lua script function to use as the callback.

The loaded script that contains the function.

The URL to the Lua script function to use as the callback.

 All Classes Functions Variables Typedefs Enumerations Enumerator