public boolean takeDamage(int d) {
        health -= d;
        
        if(health <= 0) {
            StatusComponent sc = (StatusComponent)owner.getComponent("StatusComponent");
            if(sc.getAllegiance().equalsIgnoreCase("enemy")) {
                Application.get().getEventManager().queueEvent(new EnemyDestroyedEvent(owner));
            }
            Application.get().getEventManager().queueEvent(new ActorDestroyedEvent(owner));
            return true;
        }
        
        return false;
    }