We don't need 2 separate methods here. int getDoorState(const MWWorld::Ptr&) returning 0, 1 or 2 should do it.