@Override
    public void action(Action action) {
        switch (action) {

            case OPEN_CLOSE:
                if (open) {
                    open = false;
                    parent.is_opaque = true;
                    parent.is_passable = false;
                    parent.spriteID = EntityType.getSpriteID1(parent.type);
                } else {
                    open = true;
                    parent.is_opaque = false;
                    parent.is_passable = true;
                    parent.spriteID = EntityType.getSpriteID2(parent.type);
                }
                break;

        }


    }