Makes world in Engine private

And some refactoring.
This commit is contained in:
logsol 2016-10-01 19:09:52 +02:00
parent 8641a2dc0b
commit c068592915
3 changed files with 12 additions and 14 deletions

View file

@ -14,7 +14,7 @@ function (Box2D, Exception, Assert, Nc) {
var def = this.getBodyDef();
def.userData = this;
this.body = physicsEngine.getWorld().CreateBody(def);
this.body = physicsEngine.createBody(def);
this.ncTokens = (this.ncTokens || []).concat([
Nc.on(Nc.ns.client.game.events.destroy, this.destroy, this)