Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:Rygal/Rygal into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
rynti committed Aug 19, 2012
2 parents d84a8ad + af78975 commit 3018aa9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions org/rygal/physics/PhysicalWorld.hx
Expand Up @@ -52,6 +52,8 @@ class PhysicalWorld implements PhysicalObject {
/** A container with all physical objects this world contains. */
private var _objects:Array<PhysicalObject>;

/** Returns the count of objects on this world */
public var objectCount(getObjectCount, never):Int;

/**
* Creates a new physical world.
Expand Down Expand Up @@ -110,4 +112,12 @@ class PhysicalWorld implements PhysicalObject {
return false;
}

/**
* Returns the count of objects in this world
*
* @returns the count of objects in this world.
*/
private function getObjectCount():Int {
return _objects.length;
}
}

0 comments on commit 3018aa9

Please sign in to comment.