Boom.SecretTrigger = function( params ){
  this.type = params.type || Boom.Assets.world.ENTITY.MISSING;
  this.position = params.position;
  this.interactable = params.interactable || false;
  this.triggered = false;
  
  Boom.Entity.call(this, {name: 'TRIGGER_SECRET', });
};
Boom.SecretTrigger.prototype = Boom.inherit(Boom.Entity, {
  constructor: Boom.SecretTrigger,

  init: function() {
    //Call super
    Boom.Entity.prototype.init.call(this);
    this.load();
  },

  load: function(){
    //Call super
    Boom.Entity.prototype.load.call(this);
  },

  update: function(){
    console.log("updating and stuff");
    //Call super
    Boom.Entity.prototype.update.call(this);                    
  },

  dispose: function(){
    //Call super
    Boom.Entity.prototype.dispose.call(this);
  },

  trigger: function(){
    if(!this.triggered)

  },

  //Registers the entity as a player-used entity
  process: function(){
    Boom.Constants.UI.PLAYER.STATS.SECRETS++;
    //Call super
    Boom.Entity.prototype.process.call(this);
  },

  //Adds entity to world-total in statistics
  register: function(){
    Boom.Constants.World.STATS.SECRETS++;
    //Call super
    Boom.Entity.prototype.register.call(this);
  },
});

{
      this.triggered = true;
      this.process();
      
      $(Boom.Constants.UI.ELEMENT.SECRET).show(200);
      $(Boom.Constants.UI.ELEMENT.SECRET).hide(5000);

      //Check if any entities are on this position - and trigger it if exists
      Boom.GameGrid.triggerEntity( this.triggered, this.position, { open: true } );
    }