var entity = new IgeEntity();
entity.addBehaviour('myBehaviour', function () {
// Code here will execute during each engine update for
// this entity. I can access the entity via the "this"
// keyword such as:
this._somePropertyOfTheEntity = 'moo';
});
// Now check for the "myBehaviour" behaviour
console.log(entity.hasBehaviour('myBehaviour')); // Will log "true"