changed function( to function (

This commit is contained in:
logsol 2012-07-28 13:38:31 +02:00
parent 26f3d22db7
commit 7e5eeb0a27
36 changed files with 209 additions and 209 deletions

12
app/Game/Core/Collision/Detector.js Normal file → Executable file
View file

@ -3,7 +3,7 @@ define([
"Game/Core/Collision/Detector"
],
function(Box2D, Parent) {
function (Box2D, Parent) {
function Detector() {
this.listener = new Box2D.Dynamics.b2ContactListener();
@ -22,25 +22,25 @@ function(Box2D, Parent) {
PLAYER_FOOT_SENSOR: 'footsensor'
}
Detector.prototype.getListener = function() {
Detector.prototype.getListener = function () {
return this.listener;
}
Detector.prototype.handleStand = function(point, isColliding) {
Detector.prototype.handleStand = function (point, isColliding) {
throw "Overwrite this function";
}
/** Extension **/
Detector.prototype.BeginContact = function(point) {
Detector.prototype.BeginContact = function (point) {
this.chuckDetector.handleStand(point, true);
}
Detector.prototype.PostSolve = function(point, impulse) {
Detector.prototype.PostSolve = function (point, impulse) {
this.chuckDetector.handleStand(point, true);
}
Detector.prototype.EndContact = function(point) {
Detector.prototype.EndContact = function (point) {
this.chuckDetector.handleStand(point, false);
}